Class

CouchDBSequence

CouchDBSequence(options)

Constructor

# new CouchDBSequence(options)

Abstract implementation of a Sequence

provides the basic functionality for Sequences

Parameters:
Name Type Description
options SequenceOptions
Implements:

View Source sequences/Sequence.ts, line 6

Methods

# async protected current() → {Promise.<(string|number|bigint)>}

Retrieves the current value for the sequence

Implements:

View Source sequences/Sequence.ts, line 127

Promise.<(string|number|bigint)>

# async protected increment(current, count)

increments the sequence

Sequence specific implementation

Parameters:
Name Type Description
current string | number | bigint
count

View Source sequences/Sequence.ts, line 62

# async next() → {Promise.<(number|string|bigint)>}

Generates the next value in th sequence

calls Sequence#parse on the current value followed by Sequence#increment

View Source sequences/Sequence.ts, line 160

Promise.<(number|string|bigint)>

# protected parse(value)

Parses the Sequence value

Parameters:
Name Type Description
value

View Source sequences/Sequence.ts, line 51