sqlrewrite

package
v0.5.748 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRewrittenSelectDML added in v0.5.396

func GenerateRewrittenSelectDML(input SQLRewriteInput) (drm.PreparedStatementCtx, error)

Types

type SQLRewriteInput

type SQLRewriteInput interface {
	GetNamespaceCollection() tablenamespace.Collection
	GetDRMConfig() drm.Config
	GetColumnDescriptors() []typing.RelationalColumn
	GetHoistedOnClauseTables() []sqlparser.SQLNode
	GetBaseControlCounters() internaldto.TxnControlCounters
	GetFromString() string
	GetIndirectContexts() []drm.PreparedStatementCtx
	GetPrepStmtOffset() int
	GetSelectQualifier() string
	GetSelectSuffix() string
	GetRewrittenWhere() string
	GetSecondaryCtrlCounters() []internaldto.TxnControlCounters
	GetTables() taxonomy.TblMap
	GetTableInsertionContainers() []tableinsertioncontainer.TableInsertionContainer
	WithIndirectContexts(indirectContexts []drm.PreparedStatementCtx) SQLRewriteInput
	WithPrepStmtOffset(offset int) SQLRewriteInput
	GetParameters() map[string]interface{}
	WithSelectQualifier(string) SQLRewriteInput
	GetAliasToControlCounterMap() map[string][]internaldto.TxnControlCounters
}

func NewStandardSQLRewriteInput

func NewStandardSQLRewriteInput(
	dc drm.Config,
	columnDescriptors []typing.RelationalColumn,
	baseControlCounters internaldto.TxnControlCounters,
	selectSuffix string,
	rewrittenWhere string,
	secondaryCtrlCounters []internaldto.TxnControlCounters,
	tables taxonomy.TblMap,
	fromString string,
	tableInsertionContainers []tableinsertioncontainer.TableInsertionContainer,
	namespaceCollection tablenamespace.Collection,
	hoistedOnClauseTables []sqlparser.SQLNode,
	parameters map[string]interface{},
) SQLRewriteInput

Jump to

Keyboard shortcuts

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