Documentation
¶
Index ¶
- Constants
- type ZeroDbAutoMysqlProcessor
- func (processor *ZeroDbAutoMysqlProcessor) ColumnDiff(tableSchema string, tableName string, columName string, isNullable string, ...) (int, error)
- func (processor *ZeroDbAutoMysqlProcessor) ColumnExists(tableSchema string, tableName string, columName string) (int, error)
- func (processor *ZeroDbAutoMysqlProcessor) Create0FlagStruct(tableSchema string, tableName string) error
- func (processor *ZeroDbAutoMysqlProcessor) Create0Struct(tableSchema string, tableName string) error
- func (processor *ZeroDbAutoMysqlProcessor) DML0SPart(tableSchema string, tableName string) error
- func (processor *ZeroDbAutoMysqlProcessor) DMLColumn(tableSchema string, tableName string, columName string, isNullable string, ...) error
- func (processor *ZeroDbAutoMysqlProcessor) DMLConstraint(tableSchema string, tableName string, indexName string, defineIndexSQL string) error
- func (processor *ZeroDbAutoMysqlProcessor) DMLForeign(tableSchema string, tableName string, columnName string, relTableName string, ...) error
- func (processor *ZeroDbAutoMysqlProcessor) DMLIndex(tableSchema string, tableName string, indexName string) error
- func (processor *ZeroDbAutoMysqlProcessor) DMLPrimary(tableSchema string, tableName string, columnName string) error
- func (processor *ZeroDbAutoMysqlProcessor) DMLTable(tableSchema string, tableName string) error
- func (processor *ZeroDbAutoMysqlProcessor) DMLTrigger(tableSchema string, tableName string, triggerTiming string, ...) error
- func (processor *ZeroDbAutoMysqlProcessor) DMLUnique(tableSchema string, tableName string, columnName string) error
- func (processor *ZeroDbAutoMysqlProcessor) DropColumn(tableSchema string, tableName string, columName string) error
- func (processor *ZeroDbAutoMysqlProcessor) DropConstraint(tableSchema string, tableName string, indexName string) error
- func (processor *ZeroDbAutoMysqlProcessor) DropForeign(tableSchema string, tableName string, columnName string) error
- func (processor *ZeroDbAutoMysqlProcessor) DropIndex(tableSchema string, tableName string, indexName string) error
- func (processor *ZeroDbAutoMysqlProcessor) DropPartitionTable(tableSchema string, tableName string) error
- func (processor *ZeroDbAutoMysqlProcessor) DropPrimary(tableSchema string, tableName string, columnName string) error
- func (processor *ZeroDbAutoMysqlProcessor) DropTrigger(tableSchema string, tableName string, triggerName string) error
- func (processor *ZeroDbAutoMysqlProcessor) DropUnique(tableSchema string, tableName string, columnName string) error
- func (processor *ZeroDbAutoMysqlProcessor) IndexExists(tableSchema string, tableName string, indexName string) (int, error)
- func (processor *ZeroDbAutoMysqlProcessor) TableExists(tableSchema string, tableName string) (int, error)
- func (processor *ZeroDbAutoMysqlProcessor) TriggerExists(tableSchema string, tableName string, triggerTiming string, ...) (int, error)
- type ZeroDbAutoPostgresProcessor
- func (processor *ZeroDbAutoPostgresProcessor) ColumnDiff(tableSchema string, tableName string, columName string, isNullable string, ...) (int, error)
- func (processor *ZeroDbAutoPostgresProcessor) ColumnExists(tableSchema string, tableName string, columName string) (int, error)
- func (processor *ZeroDbAutoPostgresProcessor) Create0FlagStruct(tableSchema string, tableName string) error
- func (processor *ZeroDbAutoPostgresProcessor) Create0Struct(tableSchema string, tableName string) error
- func (processor *ZeroDbAutoPostgresProcessor) DML0SPart(tableSchema string, tableName string) error
- func (processor *ZeroDbAutoPostgresProcessor) DMLColumn(tableSchema string, tableName string, columName string, isNullable string, ...) error
- func (processor *ZeroDbAutoPostgresProcessor) DMLConstraint(tableSchema string, tableName string, indexName string, defineIndexSQL string) error
- func (processor *ZeroDbAutoPostgresProcessor) DMLForeign(tableSchema string, tableName string, columnName string, relTableName string, ...) error
- func (processor *ZeroDbAutoPostgresProcessor) DMLIndex(tableSchema string, tableName string, indexName string) error
- func (processor *ZeroDbAutoPostgresProcessor) DMLPrimary(tableSchema string, tableName string, columnName string) error
- func (processor *ZeroDbAutoPostgresProcessor) DMLTable(tableSchema string, tableName string) error
- func (processor *ZeroDbAutoPostgresProcessor) DMLTrigger(tableSchema string, tableName string, triggerTiming string, ...) error
- func (processor *ZeroDbAutoPostgresProcessor) DMLUnique(tableSchema string, tableName string, columnName string) error
- func (processor *ZeroDbAutoPostgresProcessor) DropColumn(tableSchema string, tableName string, columName string) error
- func (processor *ZeroDbAutoPostgresProcessor) DropConstraint(tableSchema string, tableName string, indexName string) error
- func (processor *ZeroDbAutoPostgresProcessor) DropForeign(tableSchema string, tableName string, columnName string) error
- func (processor *ZeroDbAutoPostgresProcessor) DropIndex(tableSchema string, tableName string, indexName string) error
- func (processor *ZeroDbAutoPostgresProcessor) DropPartitionTable(tableSchema string, tableName string) error
- func (processor *ZeroDbAutoPostgresProcessor) DropPrimary(tableSchema string, tableName string, columnName string) error
- func (processor *ZeroDbAutoPostgresProcessor) DropTrigger(tableSchema string, tableName string, triggerName string) error
- func (processor *ZeroDbAutoPostgresProcessor) DropUnique(tableSchema string, tableName string, columnName string) error
- func (processor *ZeroDbAutoPostgresProcessor) IndexExists(tableSchema string, tableName string, indexName string) (int, error)
- func (processor *ZeroDbAutoPostgresProcessor) TableExists(tableSchema string, tableName string) (int, error)
- func (processor *ZeroDbAutoPostgresProcessor) TriggerExists(tableSchema string, tableName string, triggerTiming string, ...) (int, error)
- type ZeroDbAutoProcessor
Constants ¶
View Source
const ( ZDA_NULL = "NULL" ZDA_TRIGGER_TIMING_BEFORE = "BEFORE" ZDA_TRIGGER_TIMING_AFTER = "AFTER" ZDA_TRIGGER_EVENT_INSERT = "INSERT" ZDA_TRIGGER_EVENT_UPDATE = "UPDATE" ZDA_TRIGGER_EVENT_DELETE = "DELETE" ZDA_TRIGGER_EVENT_SELECT = "SELECT" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZeroDbAutoMysqlProcessor ¶
type ZeroDbAutoMysqlProcessor struct {
x0meet1.ZeroCoreProcessor
}
func (*ZeroDbAutoMysqlProcessor) ColumnDiff ¶
func (*ZeroDbAutoMysqlProcessor) ColumnExists ¶
func (*ZeroDbAutoMysqlProcessor) Create0FlagStruct ¶
func (processor *ZeroDbAutoMysqlProcessor) Create0FlagStruct(tableSchema string, tableName string) error
func (*ZeroDbAutoMysqlProcessor) Create0Struct ¶
func (processor *ZeroDbAutoMysqlProcessor) Create0Struct(tableSchema string, tableName string) error
func (*ZeroDbAutoMysqlProcessor) DML0SPart ¶
func (processor *ZeroDbAutoMysqlProcessor) DML0SPart(tableSchema string, tableName string) error
func (*ZeroDbAutoMysqlProcessor) DMLConstraint ¶
func (*ZeroDbAutoMysqlProcessor) DMLForeign ¶
func (*ZeroDbAutoMysqlProcessor) DMLIndex ¶
func (processor *ZeroDbAutoMysqlProcessor) DMLIndex(tableSchema string, tableName string, indexName string) error
func (*ZeroDbAutoMysqlProcessor) DMLPrimary ¶
func (processor *ZeroDbAutoMysqlProcessor) DMLPrimary(tableSchema string, tableName string, columnName string) error
func (*ZeroDbAutoMysqlProcessor) DMLTable ¶
func (processor *ZeroDbAutoMysqlProcessor) DMLTable(tableSchema string, tableName string) error
func (*ZeroDbAutoMysqlProcessor) DMLTrigger ¶
func (*ZeroDbAutoMysqlProcessor) DMLUnique ¶
func (processor *ZeroDbAutoMysqlProcessor) DMLUnique(tableSchema string, tableName string, columnName string) error
func (*ZeroDbAutoMysqlProcessor) DropColumn ¶
func (processor *ZeroDbAutoMysqlProcessor) DropColumn(tableSchema string, tableName string, columName string) error
func (*ZeroDbAutoMysqlProcessor) DropConstraint ¶
func (processor *ZeroDbAutoMysqlProcessor) DropConstraint(tableSchema string, tableName string, indexName string) error
func (*ZeroDbAutoMysqlProcessor) DropForeign ¶
func (processor *ZeroDbAutoMysqlProcessor) DropForeign(tableSchema string, tableName string, columnName string) error
func (*ZeroDbAutoMysqlProcessor) DropIndex ¶
func (processor *ZeroDbAutoMysqlProcessor) DropIndex(tableSchema string, tableName string, indexName string) error
func (*ZeroDbAutoMysqlProcessor) DropPartitionTable ¶
func (processor *ZeroDbAutoMysqlProcessor) DropPartitionTable(tableSchema string, tableName string) error
func (*ZeroDbAutoMysqlProcessor) DropPrimary ¶
func (processor *ZeroDbAutoMysqlProcessor) DropPrimary(tableSchema string, tableName string, columnName string) error
func (*ZeroDbAutoMysqlProcessor) DropTrigger ¶
func (processor *ZeroDbAutoMysqlProcessor) DropTrigger(tableSchema string, tableName string, triggerName string) error
func (*ZeroDbAutoMysqlProcessor) DropUnique ¶
func (processor *ZeroDbAutoMysqlProcessor) DropUnique(tableSchema string, tableName string, columnName string) error
func (*ZeroDbAutoMysqlProcessor) IndexExists ¶
func (*ZeroDbAutoMysqlProcessor) TableExists ¶
func (processor *ZeroDbAutoMysqlProcessor) TableExists(tableSchema string, tableName string) (int, error)
type ZeroDbAutoPostgresProcessor ¶
type ZeroDbAutoPostgresProcessor struct {
x0meet1.ZeroCoreProcessor
}
func (*ZeroDbAutoPostgresProcessor) ColumnDiff ¶
func (*ZeroDbAutoPostgresProcessor) ColumnExists ¶
func (*ZeroDbAutoPostgresProcessor) Create0FlagStruct ¶
func (processor *ZeroDbAutoPostgresProcessor) Create0FlagStruct(tableSchema string, tableName string) error
func (*ZeroDbAutoPostgresProcessor) Create0Struct ¶
func (processor *ZeroDbAutoPostgresProcessor) Create0Struct(tableSchema string, tableName string) error
func (*ZeroDbAutoPostgresProcessor) DML0SPart ¶
func (processor *ZeroDbAutoPostgresProcessor) DML0SPart(tableSchema string, tableName string) error
func (*ZeroDbAutoPostgresProcessor) DMLConstraint ¶
func (*ZeroDbAutoPostgresProcessor) DMLForeign ¶
func (*ZeroDbAutoPostgresProcessor) DMLIndex ¶
func (processor *ZeroDbAutoPostgresProcessor) DMLIndex( tableSchema string, tableName string, indexName string) error
func (*ZeroDbAutoPostgresProcessor) DMLPrimary ¶
func (processor *ZeroDbAutoPostgresProcessor) DMLPrimary( tableSchema string, tableName string, columnName string) error
func (*ZeroDbAutoPostgresProcessor) DMLTable ¶
func (processor *ZeroDbAutoPostgresProcessor) DMLTable(tableSchema string, tableName string) error
func (*ZeroDbAutoPostgresProcessor) DMLTrigger ¶
func (*ZeroDbAutoPostgresProcessor) DMLUnique ¶
func (processor *ZeroDbAutoPostgresProcessor) DMLUnique( tableSchema string, tableName string, columnName string) error
func (*ZeroDbAutoPostgresProcessor) DropColumn ¶
func (processor *ZeroDbAutoPostgresProcessor) DropColumn(tableSchema string, tableName string, columName string) error
func (*ZeroDbAutoPostgresProcessor) DropConstraint ¶
func (processor *ZeroDbAutoPostgresProcessor) DropConstraint(tableSchema string, tableName string, indexName string) error
func (*ZeroDbAutoPostgresProcessor) DropForeign ¶
func (processor *ZeroDbAutoPostgresProcessor) DropForeign( tableSchema string, tableName string, columnName string) error
func (*ZeroDbAutoPostgresProcessor) DropIndex ¶
func (processor *ZeroDbAutoPostgresProcessor) DropIndex(tableSchema string, tableName string, indexName string) error
func (*ZeroDbAutoPostgresProcessor) DropPartitionTable ¶
func (processor *ZeroDbAutoPostgresProcessor) DropPartitionTable(tableSchema string, tableName string) error
func (*ZeroDbAutoPostgresProcessor) DropPrimary ¶
func (processor *ZeroDbAutoPostgresProcessor) DropPrimary( tableSchema string, tableName string, columnName string) error
func (*ZeroDbAutoPostgresProcessor) DropTrigger ¶
func (processor *ZeroDbAutoPostgresProcessor) DropTrigger( tableSchema string, tableName string, triggerName string) error
func (*ZeroDbAutoPostgresProcessor) DropUnique ¶
func (processor *ZeroDbAutoPostgresProcessor) DropUnique( tableSchema string, tableName string, columnName string) error
func (*ZeroDbAutoPostgresProcessor) IndexExists ¶
func (*ZeroDbAutoPostgresProcessor) TableExists ¶
func (processor *ZeroDbAutoPostgresProcessor) TableExists(tableSchema string, tableName string) (int, error)
type ZeroDbAutoProcessor ¶
type ZeroDbAutoProcessor interface {
Build(transaction *sql.Tx)
ColumnExists(tableSchema string, tableName string, columName string) (int, error)
ColumnDiff(tableSchema string, tableName string, columName string, isNullable string, columnType string, columnDefault string) (int, error)
DMLColumn(tableSchema string, tableName string, columName string, isNullable string, columnType string, columnDefault string) error
DropColumn(tableSchema string, tableName string, columName string) error
IndexExists(tableSchema string, tableName string, indexName string) (int, error)
DMLConstraint(tableSchema string, tableName string, indexName string, defineIndexSQL string) error
DropConstraint(tableSchema string, tableName string, indexName string) error
DMLIndex(tableSchema string, tableName string, indexName string) error
DropIndex(tableSchema string, tableName string, indexName string) error
TriggerExists(tableSchema string, tableName string, triggerTiming string, triggerEvent string, triggerName string, triggerAction string) (int, error)
DMLTrigger(tableSchema string, tableName string, triggerTiming string, triggerEvent string, triggerName string, triggerAction string) error
DropTrigger(tableSchema string, tableName string, triggerName string) error
DMLPrimary(tableSchema string, tableName string, columnName string) error
DropPrimary(tableSchema string, tableName string, columnName string) error
DMLUnique(tableSchema string, tableName string, columnName string) error
DropUnique(tableSchema string, tableName string, columnName string) error
DMLForeign(tableSchema string, tableName string, columnName string, relTableName string, relColumnName string) error
DropForeign(tableSchema string, tableName string, columnName string) error
TableExists(tableSchema string, tableName string) (int, error)
DMLTable(tableSchema string, tableName string) error
Create0Struct(tableSchema string, tableName string) error
Create0FlagStruct(tableSchema string, tableName string) error
DML0SPart(tableSchema string, tableName string) error
DropPartitionTable(tableSchema string, tableName string) error
}
Click to show internal directories.
Click to hide internal directories.