1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2024-12-22 00:36:41 +02:00

сделал FillRowsCount()

This commit is contained in:
Nikitin Aleksandr 2024-03-21 11:27:52 +03:00
parent ebcf86bce2
commit 668e79d2ef

View File

@ -208,12 +208,12 @@ func IsGoodTable(Table1 *types.Table) error {
TableName := Table1.Name
ColumnName, _ := FindPrimaryKeyNameTypeGo(Table1)
if ColumnName == "" {
TextError := fmt.Sprint("Wrong table ", Table1.Name, " error: not found Primary key")
TextError := fmt.Sprint("Wrong table: ", Table1.Name, " error: not found Primary key")
err = errors.New(TextError)
}
if strings.HasPrefix(TableName, "DELETED_") == true {
TextError := fmt.Sprint("Wrong table ", Table1.Name, " error: name = DELETED_")
TextError := fmt.Sprint("Wrong table: ", Table1.Name, " error: name = DELETED_")
err = errors.New(TextError)
}