Definition at line 23 of file QueryExtensions.cs.
Gets the current value of the sequence.
- Parameters
-
context | |
sequenceName | The name of the sequence whose current value must be obtained. |
- Returns
- Returns a SqlNumber that represents the current value of the sequence identified by the given name.
- Exceptions
-
Definition at line 62 of file QueryExtensions.cs.
63 var sequence = context.GetSequence(sequenceName);
65 throw new InvalidOperationException(
String.Format(
"Sequence {0} was not found.", sequenceName));
67 return sequence.GetCurrentValue();
A long string in the system.
Increments the sequence and returns the computed value.
- Parameters
-
context | |
sequenceName | The name of the sequence to increment and whose incremented value must be returned. |
- Returns
- Returns a SqlNumber that represents the result of the increment operation over the sequence identified by the given name.
- Exceptions
-
Definition at line 41 of file QueryExtensions.cs.
42 var sequence = context.GetSequence(sequenceName);
44 throw new InvalidOperationException(
String.Format(
"Sequence {0} was not found.", sequenceName));
46 return sequence.NextValue();
A long string in the system.
Definition at line 24 of file QueryExtensions.cs.
DbObjectType
The kind of objects that can be handled by a database system and its managers
static void Deveel.Data.Sql.Sequences.QueryExtensions.SetCurrentValue |
( |
this IQuery |
context, |
|
|
ObjectName |
sequenceName, |
|
|
SqlNumber |
value |
|
) |
| |
|
inlinestatic |
Sets the current value of the sequence, overriding the increment mechanism in place.
- Parameters
-
sequenceName | The name of the sequence whose current state to be set. |
value | The numeric value to set. |
- Exceptions
-
Definition at line 80 of file QueryExtensions.cs.
81 var sequence = context.GetSequence(sequenceName);
83 throw new InvalidOperationException(
String.Format(
"Sequence {0} was not found.", sequenceName));
85 sequence.SetValue(value);
A long string in the system.
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Sql.Sequences/QueryExtensions.cs