class Sequence
implements _ISequence
import { Sequence } from "https://dotland.deno.dev/x/pg_mem@2.6.7/schema/sequence.ts";
Constructors
new
Sequence(name: string, ownerSchema: _ISchema)Properties
private
cfg: { start?: number; max?: number; min?: number; cycle?: boolean; inc?: number; dataType?: _IType; }private
optional
owner: ISubscriptionreadonly
reg: RegMethods
private
alterOpts(t: _Transaction, opts: CreateSequenceOptions)alter(t: _Transaction, opts: CreateSequenceOptions | AlterSequenceChange | nil): this
currentValue(t: _Transaction): number
drop(t: _Transaction)
nextValue(t: _Transaction): number
restart(t: _Transaction)
setValue(t: _Transaction, value: number)