Documentation ¶
Index ¶
- type MySQLBuilder
- func (b *MySQLBuilder) BuildBatchAssociationBodySQL(argEntity *graph.ArgEntity, fields []*graph.Attribute, povitTableName string, ...) string
- func (b *MySQLBuilder) BuildBoolExp(argEntity *graph.ArgEntity, where map[string]interface{}) (string, []interface{})
- func (b *MySQLBuilder) BuildCheckAssociationSQL(ownerId uint64, tableName string, ownerFieldName string) string
- func (b *MySQLBuilder) BuildCheckPovitSQL(povit *data.AssociationPovit) string
- func (b *MySQLBuilder) BuildClearAssociationSQL(ownerId uint64, tableName string, ownerFieldName string) string
- func (b *MySQLBuilder) BuildColumnSQL(column *table.Column) string
- func (*MySQLBuilder) BuildCreateMetaSQL() string
- func (b *MySQLBuilder) BuildCreateTableSQL(table *table.Table) string
- func (b *MySQLBuilder) BuildDeletePovitSQL(povit *data.AssociationPovit) string
- func (b *MySQLBuilder) BuildDeleteSQL(id uint64, tableName string) string
- func (b *MySQLBuilder) BuildDeleteTableSQL(table *table.Table) string
- func (*MySQLBuilder) BuildFieldExp(fieldName string, fieldArgs map[string]interface{}) (string, []interface{})
- func (b *MySQLBuilder) BuildInsertPovitSQL(povit *data.AssociationPovit) string
- func (b *MySQLBuilder) BuildInsertSQL(fields []*data.Field, table *table.Table) string
- func (b *MySQLBuilder) BuildModifyTableAtoms(diff *model.TableDiff) []model.ModifyAtom
- func (b *MySQLBuilder) BuildOrderBySQL(argEntity *graph.ArgEntity, orderBy interface{}) string
- func (b *MySQLBuilder) BuildQueryAssociatedInstancesSQL(entity *graph.Entity, ownerId uint64, povitTableName string, ...) string
- func (b *MySQLBuilder) BuildQueryByIdsSQL(entity *graph.Entity, idCounts int) string
- func (b *MySQLBuilder) BuildQueryCountSQLBody(argEntity *graph.ArgEntity) string
- func (b *MySQLBuilder) BuildQueryPovitSQL(povit *data.AssociationPovit) string
- func (b *MySQLBuilder) BuildQuerySQLBody(argEntity *graph.ArgEntity, fields []*graph.Attribute) string
- func (b *MySQLBuilder) BuildSoftDeleteSQL(id uint64, tableName string) string
- func (b *MySQLBuilder) BuildTableCheckSQL(name string, database string) string
- func (b *MySQLBuilder) BuildUpdateSQL(id uint64, fields []*data.Field, table *table.Table) string
- func (b *MySQLBuilder) BuildWhereSQL(argEntity *graph.ArgEntity, fields []*graph.Attribute, ...) (string, []interface{})
- func (b *MySQLBuilder) ColumnTypeSQL(column *table.Column) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQLBuilder ¶
type MySQLBuilder struct { }
func (*MySQLBuilder) BuildBatchAssociationBodySQL ¶
func (*MySQLBuilder) BuildBoolExp ¶
func (b *MySQLBuilder) BuildBoolExp(argEntity *graph.ArgEntity, where map[string]interface{}) (string, []interface{})
func (*MySQLBuilder) BuildCheckAssociationSQL ¶
func (b *MySQLBuilder) BuildCheckAssociationSQL(ownerId uint64, tableName string, ownerFieldName string) string
删除前检查SQL
func (*MySQLBuilder) BuildCheckPovitSQL ¶
func (b *MySQLBuilder) BuildCheckPovitSQL(povit *data.AssociationPovit) string
func (*MySQLBuilder) BuildClearAssociationSQL ¶
func (b *MySQLBuilder) BuildClearAssociationSQL(ownerId uint64, tableName string, ownerFieldName string) string
func (*MySQLBuilder) BuildColumnSQL ¶
func (b *MySQLBuilder) BuildColumnSQL(column *table.Column) string
func (*MySQLBuilder) BuildCreateMetaSQL ¶
func (*MySQLBuilder) BuildCreateMetaSQL() string
func (*MySQLBuilder) BuildCreateTableSQL ¶
func (b *MySQLBuilder) BuildCreateTableSQL(table *table.Table) string
func (*MySQLBuilder) BuildDeletePovitSQL ¶
func (b *MySQLBuilder) BuildDeletePovitSQL(povit *data.AssociationPovit) string
func (*MySQLBuilder) BuildDeleteSQL ¶
func (b *MySQLBuilder) BuildDeleteSQL(id uint64, tableName string) string
func (*MySQLBuilder) BuildDeleteTableSQL ¶
func (b *MySQLBuilder) BuildDeleteTableSQL(table *table.Table) string
func (*MySQLBuilder) BuildFieldExp ¶
func (*MySQLBuilder) BuildFieldExp(fieldName string, fieldArgs map[string]interface{}) (string, []interface{})
func (*MySQLBuilder) BuildInsertPovitSQL ¶
func (b *MySQLBuilder) BuildInsertPovitSQL(povit *data.AssociationPovit) string
func (*MySQLBuilder) BuildInsertSQL ¶
func (*MySQLBuilder) BuildModifyTableAtoms ¶
func (b *MySQLBuilder) BuildModifyTableAtoms(diff *model.TableDiff) []model.ModifyAtom
func (*MySQLBuilder) BuildOrderBySQL ¶
func (b *MySQLBuilder) BuildOrderBySQL( argEntity *graph.ArgEntity, orderBy interface{}, ) string
func (*MySQLBuilder) BuildQueryAssociatedInstancesSQL ¶
func (*MySQLBuilder) BuildQueryByIdsSQL ¶
func (b *MySQLBuilder) BuildQueryByIdsSQL(entity *graph.Entity, idCounts int) string
func (*MySQLBuilder) BuildQueryCountSQLBody ¶
func (b *MySQLBuilder) BuildQueryCountSQLBody(argEntity *graph.ArgEntity) string
func (*MySQLBuilder) BuildQueryPovitSQL ¶
func (b *MySQLBuilder) BuildQueryPovitSQL(povit *data.AssociationPovit) string
func (*MySQLBuilder) BuildQuerySQLBody ¶
func (*MySQLBuilder) BuildSoftDeleteSQL ¶
func (b *MySQLBuilder) BuildSoftDeleteSQL(id uint64, tableName string) string
func (*MySQLBuilder) BuildTableCheckSQL ¶
func (b *MySQLBuilder) BuildTableCheckSQL(name string, database string) string
func (*MySQLBuilder) BuildUpdateSQL ¶
func (*MySQLBuilder) BuildWhereSQL ¶
func (*MySQLBuilder) ColumnTypeSQL ¶
func (b *MySQLBuilder) ColumnTypeSQL(column *table.Column) string
Click to show internal directories.
Click to hide internal directories.