autosqlconf

package
v1.10.6 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

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

func (*ZeroDbAutoMysqlProcessor) ColumnExists

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

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) DMLColumn

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

func (*ZeroDbAutoMysqlProcessor) DMLConstraint

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

func (*ZeroDbAutoMysqlProcessor) DMLForeign

func (processor *ZeroDbAutoMysqlProcessor) DMLForeign(tableSchema string, tableName string, columnName string, relTableName string, relColumnName string) error

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

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

func (*ZeroDbAutoMysqlProcessor) TableExists

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

func (*ZeroDbAutoMysqlProcessor) TriggerExists

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

type ZeroDbAutoPostgresProcessor

type ZeroDbAutoPostgresProcessor struct {
	x0meet1.ZeroCoreProcessor
}

func (*ZeroDbAutoPostgresProcessor) ColumnDiff

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

func (*ZeroDbAutoPostgresProcessor) ColumnExists

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

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) DMLColumn

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

func (*ZeroDbAutoPostgresProcessor) DMLConstraint

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

func (*ZeroDbAutoPostgresProcessor) DMLForeign

func (processor *ZeroDbAutoPostgresProcessor) DMLForeign(
	tableSchema string,
	tableName string,
	columnName string,
	relTableName string,
	relColumnName string) error

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

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

func (*ZeroDbAutoPostgresProcessor) TableExists

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

func (*ZeroDbAutoPostgresProcessor) TriggerExists

func (processor *ZeroDbAutoPostgresProcessor) TriggerExists(
	tableSchema string,
	tableName string,
	triggerTiming string,
	triggerEvent string,
	triggerName string,
	triggerAction 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
}

Jump to

Keyboard shortcuts

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