Sequence
Less than 1 minute
Sequence
Methods
listSequences
List all sequences in the database.
public listSequences(): void
sequenceExists
Check if a sequence exists.
public sequenceExists(string $sequenceName): bool
Parameters
Parameter | Type | Description |
---|---|---|
$sequenceName | string |
describeSequence
Describe a sequence.
public describeSequence(string $name, false $): void
Parameters
Parameter | Type | Description |
---|---|---|
$name | string | |
$ | false |
createSequence
Create a new sequence.
public createSequence(string $name, array $sequenceInfo, bool $ifNotExists = false): bool
Parameters
Parameter | Type | Description |
---|---|---|
$name | string | |
$sequenceInfo | array | |
$ifNotExists | bool |
dropSequence
Drop a sequence.
public dropSequence(string $name, bool $ifExists = false): bool
Parameters
Parameter | Type | Description |
---|---|---|
$name | string | |
$ifExists | bool |
nextSequenceValue
Get the next value from a sequence.
public nextSequenceValue(string $name): int
Parameters
Parameter | Type | Description |
---|---|---|
$name | string |
setSequenceValue
Set the value of a sequence.
public setSequenceValue(string $name, int $value): bool
Parameters
Parameter | Type | Description |
---|---|---|
$name | string | |
$value | int |
Generated by Hazaar API Doc Generator