Documentation
¶
Index ¶
- func AddFunctionStringIdentifier(TextModel string, Table1 *types.Table) string
- func AddInterface_UpdateEveryColumn(TextModel string, Table1 *types.Table) string
- func AddInterfaces_FindBy(TextModel string, Table1 *types.Table) string
- func AddInterfaces_FindMassBy(TextModel string, Table1 *types.Table) string
- func AddInterfaces_FindModelBy(MapAll map[string]*types.Table, TextModel string, Table1 *types.Table) string
- func AddInterfaces_ReadAll(TextModel string, Table1 *types.Table) string
- func CreateAllFiles(MapAll map[string]*types.Table) error
- func CreateFiles(MapAll map[string]*types.Table, Table1 *types.Table) error
- func CreateFiles_FindBy(Table1 *types.Table) error
- func CreateFiles_FindBy_Table(Table1 *types.Table, TextTemplateFunction string) string
- func CreateFiles_FindBy_Table1(Table1 *types.Table, TextTemplateFunction string, MassColumns1 []string) string
- func CreateFiles_FindMassBy(Table1 *types.Table) error
- func CreateFiles_FindMassBy_Table(Table1 *types.Table, TextTemplateFunction string) string
- func CreateFiles_FindMassBy_Table1(Table1 *types.Table, TextTemplateFunction string, MassColumns1 []string) string
- func CreateFiles_FindMassBy_Test(Table1 *types.Table) error
- func CreateFiles_FindMassBy_Test_Table(Table1 *types.Table, TextTemplateFunction string) string
- func CreateFiles_FindMassBy_Test_Table1(Table1 *types.Table, TextTemplateFunction string, MassColumns1 []string) string
- func CreateFiles_FindModelBy(MapAll map[string]*types.Table, Table1 *types.Table) error
- func CreateFiles_FindModelBy_Table(MapAll map[string]*types.Table, Table1 *types.Table, TextModel *string, ...) string
- func CreateFiles_FindModelBy_Table1(MapAll map[string]*types.Table, Table1 *types.Table, TextModel *string, ...) string
- func CreateFiles_Model_Manual(Table1 *types.Table, DirTemplatesModel, DirReadyModel string) error
- func CreateFiles_Model_crud(MapAll map[string]*types.Table, Table1 *types.Table, ...) error
- func CreateFiles_Model_struct(Table1 *types.Table, DirTemplatesModel, DirReadyModel string) error
- func CreateFiles_ReadAll(Table1 *types.Table) error
- func CreateFiles_ReadAll_Table(Table1 *types.Table, TextTemplateFunction string) string
- func CreateFiles_ReadAll_Table1(Table1 *types.Table, TextTemplateFunction string) string
- func CreateFiles_UpdateEveryColumn(Table1 *types.Table) error
- func DeleteFromInterface_Delete(TextModel string, Table1 *types.Table) string
- func DeleteFromInterface_Find_ByExtID(TextModel string, Table1 *types.Table) string
- func DeleteFromInterface_ReadFromCache(TextModel string, Table1 *types.Table) string
- func DeleteFromInterface_Restore(TextModel string, Table1 *types.Table) string
- func DeleteFromInterface_UpdateManyFields(TextModel string, Table1 *types.Table) string
- func DeleteFunc_ReadFromCache(TextModel string, Table1 *types.Table) string
- func DeleteFunctions(Text, TableName string, MapModelCrudDeleteFunctions map[string]string) string
- func FillColumnsNameGo(MapAll *map[string]*types.Table) error
- func FindTextInterfaceUpdateEveryColumn(Table1 *types.Table, Column1 *types.Column) string
- func FindTextUpdateEveryColumn(Table1 *types.Table, Column1 *types.Column) string
- func FindText_Column(TextModel string, Table1 *types.Table, Column1 *types.Column) (string, string)
- func FindText_ModelStruct(TextModel string, Table1 *types.Table) (string, string, string, error)
- func FindText_PrimaryKey(Is_identity bool) string
- func Find_ColumnTypeGoImport(TextModel string, Table1 *types.Table, Column1 *types.Column) (string, string)
- func Replace_IDtoID(Text string, Table1 *types.Table) string
- func Replace_ModelStruct(TextTemplateModel, TextModelStruct string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFunctionStringIdentifier ¶
AddFunctionStringIdentifier - добавляет функцию StringIdentifier(), для таблиц где много PrimaryKey
func AddInterfaces_FindBy ¶
AddInterfaces_FindBy - добавляет функцию внутрь интерфейса
func AddInterfaces_FindMassBy ¶
AddInterfaces_FindMassBy - добавляет функцию внутрь интерфейса
func AddInterfaces_FindModelBy ¶
func AddInterfaces_FindModelBy(MapAll map[string]*types.Table, TextModel string, Table1 *types.Table) string
AddInterfaces_FindModelBy - добавляет функцию внутрь интерфейса
func AddInterfaces_ReadAll ¶
AddInterfaces_ReadAll - добавляет функцию внутрь интерфейса
func CreateAllFiles ¶
CreateAllFiles - создаёт все файлы в папке model
func CreateFiles ¶
CreateFiles - создаёт 1 файл в папке model
func CreateFiles_FindBy ¶
CreateFiles_FindBy - создаёт 1 файл в папке crud
func CreateFiles_FindBy_Table ¶
CreateFiles_FindBy_Table - создаёт текст всех функций
func CreateFiles_FindBy_Table1 ¶
func CreateFiles_FindBy_Table1(Table1 *types.Table, TextTemplateFunction string, MassColumns1 []string) string
CreateFiles_FindBy_Table1 - создаёт текст всех функций
func CreateFiles_FindMassBy ¶
CreateFiles_FindMassBy - создаёт 1 файл в папке crud
func CreateFiles_FindMassBy_Table ¶
CreateFiles_FindMassBy_Table - создаёт текст всех функций
func CreateFiles_FindMassBy_Table1 ¶
func CreateFiles_FindMassBy_Table1(Table1 *types.Table, TextTemplateFunction string, MassColumns1 []string) string
CreateFiles_FindMassBy_Table1 - создаёт текст всех функций
func CreateFiles_FindMassBy_Test ¶
CreateFiles_FindMassBy_Test - создаёт 1 файл в папке crud
func CreateFiles_FindMassBy_Test_Table ¶
CreateFiles_FindMassBy_Test_Table - создаёт текст всех функций
func CreateFiles_FindMassBy_Test_Table1 ¶
func CreateFiles_FindMassBy_Test_Table1(Table1 *types.Table, TextTemplateFunction string, MassColumns1 []string) string
CreateFiles_FindMassBy_Test_Table1 - создаёт текст всех функций
func CreateFiles_FindModelBy ¶
CreateFiles_FindModelBy - создаёт 1 файл в папке crud
func CreateFiles_FindModelBy_Table ¶
func CreateFiles_FindModelBy_Table(MapAll map[string]*types.Table, Table1 *types.Table, TextModel *string, TextTemplateFunction string) string
CreateFiles_FindModelBy_Table - создаёт текст всех функций
func CreateFiles_FindModelBy_Table1 ¶
func CreateFiles_FindModelBy_Table1(MapAll map[string]*types.Table, Table1 *types.Table, TextModel *string, TextTemplateFunction string, Column1 *types.Column) string
CreateFiles_FindModelBy_Table1 - создаёт текст всех функций
func CreateFiles_Model_Manual ¶
CreateFiles_Model_Manual - создаёт 1 файл с _manual.go
func CreateFiles_Model_crud ¶
func CreateFiles_Model_crud(MapAll map[string]*types.Table, Table1 *types.Table, DirTemplatesModel, DirReadyModel string) error
CreateFiles_Model_crud - создаёт 1 файл с crud операциями
func CreateFiles_Model_struct ¶
CreateFiles_Model_struct - создаёт 1 файл со структурой в папке model
func CreateFiles_ReadAll ¶
CreateFiles_ReadAll - создаёт 1 файл в папке crud
func CreateFiles_ReadAll_Table ¶
CreateFiles_ReadAll_Table - создаёт текст всех функций
func CreateFiles_ReadAll_Table1 ¶
CreateFiles_ReadAll_Table1 - создаёт текст всех функций
func CreateFiles_UpdateEveryColumn ¶
CreateFiles_UpdateEveryColumn - создаёт 1 файл в папке model, для каждой колонки функция Update()
func DeleteFromInterface_Delete ¶
DeleteFromInterface_Delete - удаляет функцию Delete() из интерфейса
func DeleteFromInterface_Find_ByExtID ¶
DeleteFromInterface_Find_ByExtID - удаляет функцию Find_ByExtID() из интерфейса
func DeleteFromInterface_ReadFromCache ¶
DeleteFromInterface_ReadFromCache - удаляет функцию ReadFromCache() из интерфейса
func DeleteFromInterface_Restore ¶
DeleteFromInterface_Restore - удаляет функцию Restore() из интерфейса
func DeleteFromInterface_UpdateManyFields ¶
DeleteFromInterface_UpdateManyFields - удаляет функцию UpdateManyFields() из интерфейса
func DeleteFunc_ReadFromCache ¶
DeleteFunc_ReadFromCache - удаляет функцию ReadFromCache()
func DeleteFunctions ¶
DeleteFunctions - удаляет функции из текста, по карте MapModelCrudDeleteFunctions
func FillColumnsNameGo ¶
FillColumnsNameGo - заполняет NameGo во все колонки
func FindText_Column ¶
FindText_Column - возвращает текст gorm
func FindText_ModelStruct ¶
FindText_ModelStruct - возвращает текст структуры и тегов gorm
func FindText_PrimaryKey ¶
FindText_PrimaryKey - возвращает строку gorm для primaryKey
func Find_ColumnTypeGoImport ¶
func Find_ColumnTypeGoImport(TextModel string, Table1 *types.Table, Column1 *types.Column) (string, string)
Find_ColumnTypeGoImport - заменяет ID на Alias
func Replace_IDtoID ¶
Replace_IDtoID_Many - заменяет int64(ID) на ID, и остальные PrimaryKey
func Replace_ModelStruct ¶
Replace_ModelStruct - заменяет структуру модели на новую
Types ¶
This section is empty.