Sequence
Less than 1 minute
Sequence
interface SequenceMethods
listSequences
List all sequences in the database.
public listSequences(): arrayReturns: array
sequenceExists
Check if a sequence exists.
public sequenceExists(string $sequenceName): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$sequenceName | string |
describeSequence
Describe a sequence.
public describeSequence(string $name): array|falseReturns: array|false
Parameters
| Parameter | Type | Description |
|---|---|---|
$name | string |
createSequence
Create a new sequence.
public createSequence(string $name, array $sequenceInfo, bool $ifNotExists): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$name | string | |
$sequenceInfo | array | |
$ifNotExists | bool |
dropSequence
Drop a sequence.
public dropSequence(string $name, bool $ifExists): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$name | string | |
$ifExists | bool |
nextSequenceValue
Get the next value from a sequence.
public nextSequenceValue(string $name): false|intReturns: false|int
Parameters
| Parameter | Type | Description |
|---|---|---|
$name | string |
setSequenceValue
Set the value of a sequence.
public setSequenceValue(string $name, int $value): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$name | string | |
$value | int |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:16 +0000