Documentation ¶
Index ¶
- func IsInTargetExpression(targetExpression, schema, table *string) bool
- func SetUpsertMethod(upserter Upserter)
- type Action
- type AlterAttribute
- type AlterColumn
- type AlterFunction
- type AlterIndex
- type AlterSchema
- type AlterTable
- type AlterType
- type Column
- type Context
- type CreateAttribute
- type CreateColumn
- type CreateEnum
- type CreateExtension
- type CreateFunction
- type CreateIndex
- type CreateSchema
- type CreateTable
- type CreateTrigger
- type CreateType
- type DeleteRow
- type DropAttribute
- type DropColumn
- type DropExtension
- type DropFunction
- type DropIndex
- type DropSchema
- type DropTable
- type DropTrigger
- type DropType
- type FallbackUpserter
- type InsertRow
- type OnConflictUpserter
- type Row
- type RowData
- type Rows
- type UpdateRow
- type Upserter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInTargetExpression ¶
func SetUpsertMethod ¶
func SetUpsertMethod(upserter Upserter)
Types ¶
type Action ¶
type Action interface { // Execute the given action Execute(c *Context) error // Returns whether current action should be executed // for a targetExpression Filter(targetExpression string) bool // Returns whether the action needs to be batched separately to ensure // consistency. Some actions cannot run inside transactions, thus must have // a separate batch to ensure apply order and consistency. NeedsSeparatedBatch() bool }
type AlterAttribute ¶
func (*AlterAttribute) Execute ¶
func (a *AlterAttribute) Execute(c *Context) error
func (*AlterAttribute) Filter ¶
func (a *AlterAttribute) Filter(targetExpression string) bool
func (*AlterAttribute) NeedsSeparatedBatch ¶
func (a *AlterAttribute) NeedsSeparatedBatch() bool
type AlterColumn ¶
func (*AlterColumn) Execute ¶
func (a *AlterColumn) Execute(c *Context) error
func (*AlterColumn) Filter ¶
func (a *AlterColumn) Filter(targetExpression string) bool
func (*AlterColumn) NeedsSeparatedBatch ¶
func (a *AlterColumn) NeedsSeparatedBatch() bool
type AlterFunction ¶
type AlterFunction struct { SchemaName string Arguments string SourceName string TargetName string }
func (*AlterFunction) Execute ¶
func (a *AlterFunction) Execute(c *Context) error
func (*AlterFunction) Filter ¶
func (a *AlterFunction) Filter(targetExpression string) bool
func (*AlterFunction) NeedsSeparatedBatch ¶
func (a *AlterFunction) NeedsSeparatedBatch() bool
type AlterIndex ¶
func (*AlterIndex) Execute ¶
func (a *AlterIndex) Execute(c *Context) error
func (*AlterIndex) Filter ¶
func (a *AlterIndex) Filter(targetExpression string) bool
func (*AlterIndex) NeedsSeparatedBatch ¶
func (a *AlterIndex) NeedsSeparatedBatch() bool
type AlterSchema ¶
func (*AlterSchema) Execute ¶
func (a *AlterSchema) Execute(c *Context) error
func (*AlterSchema) Filter ¶
func (a *AlterSchema) Filter(targetExpression string) bool
func (*AlterSchema) NeedsSeparatedBatch ¶
func (a *AlterSchema) NeedsSeparatedBatch() bool
type AlterTable ¶
func (*AlterTable) Execute ¶
func (a *AlterTable) Execute(c *Context) error
func (*AlterTable) Filter ¶
func (a *AlterTable) Filter(targetExpression string) bool
func (*AlterTable) NeedsSeparatedBatch ¶
func (a *AlterTable) NeedsSeparatedBatch() bool
type AlterType ¶
func (*AlterType) NeedsSeparatedBatch ¶
type Column ¶
func (*Column) GetTypeSchemaStr ¶
type CreateAttribute ¶
func (*CreateAttribute) Execute ¶
func (a *CreateAttribute) Execute(c *Context) error
func (*CreateAttribute) Filter ¶
func (a *CreateAttribute) Filter(targetExpression string) bool
func (*CreateAttribute) NeedsSeparatedBatch ¶
func (a *CreateAttribute) NeedsSeparatedBatch() bool
type CreateColumn ¶
func (*CreateColumn) Execute ¶
func (a *CreateColumn) Execute(c *Context) error
func (*CreateColumn) Filter ¶
func (a *CreateColumn) Filter(targetExpression string) bool
func (*CreateColumn) NeedsSeparatedBatch ¶
func (a *CreateColumn) NeedsSeparatedBatch() bool
type CreateEnum ¶
func (*CreateEnum) Execute ¶
func (a *CreateEnum) Execute(c *Context) error
func (*CreateEnum) Filter ¶
func (a *CreateEnum) Filter(targetExpression string) bool
func (*CreateEnum) NeedsSeparatedBatch ¶
func (a *CreateEnum) NeedsSeparatedBatch() bool
type CreateExtension ¶
func (*CreateExtension) Execute ¶
func (a *CreateExtension) Execute(c *Context) error
func (*CreateExtension) Filter ¶
func (a *CreateExtension) Filter(targetExpression string) bool
func (*CreateExtension) NeedsSeparatedBatch ¶
func (a *CreateExtension) NeedsSeparatedBatch() bool
type CreateFunction ¶
func (*CreateFunction) Execute ¶
func (a *CreateFunction) Execute(c *Context) error
func (*CreateFunction) Filter ¶
func (a *CreateFunction) Filter(targetExpression string) bool
func (*CreateFunction) NeedsSeparatedBatch ¶
func (a *CreateFunction) NeedsSeparatedBatch() bool
type CreateIndex ¶
func (*CreateIndex) Execute ¶
func (a *CreateIndex) Execute(c *Context) error
func (*CreateIndex) Filter ¶
func (a *CreateIndex) Filter(targetExpression string) bool
func (*CreateIndex) NeedsSeparatedBatch ¶
func (a *CreateIndex) NeedsSeparatedBatch() bool
type CreateSchema ¶
type CreateSchema struct {
SchemaName string
}
func (*CreateSchema) Execute ¶
func (a *CreateSchema) Execute(c *Context) error
func (*CreateSchema) Filter ¶
func (a *CreateSchema) Filter(targetExpression string) bool
func (*CreateSchema) NeedsSeparatedBatch ¶
func (a *CreateSchema) NeedsSeparatedBatch() bool
type CreateTable ¶
func (*CreateTable) Execute ¶
func (a *CreateTable) Execute(c *Context) error
func (*CreateTable) Filter ¶
func (a *CreateTable) Filter(targetExpression string) bool
func (*CreateTable) NeedsSeparatedBatch ¶
func (a *CreateTable) NeedsSeparatedBatch() bool
type CreateTrigger ¶
type CreateTrigger struct { SchemaName string TableName string TriggerName string // BEFORE | AFTER | INSTEAD OF ExecutionOrder string // INSERT | UPDATE | DELETE Events []string ProcedureName string }
func (*CreateTrigger) Execute ¶
func (a *CreateTrigger) Execute(c *Context) error
func (*CreateTrigger) Filter ¶
func (a *CreateTrigger) Filter(targetExpression string) bool
func (*CreateTrigger) NeedsSeparatedBatch ¶
func (a *CreateTrigger) NeedsSeparatedBatch() bool
type CreateType ¶
func (*CreateType) Execute ¶
func (a *CreateType) Execute(c *Context) error
func (*CreateType) Filter ¶
func (a *CreateType) Filter(targetExpression string) bool
func (*CreateType) NeedsSeparatedBatch ¶
func (a *CreateType) NeedsSeparatedBatch() bool
type DeleteRow ¶
func (*DeleteRow) NeedsSeparatedBatch ¶
type DropAttribute ¶
func (*DropAttribute) Execute ¶
func (a *DropAttribute) Execute(c *Context) error
func (*DropAttribute) Filter ¶
func (a *DropAttribute) Filter(targetExpression string) bool
func (*DropAttribute) NeedsSeparatedBatch ¶
func (a *DropAttribute) NeedsSeparatedBatch() bool
type DropColumn ¶
func (*DropColumn) Execute ¶
func (a *DropColumn) Execute(c *Context) error
func (*DropColumn) Filter ¶
func (a *DropColumn) Filter(targetExpression string) bool
func (*DropColumn) NeedsSeparatedBatch ¶
func (a *DropColumn) NeedsSeparatedBatch() bool
type DropExtension ¶
type DropExtension struct {
ExtensionName string
}
func (*DropExtension) Execute ¶
func (a *DropExtension) Execute(c *Context) error
func (*DropExtension) Filter ¶
func (a *DropExtension) Filter(targetExpression string) bool
func (*DropExtension) NeedsSeparatedBatch ¶
func (a *DropExtension) NeedsSeparatedBatch() bool
type DropFunction ¶
func (*DropFunction) Execute ¶
func (a *DropFunction) Execute(c *Context) error
func (*DropFunction) Filter ¶
func (a *DropFunction) Filter(targetExpression string) bool
func (*DropFunction) NeedsSeparatedBatch ¶
func (a *DropFunction) NeedsSeparatedBatch() bool
type DropIndex ¶
func (*DropIndex) NeedsSeparatedBatch ¶
type DropSchema ¶
type DropSchema struct {
SchemaName string
}
func (*DropSchema) Execute ¶
func (a *DropSchema) Execute(c *Context) error
func (*DropSchema) Filter ¶
func (a *DropSchema) Filter(targetExpression string) bool
func (*DropSchema) NeedsSeparatedBatch ¶
func (a *DropSchema) NeedsSeparatedBatch() bool
type DropTable ¶
func (*DropTable) NeedsSeparatedBatch ¶
type DropTrigger ¶
func (*DropTrigger) Execute ¶
func (a *DropTrigger) Execute(c *Context) error
func (*DropTrigger) Filter ¶
func (a *DropTrigger) Filter(targetExpression string) bool
func (*DropTrigger) NeedsSeparatedBatch ¶
func (a *DropTrigger) NeedsSeparatedBatch() bool
type DropType ¶
func (*DropType) NeedsSeparatedBatch ¶
type FallbackUpserter ¶
type FallbackUpserter struct{}
type InsertRow ¶
type InsertRow struct { SchemaName string TableName string PrimaryKeyName string Rows Rows BulkInsert bool }
func (*InsertRow) NeedsSeparatedBatch ¶
type OnConflictUpserter ¶
type OnConflictUpserter struct{}
type RowData ¶
type RowData struct { EscapedCols []string EscapedRows []string Values []interface{} PrimaryKeyRow Row SchemaName string TableName string Rows Rows }
func (RowData) InsertOnConstraintUpdateQuery ¶
func (RowData) InsertValuesQuery ¶
func (RowData) ReleaseSavePointQuery ¶
func (RowData) RollbackSavePointQuery ¶
func (RowData) SavePointQuery ¶
type UpdateRow ¶
func (*UpdateRow) NeedsSeparatedBatch ¶
Source Files ¶
- action.go
- alterattribute.go
- altercolumn.go
- alterfunction.go
- alterindex.go
- alterschema.go
- altertable.go
- altertype.go
- column.go
- context.go
- createattribute.go
- createcolumn.go
- createenum.go
- createextension.go
- createfunction.go
- createindex.go
- createschema.go
- createtable.go
- createtrigger.go
- createtype.go
- deleterow.go
- dropattribute.go
- dropcolumn.go
- dropextension.go
- dropfunction.go
- dropindex.go
- dropschema.go
- droptable.go
- droptrigger.go
- droptype.go
- insertrow.go
- row.go
- targetexpression.go
- updaterow.go
Click to show internal directories.
Click to hide internal directories.