Documentation
¶
Index ¶
- func GeneratePutativelyUniqueColumnID(node sqlparser.TableName, colName string) string
- type BackendMessages
- type BasicPrimitiveContext
- type DBTable
- type ExecutorOutput
- type Heirarchy
- type HeirarchyIdentifiers
- func NewHeirarchyIdentifiers(prov, svc, rsc, method string) HeirarchyIdentifiers
- func ObtainSubqueryHeirarchyIdentifiers(subQuery SubqueryDTO) HeirarchyIdentifiers
- func ResolveMethodTerminalHeirarchyIdentifiers(node sqlparser.TableName) HeirarchyIdentifiers
- func ResolveResourceTerminalHeirarchyIdentifiers(node sqlparser.TableName) HeirarchyIdentifiers
- type IRawResultStream
- type KeyVal
- type OutputContext
- type PrepStmt
- type PrepareResultSetDTO
- func NewPrepareResultSetDTO(body map[string]interface{}, rowMap map[string]map[string]interface{}, ...) PrepareResultSetDTO
- func NewPrepareResultSetPlusRawAndTypesDTO(body map[string]interface{}, rowMap map[string]map[string]interface{}, ...) PrepareResultSetDTO
- func NewPrepareResultSetPlusRawDTO(body map[string]interface{}, rowMap map[string]map[string]interface{}, ...) PrepareResultSetDTO
- type RawMap
- type RawResult
- type RelationDTO
- type RowsDTO
- type SimpleRawResultStream
- type SubqueryDTO
- type TableParameterCollection
- type TxnControlCounters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BackendMessages ¶
func NewBackendMessages ¶ added in v0.5.375
func NewBackendMessages(msgs []string) BackendMessages
type BasicPrimitiveContext ¶
type DBTable ¶
type DBTable interface {
GetBaseName() string
GetDiscoveryID() int
GetHeirarchyIdentifiers() HeirarchyIdentifiers
IsAnalytics() bool
GetName() string
GetNameSpace() string
GetNameStump() string
WithNameSpace(string) DBTable
}
func NewDBTable ¶
func NewDBTableAnalytics ¶
func NewDBTableAnalytics(name string, discoveryID int, hIDs HeirarchyIdentifiers) DBTable
type ExecutorOutput ¶
type ExecutorOutput interface {
GetSQLResult() sqldata.ISQLResultStream
GetRawResult() IRawResultStream
GetOutputBody() map[string]interface{}
GetStream() streaming.MapStream
SetStream(s streaming.MapStream)
ResultToMap() (IRawResultStream, error)
GetError() error
SetSQLResultFn(f func() sqldata.ISQLResultStream)
SetRawResultFn(f func() IRawResultStream)
SetOutputBodyFn(f func() map[string]interface{})
GetMessages() []string
AppendMessages(m []string)
GetUndoLog() (binlog.LogEntry, bool)
GetRedoLog() (binlog.LogEntry, bool)
SetUndoLog(binlog.LogEntry)
SetRedoLog(binlog.LogEntry)
WithUndoLog(binlog.LogEntry) ExecutorOutput
WithRedoLog(binlog.LogEntry) ExecutorOutput
}
func NewEmptyExecutorOutput ¶ added in v0.5.375
func NewEmptyExecutorOutput() ExecutorOutput
func NewErroneousExecutorOutput ¶
func NewErroneousExecutorOutput(err error) ExecutorOutput
func NewExecutorOutput ¶
func NewExecutorOutput( result sqldata.ISQLResultStream, body map[string]interface{}, rawResult map[int]map[int]interface{}, msg BackendMessages, err error, ) ExecutorOutput
func NewNopEmptyExecutorOutput ¶ added in v0.5.375
func NewNopEmptyExecutorOutput(messages []string) ExecutorOutput
type Heirarchy ¶
type Heirarchy interface {
GetServiceHdl() anysdk.Service
GetResource() anysdk.Resource
GetMethodSet() anysdk.MethodSet
GetMethod() anysdk.StandardOperationStore
SetServiceHdl(anysdk.Service)
SetResource(anysdk.Resource)
SetMethodSet(anysdk.MethodSet)
SetMethod(anysdk.StandardOperationStore)
SetMethodStr(string)
}
func NewHeirarchy ¶
func NewHeirarchy(hIDs HeirarchyIdentifiers) Heirarchy
type HeirarchyIdentifiers ¶
type HeirarchyIdentifiers interface {
GetMethodStr() string
GetProviderStr() string
GetServiceStr() string
GetResourceStr() string
GetResponseSchemaStr() string
GetSQLDataSourceTableName() string
GetStackQLTableName() string
GetTableName() string
GetSubquery() (SubqueryDTO, bool)
GetView() (RelationDTO, bool)
GetSubAST() sqlparser.Statement
ContainsNativeDBMSTable() bool
SetContainsNativeDBMSTable(bool)
SetSubAST(sqlparser.Statement)
SetMethodStr(string)
WithView(RelationDTO) HeirarchyIdentifiers
WithProviderStr(string) HeirarchyIdentifiers
WithResponseSchemaStr(rss string) HeirarchyIdentifiers
IsPgInternalObject() bool
IsPhysicalTable() bool
SetIsPhysicalTable(isPhysical bool)
SetIsMaterializedView(isMaterialized bool)
IsMaterializedView() bool
// contains filtered or unexported methods
}
func NewHeirarchyIdentifiers ¶
func NewHeirarchyIdentifiers(prov, svc, rsc, method string) HeirarchyIdentifiers
func ObtainSubqueryHeirarchyIdentifiers ¶ added in v0.3.293
func ObtainSubqueryHeirarchyIdentifiers(subQuery SubqueryDTO) HeirarchyIdentifiers
func ResolveMethodTerminalHeirarchyIdentifiers ¶
func ResolveMethodTerminalHeirarchyIdentifiers(node sqlparser.TableName) HeirarchyIdentifiers
func ResolveResourceTerminalHeirarchyIdentifiers ¶
func ResolveResourceTerminalHeirarchyIdentifiers(node sqlparser.TableName) HeirarchyIdentifiers
type IRawResultStream ¶
type OutputContext ¶
type OutputContext struct {
RuntimeContext dto.RuntimeCtx
Result sqldata.ISQLResultStream
}
type PrepStmt ¶ added in v0.5.451
func NewPrepStmt ¶ added in v0.5.451
type PrepareResultSetDTO ¶
type PrepareResultSetDTO struct {
OutputBody map[string]interface{}
Msg BackendMessages
RawRows map[int]map[int]interface{}
RowMap map[string]map[string]interface{}
ColumnOrder []string
ColumnOIDs []oid.Oid
RowSort func(map[string]map[string]interface{}) []string
Err error
TypCfg typing.Config
}
func NewPrepareResultSetDTO ¶
func NewPrepareResultSetPlusRawAndTypesDTO ¶
func NewPrepareResultSetPlusRawAndTypesDTO( body map[string]interface{}, rowMap map[string]map[string]interface{}, columnOrder []string, columnOIDs []oid.Oid, rowSort func(map[string]map[string]interface{}) []string, err error, msg BackendMessages, rawRows map[int]map[int]interface{}, typCfg typing.Config, ) PrepareResultSetDTO
type RelationDTO ¶ added in v0.5.451
type RelationDTO interface {
GetRawQuery() string
GetName() string
IsMaterialized() bool
IsTable() bool
GetNamespace() string
GetColumns() []typing.RelationalColumn
SetColumns(columns []typing.RelationalColumn)
MatchOnParams(map[string]any) (RelationDTO, bool)
WithRequiredParams(map[string]any) RelationDTO
Next() (RelationDTO, bool)
WithNext(RelationDTO) RelationDTO
}
func NewMaterializedViewDTO ¶ added in v0.5.451
func NewMaterializedViewDTO(viewName, rawViewQuery, namespace string) RelationDTO
func NewPhysicalTableDTO ¶ added in v0.5.451
func NewPhysicalTableDTO(viewName, rawViewQuery, namespace string) RelationDTO
func NewViewDTO ¶
func NewViewDTO(viewName, rawViewQuery string) RelationDTO
type SimpleRawResultStream ¶
type SimpleRawResultStream struct {
// contains filtered or unexported fields
}
func (*SimpleRawResultStream) IsNil ¶
func (sr *SimpleRawResultStream) IsNil() bool
func (*SimpleRawResultStream) Read ¶
func (sr *SimpleRawResultStream) Read() (RawResult, error)
type SubqueryDTO ¶ added in v0.3.293
type SubqueryDTO interface {
GetSubquery() *sqlparser.Subquery
GetAlias() sqlparser.TableIdent
GetAliasedTableExpr() *sqlparser.AliasedTableExpr
}
func NewSubqueryDTO ¶ added in v0.3.293
func NewSubqueryDTO(aliasedTableExpr *sqlparser.AliasedTableExpr, subQuery *sqlparser.Subquery) SubqueryDTO
type TableParameterCollection ¶
type TableParameterCollection interface {
GetOptionalParams() suffix.ParameterSuffixMap
GetRemainingRequiredParams() suffix.ParameterSuffixMap
GetRequiredParams() suffix.ParameterSuffixMap
}
func NewTableParameterCollection ¶
func NewTableParameterCollection( requiredParams, optionalParams, remainingRequiredParameters suffix.ParameterSuffixMap, ) TableParameterCollection
type TxnControlCounters ¶
type TxnControlCounters interface {
GetGenID() int
GetInsertID() int
GetSessionID() int
GetTxnID() int
SetTableName(string)
SetTxnID(int)
Clone() TxnControlCounters
Copy(TxnControlCounters)
CloneAndIncrementInsertID() TxnControlCounters
}
func NewTxnControlCounters ¶
func NewTxnControlCounters(txnCtrMgr txncounter.Manager) (TxnControlCounters, error)
func NewTxnControlCountersFromVals ¶
func NewTxnControlCountersFromVals(genID, ssnID, txnID, insertID int) TxnControlCounters
Source Files
¶
Click to show internal directories.
Click to hide internal directories.