Documentation
¶
Index ¶
- Constants
- type ZeroXsacKeeper
- func (keeper *ZeroXsacKeeper) AddTypes(types ...reflect.Type) *ZeroXsacKeeper
- func (keeper *ZeroXsacKeeper) DMLTables()
- func (keeper *ZeroXsacKeeper) DataSource(dataSource string) *ZeroXsacKeeper
- func (keeper *ZeroXsacKeeper) Exports() []*server.XhttpExecutor
- func (keeper *ZeroXsacKeeper) RunKeeper() *ZeroXsacKeeper
- type ZeroXsacMysqlProcessor
- func (processor *ZeroXsacMysqlProcessor) ColumnDiff(tableSchema string, tableName string, columName string, isNullable string, ...) (int, error)
- func (processor *ZeroXsacMysqlProcessor) ColumnExists(tableSchema string, tableName string, columName string) (int, error)
- func (processor *ZeroXsacMysqlProcessor) Create0FlagStruct(tableSchema string, tableName string) error
- func (processor *ZeroXsacMysqlProcessor) Create0Struct(tableSchema string, tableName string) error
- func (processor *ZeroXsacMysqlProcessor) DMLColumn(tableSchema string, tableName string, columName string, isNullable string, ...) error
- func (processor *ZeroXsacMysqlProcessor) DMLConstraint(tableSchema string, tableName string, indexName string, defineIndexSQL string) error
- func (processor *ZeroXsacMysqlProcessor) DMLD0SPart(tableSchema string, tableName string) error
- func (processor *ZeroXsacMysqlProcessor) DMLForeign(tableSchema string, tableName string, columnName string, relTableName string, ...) error
- func (processor *ZeroXsacMysqlProcessor) DMLIndex(tableSchema string, tableName string, colnumName string) error
- func (processor *ZeroXsacMysqlProcessor) DMLM0SPart(tableSchema string, tableName string) error
- func (processor *ZeroXsacMysqlProcessor) DMLPrimary(tableSchema string, tableName string, columnName string) error
- func (processor *ZeroXsacMysqlProcessor) DMLTable(tableSchema string, tableName string) error
- func (processor *ZeroXsacMysqlProcessor) DMLTrigger(tableSchema string, tableName string, triggerTiming string, ...) error
- func (processor *ZeroXsacMysqlProcessor) DMLUnique(tableSchema string, tableName string, columnName string) error
- func (processor *ZeroXsacMysqlProcessor) DMLY0SPart(tableSchema string, tableName string) error
- func (processor *ZeroXsacMysqlProcessor) DropColumn(tableSchema string, tableName string, columName string) error
- func (processor *ZeroXsacMysqlProcessor) DropConstraint(tableSchema string, tableName string, indexName string) error
- func (processor *ZeroXsacMysqlProcessor) DropForeign(tableSchema string, tableName string, columnName string) error
- func (processor *ZeroXsacMysqlProcessor) DropIndex(tableSchema string, tableName string, colnumName string) error
- func (processor *ZeroXsacMysqlProcessor) DropPartitionTable(tableSchema string, tableName string) error
- func (processor *ZeroXsacMysqlProcessor) DropPrimary(tableSchema string, tableName string, columnName string) error
- func (processor *ZeroXsacMysqlProcessor) DropTrigger(tableSchema string, tableName string, triggerName string) error
- func (processor *ZeroXsacMysqlProcessor) DropUnique(tableSchema string, tableName string, columnName string) error
- func (processor *ZeroXsacMysqlProcessor) IndexExists(tableSchema string, tableName string, indexName string) (int, error)
- func (processor *ZeroXsacMysqlProcessor) TableExists(tableSchema string, tableName string) (int, error)
- func (processor *ZeroXsacMysqlProcessor) TriggerExists(tableSchema string, tableName string, triggerTiming string, ...) (int, error)
- type ZeroXsacPostgresProcessor
- func (processor *ZeroXsacPostgresProcessor) ColumnDiff(tableSchema string, tableName string, columName string, isNullable string, ...) (int, error)
- func (processor *ZeroXsacPostgresProcessor) ColumnExists(tableSchema string, tableName string, columName string) (int, error)
- func (processor *ZeroXsacPostgresProcessor) Create0FlagStruct(tableSchema string, tableName string) error
- func (processor *ZeroXsacPostgresProcessor) Create0Struct(tableSchema string, tableName string) error
- func (processor *ZeroXsacPostgresProcessor) DMLColumn(tableSchema string, tableName string, columName string, isNullable string, ...) error
- func (processor *ZeroXsacPostgresProcessor) DMLConstraint(tableSchema string, tableName string, indexName string, defineIndexSQL string) error
- func (processor *ZeroXsacPostgresProcessor) DMLD0SPart(tableSchema string, tableName string) error
- func (processor *ZeroXsacPostgresProcessor) DMLForeign(tableSchema string, tableName string, columnName string, relTableName string, ...) error
- func (processor *ZeroXsacPostgresProcessor) DMLIndex(tableSchema string, tableName string, colnumName string) error
- func (processor *ZeroXsacPostgresProcessor) DMLM0SPart(tableSchema string, tableName string) error
- func (processor *ZeroXsacPostgresProcessor) DMLPrimary(tableSchema string, tableName string, columnName string) error
- func (processor *ZeroXsacPostgresProcessor) DMLTable(tableSchema string, tableName string) error
- func (processor *ZeroXsacPostgresProcessor) DMLTrigger(tableSchema string, tableName string, triggerTiming string, ...) error
- func (processor *ZeroXsacPostgresProcessor) DMLUnique(tableSchema string, tableName string, columnName string) error
- func (processor *ZeroXsacPostgresProcessor) DMLY0SPart(tableSchema string, tableName string) error
- func (processor *ZeroXsacPostgresProcessor) DropColumn(tableSchema string, tableName string, columName string) error
- func (processor *ZeroXsacPostgresProcessor) DropConstraint(tableSchema string, tableName string, indexName string) error
- func (processor *ZeroXsacPostgresProcessor) DropForeign(tableSchema string, tableName string, columnName string) error
- func (processor *ZeroXsacPostgresProcessor) DropIndex(tableSchema string, tableName string, colnumName string) error
- func (processor *ZeroXsacPostgresProcessor) DropPartitionTable(tableSchema string, tableName string) error
- func (processor *ZeroXsacPostgresProcessor) DropPrimary(tableSchema string, tableName string, columnName string) error
- func (processor *ZeroXsacPostgresProcessor) DropTrigger(tableSchema string, tableName string, triggerName string) error
- func (processor *ZeroXsacPostgresProcessor) DropUnique(tableSchema string, tableName string, columnName string) error
- func (processor *ZeroXsacPostgresProcessor) IndexExists(tableSchema string, tableName string, indexName string) (int, error)
- func (processor *ZeroXsacPostgresProcessor) TableExists(tableSchema string, tableName string) (int, error)
- func (processor *ZeroXsacPostgresProcessor) TriggerExists(tableSchema string, tableName string, triggerTiming string, ...) (int, error)
- type ZeroXsacProcessor
Constants ¶
View Source
const ( XSAC_TRIGGER_TIMING_BEFORE = "BEFORE" XSAC_TRIGGER_TIMING_AFTER = "AFTER" XSAC_TRIGGER_EVENT_INSERT = "INSERT" XSAC_TRIGGER_EVENT_UPDATE = "UPDATE" XSAC_TRIGGER_EVENT_DELETE = "DELETE" XSAC_TRIGGER_EVENT_SELECT = "SELECT" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZeroXsacKeeper ¶ added in v1.11.0
type ZeroXsacKeeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶ added in v1.11.0
func NewKeeper(proctype reflect.Type, types ...reflect.Type) *ZeroXsacKeeper
func (*ZeroXsacKeeper) AddTypes ¶ added in v1.11.0
func (keeper *ZeroXsacKeeper) AddTypes(types ...reflect.Type) *ZeroXsacKeeper
func (*ZeroXsacKeeper) DMLTables ¶ added in v1.11.0
func (keeper *ZeroXsacKeeper) DMLTables()
func (*ZeroXsacKeeper) DataSource ¶ added in v1.11.0
func (keeper *ZeroXsacKeeper) DataSource(dataSource string) *ZeroXsacKeeper
func (*ZeroXsacKeeper) Exports ¶ added in v1.11.0
func (keeper *ZeroXsacKeeper) Exports() []*server.XhttpExecutor
func (*ZeroXsacKeeper) RunKeeper ¶ added in v1.11.0
func (keeper *ZeroXsacKeeper) RunKeeper() *ZeroXsacKeeper
type ZeroXsacMysqlProcessor ¶ added in v1.11.0
type ZeroXsacMysqlProcessor struct {
processors.ZeroCoreProcessor
}
func (*ZeroXsacMysqlProcessor) ColumnDiff ¶ added in v1.11.0
func (*ZeroXsacMysqlProcessor) ColumnExists ¶ added in v1.11.0
func (*ZeroXsacMysqlProcessor) Create0FlagStruct ¶ added in v1.11.0
func (processor *ZeroXsacMysqlProcessor) Create0FlagStruct(tableSchema string, tableName string) error
func (*ZeroXsacMysqlProcessor) Create0Struct ¶ added in v1.11.0
func (processor *ZeroXsacMysqlProcessor) Create0Struct(tableSchema string, tableName string) error
func (*ZeroXsacMysqlProcessor) DMLConstraint ¶ added in v1.11.0
func (*ZeroXsacMysqlProcessor) DMLD0SPart ¶ added in v1.11.36
func (processor *ZeroXsacMysqlProcessor) DMLD0SPart(tableSchema string, tableName string) error
func (*ZeroXsacMysqlProcessor) DMLForeign ¶ added in v1.11.0
func (*ZeroXsacMysqlProcessor) DMLIndex ¶ added in v1.11.0
func (processor *ZeroXsacMysqlProcessor) DMLIndex(tableSchema string, tableName string, colnumName string) error
func (*ZeroXsacMysqlProcessor) DMLM0SPart ¶ added in v1.11.36
func (processor *ZeroXsacMysqlProcessor) DMLM0SPart(tableSchema string, tableName string) error
func (*ZeroXsacMysqlProcessor) DMLPrimary ¶ added in v1.11.0
func (processor *ZeroXsacMysqlProcessor) DMLPrimary(tableSchema string, tableName string, columnName string) error
func (*ZeroXsacMysqlProcessor) DMLTable ¶ added in v1.11.0
func (processor *ZeroXsacMysqlProcessor) DMLTable(tableSchema string, tableName string) error
func (*ZeroXsacMysqlProcessor) DMLTrigger ¶ added in v1.11.0
func (*ZeroXsacMysqlProcessor) DMLUnique ¶ added in v1.11.0
func (processor *ZeroXsacMysqlProcessor) DMLUnique(tableSchema string, tableName string, columnName string) error
func (*ZeroXsacMysqlProcessor) DMLY0SPart ¶ added in v1.11.36
func (processor *ZeroXsacMysqlProcessor) DMLY0SPart(tableSchema string, tableName string) error
func (*ZeroXsacMysqlProcessor) DropColumn ¶ added in v1.11.0
func (processor *ZeroXsacMysqlProcessor) DropColumn(tableSchema string, tableName string, columName string) error
func (*ZeroXsacMysqlProcessor) DropConstraint ¶ added in v1.11.0
func (processor *ZeroXsacMysqlProcessor) DropConstraint(tableSchema string, tableName string, indexName string) error
func (*ZeroXsacMysqlProcessor) DropForeign ¶ added in v1.11.0
func (processor *ZeroXsacMysqlProcessor) DropForeign(tableSchema string, tableName string, columnName string) error
func (*ZeroXsacMysqlProcessor) DropIndex ¶ added in v1.11.0
func (processor *ZeroXsacMysqlProcessor) DropIndex(tableSchema string, tableName string, colnumName string) error
func (*ZeroXsacMysqlProcessor) DropPartitionTable ¶ added in v1.11.0
func (processor *ZeroXsacMysqlProcessor) DropPartitionTable(tableSchema string, tableName string) error
func (*ZeroXsacMysqlProcessor) DropPrimary ¶ added in v1.11.0
func (processor *ZeroXsacMysqlProcessor) DropPrimary(tableSchema string, tableName string, columnName string) error
func (*ZeroXsacMysqlProcessor) DropTrigger ¶ added in v1.11.0
func (processor *ZeroXsacMysqlProcessor) DropTrigger(tableSchema string, tableName string, triggerName string) error
func (*ZeroXsacMysqlProcessor) DropUnique ¶ added in v1.11.0
func (processor *ZeroXsacMysqlProcessor) DropUnique(tableSchema string, tableName string, columnName string) error
func (*ZeroXsacMysqlProcessor) IndexExists ¶ added in v1.11.0
func (*ZeroXsacMysqlProcessor) TableExists ¶ added in v1.11.0
func (processor *ZeroXsacMysqlProcessor) TableExists(tableSchema string, tableName string) (int, error)
type ZeroXsacPostgresProcessor ¶ added in v1.11.0
type ZeroXsacPostgresProcessor struct {
processors.ZeroCoreProcessor
}
func (*ZeroXsacPostgresProcessor) ColumnDiff ¶ added in v1.11.0
func (*ZeroXsacPostgresProcessor) ColumnExists ¶ added in v1.11.0
func (*ZeroXsacPostgresProcessor) Create0FlagStruct ¶ added in v1.11.0
func (processor *ZeroXsacPostgresProcessor) Create0FlagStruct(tableSchema string, tableName string) error
func (*ZeroXsacPostgresProcessor) Create0Struct ¶ added in v1.11.0
func (processor *ZeroXsacPostgresProcessor) Create0Struct(tableSchema string, tableName string) error
func (*ZeroXsacPostgresProcessor) DMLConstraint ¶ added in v1.11.0
func (*ZeroXsacPostgresProcessor) DMLD0SPart ¶ added in v1.11.36
func (processor *ZeroXsacPostgresProcessor) DMLD0SPart(tableSchema string, tableName string) error
func (*ZeroXsacPostgresProcessor) DMLForeign ¶ added in v1.11.0
func (*ZeroXsacPostgresProcessor) DMLIndex ¶ added in v1.11.0
func (processor *ZeroXsacPostgresProcessor) DMLIndex( tableSchema string, tableName string, colnumName string) error
func (*ZeroXsacPostgresProcessor) DMLM0SPart ¶ added in v1.11.36
func (processor *ZeroXsacPostgresProcessor) DMLM0SPart(tableSchema string, tableName string) error
func (*ZeroXsacPostgresProcessor) DMLPrimary ¶ added in v1.11.0
func (processor *ZeroXsacPostgresProcessor) DMLPrimary( tableSchema string, tableName string, columnName string) error
func (*ZeroXsacPostgresProcessor) DMLTable ¶ added in v1.11.0
func (processor *ZeroXsacPostgresProcessor) DMLTable(tableSchema string, tableName string) error
func (*ZeroXsacPostgresProcessor) DMLTrigger ¶ added in v1.11.0
func (*ZeroXsacPostgresProcessor) DMLUnique ¶ added in v1.11.0
func (processor *ZeroXsacPostgresProcessor) DMLUnique( tableSchema string, tableName string, columnName string) error
func (*ZeroXsacPostgresProcessor) DMLY0SPart ¶ added in v1.11.36
func (processor *ZeroXsacPostgresProcessor) DMLY0SPart(tableSchema string, tableName string) error
func (*ZeroXsacPostgresProcessor) DropColumn ¶ added in v1.11.0
func (processor *ZeroXsacPostgresProcessor) DropColumn(tableSchema string, tableName string, columName string) error
func (*ZeroXsacPostgresProcessor) DropConstraint ¶ added in v1.11.0
func (processor *ZeroXsacPostgresProcessor) DropConstraint(tableSchema string, tableName string, indexName string) error
func (*ZeroXsacPostgresProcessor) DropForeign ¶ added in v1.11.0
func (processor *ZeroXsacPostgresProcessor) DropForeign( tableSchema string, tableName string, columnName string) error
func (*ZeroXsacPostgresProcessor) DropIndex ¶ added in v1.11.0
func (processor *ZeroXsacPostgresProcessor) DropIndex(tableSchema string, tableName string, colnumName string) error
func (*ZeroXsacPostgresProcessor) DropPartitionTable ¶ added in v1.11.0
func (processor *ZeroXsacPostgresProcessor) DropPartitionTable(tableSchema string, tableName string) error
func (*ZeroXsacPostgresProcessor) DropPrimary ¶ added in v1.11.0
func (processor *ZeroXsacPostgresProcessor) DropPrimary( tableSchema string, tableName string, columnName string) error
func (*ZeroXsacPostgresProcessor) DropTrigger ¶ added in v1.11.0
func (processor *ZeroXsacPostgresProcessor) DropTrigger( tableSchema string, tableName string, triggerName string) error
func (*ZeroXsacPostgresProcessor) DropUnique ¶ added in v1.11.0
func (processor *ZeroXsacPostgresProcessor) DropUnique( tableSchema string, tableName string, columnName string) error
func (*ZeroXsacPostgresProcessor) IndexExists ¶ added in v1.11.0
func (*ZeroXsacPostgresProcessor) TableExists ¶ added in v1.11.0
func (processor *ZeroXsacPostgresProcessor) TableExists(tableSchema string, tableName string) (int, error)
type ZeroXsacProcessor ¶ added in v1.11.0
type ZeroXsacProcessor 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, colnumName string) error DropIndex(tableSchema string, tableName string, colnumName 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 DMLY0SPart(tableSchema string, tableName string) error DMLM0SPart(tableSchema string, tableName string) error DMLD0SPart(tableSchema string, tableName string) error DropPartitionTable(tableSchema string, tableName string) error }
Click to show internal directories.
Click to hide internal directories.