22 namespace Deveel.Data.Sql.Variables {
33 return DefineVariable(scope, variableName, variableType,
false);
37 return scope.DefineVariable(
new VariableInfo(variableName, variableType, constant));
49 var variable = scope.GetVariable(variableName);
51 variable = scope.DefineVariable(variableName, value.
Type);
53 variable.SetValue(value);
66 var variable = transaction.GetVariable(name);
70 return variable.Value.AsBoolean();
74 var variable = transaction.GetVariable(name);
78 return variable.Value;
SqlType Type
Gets the SqlType that defines the object properties
Variable DefineVariable(VariableInfo variableInfo)
static bool DropVariable(this IVariableScope scope, string variableName)
static Variable GetVariable(this IVariableScope scope, string variableName)
static DataObject String(string s)
static DataObject Boolean(SqlBoolean value)
static Variable DefineVariable(this IVariableScope scope, string variableName, SqlType variableType)
static bool HasVariable(this IVariableScope scope, string variableName)
static bool GetBooleanVariable(this IVariableScope transaction, string name)
bool VariableExists(string variableName)
static Variable DefineVariable(this IVariableScope scope, VariableInfo variableInfo)
static string GetStringVariable(this IVariableScope transaction, string name)
static void SetStringVariable(this IVariableScope transaction, string name, string value)
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
static Variable DefineVariable(this IVariableScope scope, string variableName, SqlType variableType, bool constant)
Defines the properties of a specific SQL Type and handles the values compatible.
IVariableManager VariableManager
static Variable SetVariable(this IVariableScope scope, string variableName, DataObject value)
bool DropVariable(string variableName)
Variable GetVariable(string variableName)
static void SetBooleanVariable(this IVariableScope transaction, string name, bool value)