autosqlconf

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

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 (processor *ZeroXsacMysqlProcessor) ColumnDiff(tableSchema string, tableName string, columName string, isNullable string, columnType string, columnDefault string) (int, error)

func (*ZeroXsacMysqlProcessor) ColumnExists added in v1.11.0

func (processor *ZeroXsacMysqlProcessor) ColumnExists(tableSchema string, tableName string, columName string) (int, error)

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) DMLColumn added in v1.11.0

func (processor *ZeroXsacMysqlProcessor) DMLColumn(tableSchema string, tableName string, columName string, isNullable string, columnType string, columnDefault string) error

func (*ZeroXsacMysqlProcessor) DMLConstraint added in v1.11.0

func (processor *ZeroXsacMysqlProcessor) DMLConstraint(tableSchema string, tableName string, indexName string, defineIndexSQL string) error

func (*ZeroXsacMysqlProcessor) DMLCustomPart added in v1.12.2

func (processor *ZeroXsacMysqlProcessor) DMLCustomPart(string, string, string) error

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 (processor *ZeroXsacMysqlProcessor) DMLForeign(tableSchema string, tableName string, columnName string, relTableName string, relColumnName string) error

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 (processor *ZeroXsacMysqlProcessor) DMLTrigger(tableSchema string, tableName string, triggerTiming string, triggerEvent string, triggerName string, triggerAction string) error

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) DbName added in v1.11.69

func (processor *ZeroXsacMysqlProcessor) DbName() string

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 (processor *ZeroXsacMysqlProcessor) IndexExists(tableSchema string, tableName string, indexName string) (int, error)

func (*ZeroXsacMysqlProcessor) TableExists added in v1.11.0

func (processor *ZeroXsacMysqlProcessor) TableExists(tableSchema string, tableName string) (int, error)

func (*ZeroXsacMysqlProcessor) TriggerExists added in v1.11.0

func (processor *ZeroXsacMysqlProcessor) TriggerExists(tableSchema string, tableName string, triggerTiming string, triggerEvent string, triggerName string, triggerAction string) (int, error)

type ZeroXsacPostgresProcessor added in v1.11.0

type ZeroXsacPostgresProcessor struct {
	processors.ZeroCoreProcessor
}

func (*ZeroXsacPostgresProcessor) ColumnDiff added in v1.11.0

func (processor *ZeroXsacPostgresProcessor) ColumnDiff(
	tableSchema string,
	tableName string,
	columName string,
	isNullable string,
	columnType string,
	columnDefault string) (int, error)

func (*ZeroXsacPostgresProcessor) ColumnExists added in v1.11.0

func (processor *ZeroXsacPostgresProcessor) ColumnExists(tableSchema string, tableName string, columName string) (int, error)

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) DMLColumn added in v1.11.0

func (processor *ZeroXsacPostgresProcessor) DMLColumn(
	tableSchema string,
	tableName string,
	columName string,
	isNullable string,
	columnType string,
	columnDefault string) error

func (*ZeroXsacPostgresProcessor) DMLConstraint added in v1.11.0

func (processor *ZeroXsacPostgresProcessor) DMLConstraint(
	tableSchema string,
	tableName string,
	indexName string,
	defineIndexSQL string) error

func (*ZeroXsacPostgresProcessor) DMLCustomPart added in v1.12.2

func (processor *ZeroXsacPostgresProcessor) DMLCustomPart(tableSchema string, tableName string, partTriggerName string) error

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 (processor *ZeroXsacPostgresProcessor) DMLForeign(
	tableSchema string,
	tableName string,
	columnName string,
	relTableName string,
	relColumnName string) error

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 (processor *ZeroXsacPostgresProcessor) DMLTrigger(
	tableSchema string,
	tableName string,
	triggerTiming string,
	triggerEvent string,
	triggerName string,
	triggerAction string) error

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) DbName added in v1.11.69

func (processor *ZeroXsacPostgresProcessor) DbName() string

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 (processor *ZeroXsacPostgresProcessor) IndexExists(tableSchema string, tableName string, indexName string) (int, error)

func (*ZeroXsacPostgresProcessor) TableExists added in v1.11.0

func (processor *ZeroXsacPostgresProcessor) TableExists(tableSchema string, tableName string) (int, error)

func (*ZeroXsacPostgresProcessor) TriggerExists added in v1.11.0

func (processor *ZeroXsacPostgresProcessor) TriggerExists(
	tableSchema string,
	tableName string,
	triggerTiming string,
	triggerEvent string,
	triggerName string,
	triggerAction string) (int, error)

type ZeroXsacProcessor added in v1.11.0

type ZeroXsacProcessor interface {
	Build(transaction *sql.Tx)

	DbName() string

	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
	DMLCustomPart(string, string, string) error
	DropPartitionTable(tableSchema string, tableName string) error
}

Jump to

Keyboard shortcuts

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