tables_tables

package
v0.0.0-...-e8f7755 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2024 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAllFiles

func CreateAllFiles(MapAll map[string]*types.Table) error

CreateAllFiles - создаёт все файлы в папке model

func CreateFiles

func CreateFiles(Table1 *types.Table) error

CreateFiles - создаёт 1 файл в папке db

func CreateFiles_Table_struct

func CreateFiles_Table_struct(Table1 *types.Table, DirTemplatesTable, DirReadyTable string) error

CreateFiles_Table_struct - создаёт 1 файл со структурой в папке model

func DeleteFunc_Delete

func DeleteFunc_Delete(TextModel, ModelName string, Table1 *types.Table) string

DeleteFunc_Delete - удаляет функцию Delete()

func DeleteFunc_Find_byExtID

func DeleteFunc_Find_byExtID(TextModel, Modelname string, Table1 *types.Table) string

DeleteFunc_Find_byExtID - удаляет функцию Find_ByExtID()

func DeleteFunc_Restore

func DeleteFunc_Restore(TextModel, Modelname string, Table1 *types.Table) string

DeleteFunc_Restore - удаляет функцию Restore()

func FillColumnsNameGo

func FillColumnsNameGo(MapAll *map[string]*types.Table) error

FillColumnsNameGo - заполняет NameGo во все колонки

func FindText_Column

func FindText_Column(TextModel string, Table1 *types.Table, Column1 *types.Column) (string, string)

FindText_Column - возвращает текст gorm

func FindText_ModelStruct

func FindText_ModelStruct(TextModel string, Table1 *types.Table) (string, string, string, error)

FindText_ModelStruct - возвращает текст структуры и тегов gorm

func FindText_PrimaryKey

func FindText_PrimaryKey(Is_identity bool) string

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

func Replace_ModelStruct(TextTemplateModel, TextModelStruct string) string

Replace_ModelStruct - заменяет структуру модели на новую

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳