mirror of
https://github.com/ManyakRus/crud_generator.git
synced 2024-12-22 00:36:41 +02:00
сделал CreateFilesUpdateEveryColumn()
This commit is contained in:
parent
e8c7884efe
commit
32f435054c
@ -9,7 +9,7 @@ func TestCrud_GRPC_Update(t *testing.T) {
|
|||||||
//прочитаем из БД
|
//прочитаем из БД
|
||||||
Model := lawsuit_status_types.LawsuitStatusType{}
|
Model := lawsuit_status_types.LawsuitStatusType{}
|
||||||
Model.ID = Postgres_ID_Test
|
Model.ID = Postgres_ID_Test
|
||||||
err := crud.LawsuitStatusType_Read(&Model)
|
err := crud.Read(&Model)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Error("TestCrud_GRPC_Update() Read() error: ", err)
|
t.Error("TestCrud_GRPC_Update() Read() error: ", err)
|
||||||
@ -19,7 +19,7 @@ func TestCrud_GRPC_Update(t *testing.T) {
|
|||||||
Otvet := lawsuit_status_types.LawsuitStatusType{}
|
Otvet := lawsuit_status_types.LawsuitStatusType{}
|
||||||
Otvet.ID = Model.ID
|
Otvet.ID = Model.ID
|
||||||
Otvet.ColumnName = Model.ColumnName
|
Otvet.ColumnName = Model.ColumnName
|
||||||
err = crud.LawsuitStatusType_Update(&Otvet)
|
err = crud.Update_ColumnName(&Otvet)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Error("TestCrud_GRPC_Update() Update() error: ", err)
|
t.Error("TestCrud_GRPC_Update() Update() error: ", err)
|
||||||
}
|
}
|
||||||
|
@ -538,7 +538,7 @@ func CreateTestFilesUpdateEveryColumn(Table1 *types.Table) error {
|
|||||||
ModelTableURL := create_files.FindModelTableURL(TableName)
|
ModelTableURL := create_files.FindModelTableURL(TableName)
|
||||||
TextGRPC_Client = create_files.AddImport(TextGRPC_Client, ModelTableURL)
|
TextGRPC_Client = create_files.AddImport(TextGRPC_Client, ModelTableURL)
|
||||||
|
|
||||||
TextGRPC_Client = create_files.ConvertIdToAlias(TextGRPC_Client, Table1)
|
//TextGRPC_Client = create_files.ConvertIdToAlias(TextGRPC_Client, Table1)
|
||||||
//}
|
//}
|
||||||
|
|
||||||
//создание текста
|
//создание текста
|
||||||
@ -554,6 +554,9 @@ func CreateTestFilesUpdateEveryColumn(Table1 *types.Table) error {
|
|||||||
|
|
||||||
TextGRPC_Client = config.Settings.TEXT_MODULE_GENERATED + TextGRPC_Client
|
TextGRPC_Client = config.Settings.TEXT_MODULE_GENERATED + TextGRPC_Client
|
||||||
|
|
||||||
|
//SkipNow() если нет строк в БД
|
||||||
|
TextGRPC_Client = create_files.AddSkipNow(TextGRPC_Client, Table1)
|
||||||
|
|
||||||
//удаление пустого импорта
|
//удаление пустого импорта
|
||||||
TextGRPC_Client = create_files.DeleteEmptyImport(TextGRPC_Client)
|
TextGRPC_Client = create_files.DeleteEmptyImport(TextGRPC_Client)
|
||||||
TextGRPC_Client = create_files.DeleteEmptyLines(TextGRPC_Client)
|
TextGRPC_Client = create_files.DeleteEmptyLines(TextGRPC_Client)
|
||||||
|
Loading…
Reference in New Issue
Block a user