Definition at line 27 of file SystemFunctionsProvider.cs.
void Deveel.Data.Routines.SystemFunctionsProvider.AddAggregateFunctions |
( |
| ) |
|
|
inlineprivate |
Definition at line 51 of file SystemFunctionsProvider.cs.
52 Register(configuration => configuration
54 .WithParameter(p => p.Named(
"args").Unbounded().OfDynamicType())
56 .WhenExecute(context =>
Binary(context, SystemFunctions.Or)));
59 Register(config => config.Named(
"count")
60 .WithUnoundedParameter(
"args",
Function.DynamicType)
61 .WhenExecute(Count.Execute)
A program that takes an optional set of arguments and returns a single value as result of the operati...
InvokeResult Binary(InvokeContext context, Func< DataObject, DataObject, DataObject > func)
void Register(FunctionInfo functionInfo, Func< InvokeContext, InvokeResult > body, Func< InvokeContext, SqlType > returnType)
Defines parameters uniquely identified within the query context by a name. In this form query paramet...
void Deveel.Data.Routines.SystemFunctionsProvider.AddConversionFunctions |
( |
| ) |
|
|
inlineprivate |
Definition at line 73 of file SystemFunctionsProvider.cs.
74 Register(config => config.Named(
"cast")
75 .WithDynamicParameter(
"value")
76 .WithStringParameter(
"destType")
77 .WhenExecute(
Cast.Execute)
78 .ReturnsType(
Cast.ReturnType));
80 Register(config => config.Named(
"tonumber")
81 .WithDynamicParameter(
"value")
82 .WhenExecute(context =>
Simple(context, args => SystemFunctions.ToNumber(args[0])))
85 Register(config => config.Named(
"tostring")
86 .WithDynamicParameter(
"value")
87 .WhenExecute(context =>
Simple(context, args => SystemFunctions.ToString(args[0])))
90 Register(config => config.Named(
"tobinary")
91 .WithDynamicParameter(
"value")
92 .WhenExecute(context =>
Simple(context, args => SystemFunctions.ToBinary(args[0])))
96 Register(config => config.Named(
"todate")
97 .WithStringParameter(
"value")
98 .WhenExecute(context =>
Simple(context, objects => SystemFunctions.ToDate(objects[0])))
101 Register(config => config.Named(
"todatetime")
102 .WithStringParameter(
"value")
103 .WhenExecute(context =>
Simple(context, args => SystemFunctions.ToDateTime(args[0])))
106 Register(config => config.Named(
"totimestamp")
107 .WithParameter(p => p.Named(
"value").OfStringType())
108 .WhenExecute(context =>
Simple(context, args => SystemFunctions.ToTimeStamp(args[0])))
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static BinaryType Binary(int maxSize)
InvokeResult Simple(InvokeContext context, Func< DataObject[], DataObject > func)
static DateType TimeStamp()
static DateType DateTime()
void Register(FunctionInfo functionInfo, Func< InvokeContext, InvokeResult > body, Func< InvokeContext, SqlType > returnType)
void Deveel.Data.Routines.SystemFunctionsProvider.AddMiscFunctions |
( |
| ) |
|
|
inlineprivate |
Definition at line 124 of file SystemFunctionsProvider.cs.
125 Register(config => config.Named(
"iif")
126 .WithBooleanParameter(
"condition")
127 .WithDynamicParameter(
"ifTrue")
128 .WithDynamicParameter(
"ifFalse")
129 .WhenExecute(context => SystemFunctions.Iif(context))
130 .ReturnsType(
Function.DynamicType));
132 Register(config => config.Named(
"i_frule_convert")
133 .WithDynamicParameter(
"rule")
134 .WhenExecute(context =>
Simple(context, args => SystemFunctions.FRuleConvert(args[0])))
135 .ReturnsType(context => {
136 var argType =
ReturnType(context.Arguments[0], context);
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
InvokeResult Simple(InvokeContext context, Func< DataObject[], DataObject > func)
static NumericType Numeric()
A program that takes an optional set of arguments and returns a single value as result of the operati...
Defines the properties of a specific SQL Type and handles the values compatible.
void Register(FunctionInfo functionInfo, Func< InvokeContext, InvokeResult > body, Func< InvokeContext, SqlType > returnType)
static SqlType ReturnType(SqlExpression exp, InvokeContext context)
static StringType String()
void Deveel.Data.Routines.SystemFunctionsProvider.AddSecurityFunctions |
( |
| ) |
|
|
inlineprivate |
Definition at line 67 of file SystemFunctionsProvider.cs.
68 Register(config => config.Named(
"user")
69 .WhenExecute(context => context.Result(SystemFunctions.User(context.Request)))
void Register(FunctionInfo functionInfo, Func< InvokeContext, InvokeResult > body, Func< InvokeContext, SqlType > returnType)
void Deveel.Data.Routines.SystemFunctionsProvider.AddSequenceFunctions |
( |
| ) |
|
|
inlineprivate |
Definition at line 112 of file SystemFunctionsProvider.cs.
113 Register(config => config.Named(
"uniquekey")
114 .WithStringParameter(
"table")
115 .WhenExecute(context =>
Simple(context, args => SystemFunctions.UniqueKey(context.Request, args[0])))
118 Register(config => config.Named(
"curval")
119 .WithStringParameter(
"table")
120 .WhenExecute(context =>
Simple(context, args => SystemFunctions.CurrentValue(context.Request, args[0])))
InvokeResult Simple(InvokeContext context, Func< DataObject[], DataObject > func)
void Register(FunctionInfo functionInfo, Func< InvokeContext, InvokeResult > body, Func< InvokeContext, SqlType > returnType)
Definition at line 45 of file SystemFunctionsProvider.cs.
46 var evaluated = context.EvaluatedArguments;
47 var value = func(evaluated[0], evaluated[1]);
48 return context.Result(value);
override ObjectName Deveel.Data.Routines.SystemFunctionsProvider.NormalizeName |
( |
ObjectName |
functionName | ) |
|
|
inlineprotectedvirtual |
Reimplemented from Deveel.Data.Routines.FunctionProvider.
Definition at line 32 of file SystemFunctionsProvider.cs.
33 if (functionName.
Parent == null)
36 return base.NormalizeName(functionName);
Describes the name of an object within a database.
ObjectName Parent
Gets the parent reference of the current one, if any or null if none.
string Name
Gets the name of the object being referenced.
override string SchemaName
override void Deveel.Data.Routines.SystemFunctionsProvider.OnInit |
( |
| ) |
|
|
inlineprotectedvirtual |
Definition at line 39 of file SystemFunctionsProvider.cs.
40 var evaluated = context.EvaluatedArguments;
41 var value = func(evaluated);
42 return context.Result(value);
override string Deveel.Data.Routines.SystemFunctionsProvider.SchemaName |
|
get |
The documentation for this class was generated from the following file: