Extension methods to any IRoutineResolver
More...
|
static bool | IsAggregateFunction (this IRoutineResolver resolver, Invoke request, IQuery query) |
| Checks if a function matched against the given request represents an aggregate function. More...
|
|
static IFunction | ResolveFunction (this FunctionProvider resolver, string name) |
|
static IFunction | ResolveFunction (this FunctionProvider resolver, IQuery context, string name) |
|
static IFunction | ResolveFunction (this FunctionProvider resolver, string name, params SqlExpression[] args) |
|
static IFunction | ResolveFunction (this FunctionProvider resolver, string name, params DataObject[] args) |
|
static IFunction | ResolveFunction (this FunctionProvider resolver, IQuery context, string name, params DataObject[] args) |
|
static IFunction | ResolveFunction (this FunctionProvider resolver, IQuery query, string name, SqlExpression[] args) |
|
Extension methods to any IRoutineResolver
Definition at line 27 of file RoutineResolverExtensions.cs.
static bool Deveel.Data.Routines.RoutineResolverExtensions.IsAggregateFunction |
( |
this IRoutineResolver |
resolver, |
|
|
Invoke |
request, |
|
|
IQuery |
query |
|
) |
| |
|
inlinestatic |
Checks if a function matched against the given request represents an aggregate function.
- Parameters
-
resolver | The routine resolver. |
request | The invocation request used to resolve the function. |
query | The parent query context. |
- Returns
- Returns
true
if a routine was resolved for the given request, this is a IFunction and the FunctionType is FunctionType.Aggregate, otherwise false
.
Definition at line 40 of file RoutineResolverExtensions.cs.
41 var routine = resolver.ResolveRoutine(request, query);
43 var
function = routine as IFunction;
FunctionType
The different type of a function.
static IFunction Deveel.Data.Routines.RoutineResolverExtensions.ResolveFunction |
( |
this FunctionProvider |
resolver, |
|
|
string |
name |
|
) |
| |
|
inlinestatic |
Definition at line 54 of file RoutineResolverExtensions.cs.
static IFunction ResolveFunction(this FunctionProvider resolver, string name)
Defines the base class for instances that represent SQL expression tree nodes.
Definition at line 66 of file RoutineResolverExtensions.cs.
68 if (args != null && args.Length > 0) {
70 for (
int i = 0; i < args.Length; i++) {
75 return resolver.ResolveFunction(context, name, exps);
Defines the base class for instances that represent SQL expression tree nodes.
static SqlConstantExpression Constant(object value)
Definition at line 78 of file RoutineResolverExtensions.cs.
80 var routine = ((IRoutineResolver) resolver).ResolveRoutine(
new Invoke(funName, args), query);
81 if (!(routine is IFunction))
82 throw new InvalidOperationException();
84 return routine as IFunction;
Describes the name of an object within a database.
The documentation for this class was generated from the following file: