18 using System.Collections.Generic;
22 namespace Deveel.Data.Sql.Variables {
29 variables =
new Dictionary<string, Variable>();
36 GC.SuppressFinalize(
this);
41 if (variables != null)
49 if (variableInfo == null)
50 throw new ArgumentNullException(
"variableInfo");
53 throw new ArgumentException();
55 var variable =
new Variable(variableInfo);
61 return variables.ContainsKey(name);
66 if (!variables.TryGetValue(name, out variable))
73 return variables.Remove(name);
78 if (!variables.TryGetValue(variableName.
Name, out variable))
81 return variable.
Value;
86 if (!variables.TryGetValue(variableName.
Name, out variable))
DataObject Resolve(ObjectName variable)
Returns the value of a given variable.
Describes the name of an object within a database.
VariableManager(IVariableScope scope)
Variable GetVariable(string name)
Variable DefineVariable(VariableInfo variableInfo)
bool VariableExists(string name)
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
bool DropVariable(string name)
Defines the properties of a specific SQL Type and handles the values compatible.
Dictionary< string, Variable > variables
An interface to resolve a variable name to a constant object.
string Name
Gets the name of the object being referenced.
SqlType ReturnType(ObjectName variable)
Returns the SqlType of object the given variable is.
void Dispose(bool disposing)