Help us shape the future of Go! Take the 2026 Go Developer Survey

handler

package
v0.9.339 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRegistry

func GetRegistry(runtimeCtx dto.RuntimeCtx) (anysdk.RegistryAPI, error)

Types

type HandlerContext

type HandlerContext interface {
	Clone() HandlerContext
	//
	GetStacqklSemver() string
	GetASTFormatter() sqlparser.NodeFormatter
	GetAuthContext(providerName string) (*dto.AuthCtx, error)
	GetDBMSInternalRouter() dbmsinternal.Router
	GetProvider(providerName string) (provider.IProvider, error)
	DeleteProvider(providerName string) error
	GetSupportedProviders(extended bool) (map[string]map[string]interface{}, error)
	LogHTTPResponseMap(target interface{})
	//
	GetRawQuery() string
	GetQuery() string
	GetRuntimeContext() dto.RuntimeCtx
	GetProviders() map[string]provider.IProvider
	GetControlAttributes() sqlcontrol.ControlAttributes
	GetCurrentProvider() string
	GetAuthContexts() dto.AuthContexts
	GetRegistry() anysdk.RegistryAPI
	GetErrorPresentation() string
	GetOutfile() io.Writer
	GetOutErrFile() io.Writer
	GetLRUCache() *lrucache.LRUCache
	GetSQLDataSource(name string) (sql_datasource.SQLDataSource, bool)
	GetSQLEngine() sqlengine.SQLEngine
	GetSQLSystem() sql_system.SQLSystem
	GetPersistenceSystem() sdk_persistence.PersistenceSystem
	GetGarbageCollector() garbagecollector.GarbageCollector
	GetDrmConfig() drm.Config
	SetTxnCounterMgr(txncounter.Manager)
	GetTxnCounterMgr() txncounter.Manager
	GetTxnStore() kstore.KStore
	GetNamespaceCollection() tablenamespace.Collection
	GetFormatter() sqlparser.NodeFormatter
	GetPGInternalRouter() dbmsinternal.Router
	//
	SetCurrentProvider(string)
	SetQuery(string)
	SetRawQuery(string)
	//
	SetOutErrFile(io.Writer)
	//
	GetTxnCoordinatorCtx() txn_context.ITransactionCoordinatorContext

	GetTypingConfig() typing.Config
	GetIsolationLevel() constants.IsolationLevel
	UpdateIsolationLevel(isolationLevelStr string) error

	GetRollbackType() constants.RollbackType
	UpdateRollbackType(rollbackTypeStr string) error

	GetTSM() (tsm.TSM, bool)
	SetTSM(tsm.TSM)

	SetExportNamespace(string)
	GetExportNamespace() string

	GetDataFlowCfg() dto.DataFlowCfg

	//
	SetConfigAtPath(path string, rhs interface{}, scope string) error

	// for testing only
	SetDefaultHTTPClient(client *http.Client)
}

func NewHandlerCtx added in v0.8.141

func NewHandlerCtx(
	cmdString string,
	runtimeCtx dto.RuntimeCtx,
	lruCache *lrucache.LRUCache,
	inputBundle bundle.Bundle,
	stackqlSemver string,
) (HandlerContext, error)

Jump to

Keyboard shortcuts

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