23 namespace Deveel.Data.Routines {
51 return ResolveFunction(resolver, null, name);
55 return ResolveFunction(resolver, context, name,
new SqlExpression[0]);
59 return ResolveFunction(resolver, null, name, args);
63 return ResolveFunction(resolver, null, name, args);
68 if (args != null && args.Length > 0) {
70 for (
int i = 0; i < args.Length; i++) {
82 throw new InvalidOperationException();
84 return routine as IFunction;
The system uses instances of this interface to resolve routines given a user invocation.
Defines a routine that is a function, that means it returns a value after its execution.
static IFunction ResolveFunction(this FunctionProvider resolver, IQuery context, string name)
abstract string SchemaName
Describes the name of an object within a database.
static IFunction ResolveFunction(this FunctionProvider resolver, string name, params DataObject[] args)
FunctionType FunctionType
Gets the type of function.
Extension methods to any IRoutineResolver
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
The information about the invocation of a routine, including the full name and arguments (as SqlExpre...
FunctionType
The different type of a function.
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)
IFunction ResolveFunction(Invoke invoke, IQuery query)
static IFunction ResolveFunction(this FunctionProvider resolver, string name, params SqlExpression[] args)
IRoutine ResolveRoutine(Invoke request, IQuery query)
Resolves a routine that matches the given invocation within the context provided. ...
static IFunction ResolveFunction(this FunctionProvider resolver, string name)
Defines the base class for instances that represent SQL expression tree nodes.
static SqlConstantExpression Constant(object value)
static bool IsAggregateFunction(this IRoutineResolver resolver, Invoke request, IQuery query)
Checks if a function matched against the given request represents an aggregate function.