Skip to main content

%SYSTEM.Context.SQL

class %SYSTEM.Context.SQL extends %Library.SystemBase

Property Inventory

Method Inventory

Properties

property CQLockTimeout as %Integer;
Cached Query Lock Timeout
property DisableStatCollection as %Boolean [ InitialExpression = 0 ];
This can be set to true to disable time based collection of SQL stats
property FTKeys as %String [ MultiDimensional ];
Feature Tracker Keys for features tracked under the SQL/IntegratedML/xDBC umbrella
property MLConfiguration as %String (MAXLEN = 256);
This is the default %SYS.ML.Configuration for this process
property PredictModelOref as %RawString [ MultiDimensional ];
PredictModelOref holds an oref for the ML Model for each PREDICT function in the statement
property PredictTrainedModelOref as %RawString [ MultiDimensional ];
PredictTrainedModelOref holds an oref for the ML TrainedModel for each PREDICT function in the statement
property RTC as %RawString [ MultiDimensional ];
RTC is an array of trigger names used for statement level recursive trigger call checking.
RTC = recursive trigger check
property ShardAIRange as %RawString [ MultiDimensional ];
ShardAIRange is an array of extent names used for allocating auto_increment field values for Sharded=2 tables. data is $lb(beginrange,endrange,offset)
property ShardExecIUDArgs as %String [ MultiDimensional ];
ShardExecIUDArgs is used to hold the arguments for the %BigData.ShardedSQL.%ExecIUD method when the SQL Statement has more than 379 parameters.
property ShardIDRange as %RawString [ MultiDimensional ];
ShardIDRange is an array of extent names used for allocating rowid values for Sharded=2 tables. data is $lb(beginrange,endrange,offset)
property ShardMasterExtRef as %RawString [ MultiDimensional ];
ShardMasterExtRef is used to hold the extended reference for the constraint lock syntax to use for this namespace. Since subscript is the namespace name.
property ShardNumber as %RawString [ MultiDimensional ];
ShardNumber is used to hold the shard number of the current namespace if this is a sharded namespace Subscript is the namespace name.
property Stats as %String [ MultiDimensional ];
property TSQLAnsiNulls as %Integer;
property TSQLAnsiPadding as %Integer;
property TSQLAnsiWarnings as %Integer;
property TSQLCaseInsCompare as %Integer;
property TSQLNoCount as %Integer;
property TSQLQuotedIdentifier as %Integer;
property contextStack as %String) [ MultiDimensional ];
property externalGateways as %SQL.External.Gateway [ MultiDimensional ];

Methods

method ClearStats() as %Status
Remove any SQL stats we have aggregated so far
method DisableStatCollectionSet(val As %Boolean) as %Status
method SaveStats() as %Status
Store any SQL stats we have collected so far. Normally done automatically at regular time intervals but can be forced by calling this method.
method getCachedGateway(serverName As %String) as %RawString
Return a cached gateway connection, null if nothing is cached
method getGateway(gatewayName As %String, language As %String) as %RawString
language is only used if the gateway is not already defined
method popState() as %Status
popState will restore the state of the Context.SQL singleton from the top of the contextStack and remove the top stack element. This method is not normally invoked directly. It is normally called by a utility class method to pop a context.
method pushState() as %Status
pushState will push the current state of the Context.SQL singleton onto the contextStack. This method is not normally invoked directly. It is normally called by a utility class method to push a context.

Inherited Members

Inherited Methods

FeedbackOpens in a new tab