Versions in this module Expand all Collapse all v0 v0.0.2 Jun 13, 2024 Changes in this version + func Generate(param *Param) error + func GenerateTables(outputPath, packageName string, tables []string, isNew bool) error + func InsertPermissionInfoDB(conn db.Connection, name, slug, httpMethod, httpPath string) + func InsertPermissionOfTable(conn db.Connection, table string) + type Config struct + Conn db.Connection + Connection string + DetailDescription string + DetailDisplay uint8 + DetailTitle string + Driver string + ExtraCode string + ExtraImport string + FilterFormLayout form.Layout + FormDescription string + FormTitle string + HideBackButton bool + HideContinueEditCheckBox bool + HideContinueNewCheckBox bool + HideDeleteButton bool + HideDetailButton bool + HideEditButton bool + HideExportButton bool + HideFilterArea bool + HideFilterButton bool + HideNewButton bool + HidePagination bool + HideQueryInfo bool + HideResetButton bool + HideRowSelector bool + Output string + Package string + Schema string + Table string + TableDescription string + TableTitle string + type Field struct + CanAdd bool + CreateHide bool + DBType string + Default string + EditHide bool + Editable bool + ExtraFun string + Filterable bool + FormHide bool + FormType string + Head string + Hide bool + InfoEditable bool + IsPrimaryKey bool + Name string + Sortable bool + type Fields []Field + func (fs Fields) GetPrimaryKey() (string, string) + type Param struct + Connection string + DetailDescription string + DetailDisplay uint8 + DetailFields Fields + DetailTitle string + Driver string + ExtraCode string + ExtraImport string + Fields Fields + FilterFormLayout form.Layout + FormDescription string + FormFields Fields + FormTitle string + HideBackButton bool + HideContinueEditCheckBox bool + HideContinueNewCheckBox bool + HideDeleteButton bool + HideDetailButton bool + HideEditButton bool + HideExportButton bool + HideFilterArea bool + HideFilterButton bool + HideNewButton bool + HidePagination bool + HideQueryInfo bool + HideResetButton bool + HideRowSelector bool + Output string + Package string + PrimaryKey string + PrimaryKeyType string + RowTable string + Table string + TableDescription string + TableName string + TablePageTitle string + TableTitle string + func NewParam(cfg Config) *Param + func NewParamWithFields(cfg Config, fields ...Fields) *Param