Versions in this module Expand all Collapse all v2 v2.24.0 Nov 9, 2023 Changes in this version + type Config struct + Database string + FieldKeyCreatedAt string + FieldKeyDeletedAt string + FieldKeyUpdatedAt string + FieldPrimaryKey string + StructName string + TableName string + WithComments bool + WithMethods bool + WithTableInterfaces bool + WithTableName bool + func (g *Config) SetDefaults() + type Keys struct + Indexes builder.Indexes + Partition []string + Primary []string + UniqueIndexes builder.Indexes + func (ks *Keys) Bind(table *builder.Table) + func (ks *Keys) PatchUniqueIndexesWithSoftDelete(softDeleteField string) + type Model struct + FieldKeyAutoIncrement string + Fields map[string]*types.Var + HasAutoIncrement bool + HasCreatedAt bool + HasDeletedAt bool + HasUpdatedAt bool + func NewModel(pkg *packagesx.Package, typeName *types.TypeName, comments string, cfg *Config) *Model + func (m *Model) FieldType(file *codegen.File, fieldName string) codegen.SnippetType + func (m *Model) GetColDescriptions() map[string][]string + func (m *Model) GetComments() map[string]string + func (m *Model) GetRelations() map[string][]string + func (m *Model) IndexFieldNames() []string + func (m *Model) IteratorType() codegen.SnippetType + func (m *Model) PtrType() codegen.SnippetType + func (m *Model) Type() codegen.SnippetType + func (m *Model) VarTable() string + func (m *Model) WriteBatchList(file *codegen.File) + func (m *Model) WriteByKey(file *codegen.File) + func (m *Model) WriteCRUD(file *codegen.File) + func (m *Model) WriteCount(file *codegen.File) + func (m *Model) WriteCreate(file *codegen.File) + func (m *Model) WriteDelete(file *codegen.File) + func (m *Model) WriteList(file *codegen.File) + func (m *Model) WriteTableInterfaces(file *codegen.File) + func (m *Model) WriteTableKeyInterfaces(file *codegen.File) + func (m *Model) WriteTableName(file *codegen.File) + func (m *Model) WriteTo(file *codegen.File) + type SqlFuncGenerator struct + func NewSqlFuncGenerator(pkg *packagesx.Package) *SqlFuncGenerator + func (g *SqlFuncGenerator) Output(cwd string) + func (g *SqlFuncGenerator) Scan() v2.24.0-local Sep 27, 2023 Other modules containing this package github.com/kunlun-qilian/sqlx/v3