|
static bool | IsSystemFunction (this IQueryContext context, Invoke invoke) |
|
static bool | IsAggregateFunction (this IQueryContext context, Invoke invoke) |
|
static IRoutine | ResolveRoutine (this IQueryContext context, Invoke invoke) |
|
static IRoutine | ResolveSystemRoutine (this IQueryContext context, Invoke invoke) |
|
static IRoutine | ResolveUserRoutine (this IQueryContext context, Invoke invoke) |
|
static IFunction | ResolveFunction (this IQueryContext context, Invoke invoke) |
|
static IFunction | ResolveFunction (this IQueryContext context, ObjectName functionName, params SqlExpression[] args) |
|
static FunctionInfo | ResolveFunctionInfo (this IQueryContext context, Invoke invoke) |
|
static RoutineInfo | ResolveRoutineInfo (this IQueryContext context, Invoke invoke) |
|
static DataObject | InvokeSystemFunction (this IQueryContext context, string functionName, params SqlExpression[] args) |
|
static DataObject | InvokeFunction (this IQueryContext context, Invoke invoke) |
|
static DataObject | InvokeFunction (this IQueryContext context, ObjectName functionName, params SqlExpression[] args) |
|
static void | SetReturn (this IQueryContext context, SqlExpression expression) |
|
Definition at line 26 of file QueryContextExtensions.cs.
Definition at line 92 of file QueryContextExtensions.cs.
95 var invoke =
new Invoke(resolvedName, args);
96 return context.InvokeFunction(invoke);
Describes the name of an object within a database.
static readonly ObjectName SchemaName
The name of the system schema as ObjectName.
Provides utilities and properties for handling the SYSTEN schema of a database.
static bool Deveel.Data.Routines.QueryContextExtensions.IsAggregateFunction |
( |
this IQueryContext |
context, |
|
|
Invoke |
invoke |
|
) |
| |
|
inlinestatic |
Definition at line 36 of file QueryContextExtensions.cs.
37 var
function = context.ResolveFunction(invoke);
38 return function != null &&
function.FunctionType ==
FunctionType.Aggregate;
FunctionType
The different type of a function.
static bool Deveel.Data.Routines.QueryContextExtensions.IsSystemFunction |
( |
this IQueryContext |
context, |
|
|
Invoke |
invoke |
|
) |
| |
|
inlinestatic |
Definition at line 27 of file QueryContextExtensions.cs.
28 var info = context.ResolveFunctionInfo(invoke);
FunctionType
The different type of a function.
Definition at line 75 of file QueryContextExtensions.cs.
76 var invoke =
new Invoke(functionName, args);
77 return context.ResolveFunction(invoke);
Definition at line 41 of file QueryContextExtensions.cs.
42 var routine = context.ResolveSystemRoutine(invoke);
44 routine = context.ResolveUserRoutine(invoke);
Definition at line 84 of file QueryContextExtensions.cs.
85 var routine = context.ResolveRoutine(invoke);
89 return routine.RoutineInfo;
Definition at line 49 of file QueryContextExtensions.cs.
52 var resolvers = context.ResolveAllServices<IRoutineResolver>();
53 foreach (var resolver
in resolvers) {
54 var routine = resolver.ResolveRoutine(invoke, context);
Definition at line 62 of file QueryContextExtensions.cs.
63 var routine = context.Session().ResolveRoutine(invoke);
64 if (routine != null &&
65 !context.UserCanExecute(routine.Type, invoke))
66 throw new InvalidOperationException();
Definition at line 109 of file QueryContextExtensions.cs.
110 var functionContext = context as IFunctionQueryContext;
111 if (functionContext == null)
112 throw new InvalidOperationException(
"Not in a FUNCTION scope.");
114 functionContext.SetReturn(expression);
The documentation for this class was generated from the following file: