DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Static Public Member Functions | List of all members
Deveel.Data.Sql.Fluid.FunctionConfigurationExtensions Class Reference

Static Public Member Functions

static IFunctionConfiguration Named (this IFunctionConfiguration configuration, string name)
 
static IFunctionConfiguration WithAlias (this IFunctionConfiguration configuration, string alias)
 
static IFunctionConfiguration OfAggregateType (this IFunctionConfiguration configuration)
 
static IFunctionConfiguration WithParameter (this IFunctionConfiguration configuration, string name, SqlType type)
 
static IFunctionConfiguration WithNumericParameter (this IFunctionConfiguration configuration, string name)
 
static IFunctionConfiguration WithStringParameter (this IFunctionConfiguration configuration, string name)
 
static IFunctionConfiguration WithDynamicParameter (this IFunctionConfiguration configuration, string name)
 
static IFunctionConfiguration WithBooleanParameter (this IFunctionConfiguration configuration, string name)
 
static IFunctionConfiguration WithDateTimeParameter (this IFunctionConfiguration configuration, string name)
 
static IFunctionConfiguration WithUnoundedParameter (this IFunctionConfiguration configuration, string name, SqlType type)
 
static IFunctionConfiguration ReturnsType (this IFunctionConfiguration configuration, SqlType type)
 
static IFunctionConfiguration ReturnsString (this IFunctionConfiguration configuration)
 
static IFunctionConfiguration ReturnsNumeric (this IFunctionConfiguration configuration)
 
static IFunctionConfiguration ReturnsBoolean (this IFunctionConfiguration configuration)
 
static IFunctionConfiguration ReturnsBinary (this IFunctionConfiguration configuration)
 
static IFunctionConfiguration ReturnsDateTime (this IFunctionConfiguration configuration)
 

Detailed Description

Definition at line 23 of file FunctionConfigurationExtensions.cs.

Member Function Documentation

static IFunctionConfiguration Deveel.Data.Sql.Fluid.FunctionConfigurationExtensions.Named ( this IFunctionConfiguration  configuration,
string  name 
)
inlinestatic

Definition at line 24 of file FunctionConfigurationExtensions.cs.

24  {
25  var routineConfig = configuration as IRoutineConfiguration;
26  if (routineConfig == null)
27  throw new InvalidOperationException();
28 
29  return configuration.Named(new ObjectName(new ObjectName(routineConfig.Context.SchemaName), name));
30  }
static IFunctionConfiguration Deveel.Data.Sql.Fluid.FunctionConfigurationExtensions.OfAggregateType ( this IFunctionConfiguration  configuration)
inlinestatic

Definition at line 40 of file FunctionConfigurationExtensions.cs.

40  {
41  configuration.OfType(FunctionType.Aggregate);
42  return configuration;
43  }
FunctionType
The different type of a function.
Definition: FunctionType.cs:25
static IFunctionConfiguration Deveel.Data.Sql.Fluid.FunctionConfigurationExtensions.ReturnsBinary ( this IFunctionConfiguration  configuration)
inlinestatic

Definition at line 91 of file FunctionConfigurationExtensions.cs.

91  {
92  return configuration.ReturnsType(PrimitiveTypes.Binary());
93  }
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static BinaryType Binary(int maxSize)
static IFunctionConfiguration Deveel.Data.Sql.Fluid.FunctionConfigurationExtensions.ReturnsBoolean ( this IFunctionConfiguration  configuration)
inlinestatic

Definition at line 87 of file FunctionConfigurationExtensions.cs.

87  {
88  return configuration.ReturnsType(PrimitiveTypes.Boolean());
89  }
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static BooleanType Boolean()
static IFunctionConfiguration Deveel.Data.Sql.Fluid.FunctionConfigurationExtensions.ReturnsDateTime ( this IFunctionConfiguration  configuration)
inlinestatic

Definition at line 95 of file FunctionConfigurationExtensions.cs.

95  {
96  return configuration.ReturnsType(PrimitiveTypes.DateTime());
97  }
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static IFunctionConfiguration Deveel.Data.Sql.Fluid.FunctionConfigurationExtensions.ReturnsNumeric ( this IFunctionConfiguration  configuration)
inlinestatic

Definition at line 83 of file FunctionConfigurationExtensions.cs.

83  {
84  return configuration.ReturnsType(PrimitiveTypes.Numeric());
85  }
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static NumericType Numeric()
static IFunctionConfiguration Deveel.Data.Sql.Fluid.FunctionConfigurationExtensions.ReturnsString ( this IFunctionConfiguration  configuration)
inlinestatic

Definition at line 79 of file FunctionConfigurationExtensions.cs.

79  {
80  return configuration.ReturnsType(PrimitiveTypes.String());
81  }
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static IFunctionConfiguration Deveel.Data.Sql.Fluid.FunctionConfigurationExtensions.ReturnsType ( this IFunctionConfiguration  configuration,
SqlType  type 
)
inlinestatic

Definition at line 75 of file FunctionConfigurationExtensions.cs.

75  {
76  return configuration.ReturnsType(context => type);
77  }
static IFunctionConfiguration Deveel.Data.Sql.Fluid.FunctionConfigurationExtensions.WithAlias ( this IFunctionConfiguration  configuration,
string  alias 
)
inlinestatic

Definition at line 32 of file FunctionConfigurationExtensions.cs.

32  {
33  var routineConfig = configuration as IRoutineConfiguration;
34  if (routineConfig == null)
35  throw new InvalidOperationException();
36 
37  return configuration.WithAlias(new ObjectName(new ObjectName(routineConfig.Context.SchemaName), alias));
38  }
static IFunctionConfiguration Deveel.Data.Sql.Fluid.FunctionConfigurationExtensions.WithBooleanParameter ( this IFunctionConfiguration  configuration,
string  name 
)
inlinestatic

Definition at line 62 of file FunctionConfigurationExtensions.cs.

62  {
63  return configuration.WithParameter(name, PrimitiveTypes.Boolean());
64  }
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static BooleanType Boolean()
static IFunctionConfiguration Deveel.Data.Sql.Fluid.FunctionConfigurationExtensions.WithDateTimeParameter ( this IFunctionConfiguration  configuration,
string  name 
)
inlinestatic

Definition at line 66 of file FunctionConfigurationExtensions.cs.

66  {
67  return configuration.WithParameter(name, PrimitiveTypes.DateTime());
68  }
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static IFunctionConfiguration Deveel.Data.Sql.Fluid.FunctionConfigurationExtensions.WithDynamicParameter ( this IFunctionConfiguration  configuration,
string  name 
)
inlinestatic

Definition at line 58 of file FunctionConfigurationExtensions.cs.

58  {
59  return configuration.WithParameter(name, Function.DynamicType);
60  }
static readonly SqlType DynamicType
A special SqlType that is used to mark an argument of a function as dynamic.
Definition: Function.cs:39
A system routine that returns a value at the end of its execution.
Definition: Function.cs:31
static IFunctionConfiguration Deveel.Data.Sql.Fluid.FunctionConfigurationExtensions.WithNumericParameter ( this IFunctionConfiguration  configuration,
string  name 
)
inlinestatic

Definition at line 50 of file FunctionConfigurationExtensions.cs.

50  {
51  return configuration.WithParameter(name, PrimitiveTypes.Numeric());
52  }
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static NumericType Numeric()
static IFunctionConfiguration Deveel.Data.Sql.Fluid.FunctionConfigurationExtensions.WithParameter ( this IFunctionConfiguration  configuration,
string  name,
SqlType  type 
)
inlinestatic

Definition at line 45 of file FunctionConfigurationExtensions.cs.

46  {
47  return configuration.WithParameter(config => config.Named(name).OfType(type));
48  }
static IFunctionConfiguration Deveel.Data.Sql.Fluid.FunctionConfigurationExtensions.WithStringParameter ( this IFunctionConfiguration  configuration,
string  name 
)
inlinestatic

Definition at line 54 of file FunctionConfigurationExtensions.cs.

54  {
55  return configuration.WithParameter(name, PrimitiveTypes.String());
56  }
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static IFunctionConfiguration Deveel.Data.Sql.Fluid.FunctionConfigurationExtensions.WithUnoundedParameter ( this IFunctionConfiguration  configuration,
string  name,
SqlType  type 
)
inlinestatic

Definition at line 70 of file FunctionConfigurationExtensions.cs.

71  {
72  return configuration.WithParameter(config => config.Named(name).OfType(type).Unbounded());
73  }

The documentation for this class was generated from the following file: