Documentation
¶
Index ¶
- func CreateAllFiles(MapAll map[string]*types.Table) error
- func CreateFiles(Table1 *types.Table) error
- func CreateFiles_Table_struct(Table1 *types.Table, DirTemplatesTable, DirReadyTable string) error
- func DeleteFunc_Delete(TextModel, ModelName string, Table1 *types.Table) string
- func DeleteFunc_Find_byExtID(TextModel, Modelname string, Table1 *types.Table) string
- func DeleteFunc_Restore(TextModel, Modelname string, Table1 *types.Table) string
- func FillColumnsNameGo(MapAll *map[string]*types.Table) error
- 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_ModelStruct(TextTemplateModel, TextModelStruct string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAllFiles ¶
CreateAllFiles - создаёт все файлы в папке model
func CreateFiles ¶
CreateFiles - создаёт 1 файл в папке db
func CreateFiles_Table_struct ¶
CreateFiles_Table_struct - создаёт 1 файл со структурой в папке model
func DeleteFunc_Delete ¶
DeleteFunc_Delete - удаляет функцию Delete()
func DeleteFunc_Find_byExtID ¶
DeleteFunc_Find_byExtID - удаляет функцию Find_ByExtID()
func DeleteFunc_Restore ¶
DeleteFunc_Restore - удаляет функцию Restore()
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_ModelStruct ¶
Replace_ModelStruct - заменяет структуру модели на новую
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.