Definition at line 28 of file SystemFunctions.cs.
static Deveel.Data.Routines.SystemFunctions.SystemFunctions |
( |
| ) |
|
|
inlinestaticprivate |
Definition at line 68 of file SystemFunctions.cs.
69 return value.
CastTo(destType);
DataObject CastTo(SqlType destType)
Converts this object to the given SqlType.
Definition at line 72 of file SystemFunctions.cs.
74 return Cast(value, destType);
static DataObject Cast(DataObject value, SqlType destType)
string ToString(Encoding encoding)
Defines the properties of a specific SQL Type and handles the values compatible.
new IQueryContext Context
static SqlType Parse(string s)
Parses a SQL formatted string that defines a data-type into a constructed SqlType object equivalent...
Definition at line 101 of file SystemFunctions.cs.
static DataObject Number(SqlNumber value)
static DataObject CurrentValue(IRequest query, DataObject tableName)
ISqlObject Value
Gets the underlined value that is handled.
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
Deveel.Data.Sql.Objects.SqlString SqlString
Definition at line 107 of file SystemFunctions.cs.
108 var tableNameString = tableName.
ToString();
109 var resolvedName = query.
Query.ResolveTableName(tableNameString);
110 return query.
Query.GetCurrentValue(resolvedName);
string ToString(Encoding encoding)
Definition at line 130 of file SystemFunctions.cs.
134 str = obj.
Value.ToString();
137 if (str == null || str.Equals(
"") || str.Equals(
"NO ACTION")) {
138 v = ImportedKey.NoAction;
139 }
else if (str.Equals(
"CASCADE")) {
140 v = ImportedKey.Cascade;
141 }
else if (str.Equals(
"SET NULL")) {
142 v = ImportedKey.SetNull;
143 }
else if (str.Equals(
"SET DEFAULT")) {
144 v = ImportedKey.SetDefault;
145 }
else if (str.Equals(
"RESTRICT")) {
146 v = ImportedKey.Restrict;
148 throw new InvalidOperationException(
"Unrecognised foreign key rule: " + str);
166 throw new InvalidOperationException(
"Unrecognised foreign key rule: " + code);
172 throw new InvalidOperationException(
"Unsupported type in function argument");
bool IsNull
Gets a value that indicates if this object is materialized as null.
static DataObject Integer(int value)
SqlType Type
Gets the SqlType that defines the object properties
A long string in the system.
ISqlObject Value
Gets the underlined value that is handled.
static DataObject String(string s)
ForeignKeyAction
Enumerates the foreign key referential trigger actions.
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
Definition at line 113 of file SystemFunctions.cs.
116 var evalContext =
new EvaluateContext(context.Request, context.VariableResolver, context.GroupResolver);
118 var condition = context.Arguments[0].EvaluateToConstant(evalContext);
121 result = context.Arguments[1].EvaluateToConstant(evalContext);
123 result = context.Arguments[2].EvaluateToConstant(evalContext);
127 return context.Result(result);
static readonly DataObject BooleanFalse
The representation of a BOOLEAN false as DataObject
static DataObject Null(SqlType type)
static readonly DataObject BooleanTrue
The representation of a BOOLEAN true as DataObject
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
Encapsulates the elements needed to evaluate an SqlExpression
Definition at line 35 of file SystemFunctions.cs.
36 return ob1 != null ? (ob2.
IsNull ? ob1 : (!ob1.
IsNull ? ob1.
Or(ob2) : ob2)) : ob2;
bool IsNull
Gets a value that indicates if this object is materialized as null.
DataObject Or(DataObject other)
Definition at line 85 of file SystemFunctions.cs.
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
DataObject CastTo(SqlType destType)
Converts this object to the given SqlType.
static BinaryType Binary(int maxSize)
Definition at line 44 of file SystemFunctions.cs.
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
DataObject CastTo(SqlType destType)
Converts this object to the given SqlType.
Definition at line 48 of file SystemFunctions.cs.
static DataObject ToDate(DataObject obj)
static DataObject String(string s)
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
Definition at line 52 of file SystemFunctions.cs.
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
DataObject CastTo(SqlType destType)
Converts this object to the given SqlType.
static DateType DateTime()
Definition at line 56 of file SystemFunctions.cs.
static DataObject String(string s)
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
static DataObject ToDateTime(DataObject obj)
Definition at line 77 of file SystemFunctions.cs.
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
DataObject CastTo(SqlType destType)
Converts this object to the given SqlType.
static NumericType Numeric()
Definition at line 81 of file SystemFunctions.cs.
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
DataObject CastTo(SqlType destType)
Converts this object to the given SqlType.
static StringType String()
Definition at line 60 of file SystemFunctions.cs.
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
DataObject CastTo(SqlType destType)
Converts this object to the given SqlType.
static DateType TimeStamp()
Definition at line 64 of file SystemFunctions.cs.
static DataObject String(string s)
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
static DataObject ToTimeStamp(DataObject obj)
Definition at line 89 of file SystemFunctions.cs.
91 var value =
UniqueKey(query, tableNameString);
static DataObject Number(SqlNumber value)
static DataObject UniqueKey(IRequest query, DataObject tableName)
ISqlObject Value
Gets the underlined value that is handled.
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
Deveel.Data.Sql.Objects.SqlString SqlString
Definition at line 95 of file SystemFunctions.cs.
96 var tableNameString = tableName.
ToString();
97 var resolvedName = query.
Query.ResolveTableName(tableNameString);
98 return query.
Query.GetNextValue(resolvedName);
string ToString(Encoding encoding)
Definition at line 39 of file SystemFunctions.cs.
static DataObject String(string s)
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Routines/SystemFunctions.cs