mysql

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 (b *MySQLBuilder) BuildBatchAssociationBodySQL(
	argEntity *graph.ArgEntity,
	fields []*graph.Attribute,
	povitTableName string,
	ownerFieldName string,
	typeFieldName string,
	ids []uint64,
) string

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 (b *MySQLBuilder) BuildInsertSQL(fields []*data.Field, table *table.Table) string

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 (b *MySQLBuilder) BuildQueryAssociatedInstancesSQL(
	entity *graph.Entity,
	ownerId uint64,
	povitTableName string,
	ownerFieldName string,
	typeFieldName string,
) string

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 (b *MySQLBuilder) BuildQuerySQLBody(argEntity *graph.ArgEntity, fields []*graph.Attribute) string

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 (b *MySQLBuilder) BuildUpdateSQL(id uint64, fields []*data.Field, table *table.Table) string

func (*MySQLBuilder) BuildWhereSQL

func (b *MySQLBuilder) BuildWhereSQL(
	argEntity *graph.ArgEntity,
	fields []*graph.Attribute,
	where map[string]interface{},
) (string, []interface{})

func (*MySQLBuilder) ColumnTypeSQL

func (b *MySQLBuilder) ColumnTypeSQL(column *table.Column) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL