SqlInboundLedger
Implements
Section titled “Implements”InboundLedger
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SqlInboundLedger(sql, options?): SqlInboundLedger;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
{ |
|
|
|
Returns
Section titled “Returns”SqlInboundLedger
Methods
Section titled “Methods”append()
Section titled “append()”append(key, event): Promise<{ seq: number;}>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
Section titled “Returns”Promise<{
seq: number;
}>
Implementation of
Section titled “Implementation of”InboundLedger.appendclaim()
Section titled “claim()”claim(key, eventId): Promise<ClaimResult>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
Section titled “Returns”Promise<ClaimResult>
Implementation of
Section titled “Implementation of”InboundLedger.claimcommitCursor()
Section titled “commitCursor()”commitCursor( key, throughSeq,expect): Promise<boolean>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
|
|
|
Returns
Section titled “Returns”Promise<boolean>
Implementation of
Section titled “Implementation of”InboundLedger.commitCursorcomplete()
Section titled “complete()”complete(key, eventId): Promise<void>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”InboundLedger.completecursor()
Section titled “cursor()”cursor(key): number;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
Returns
Section titled “Returns”number
prune()
Section titled “prune()”prune(key, ttlMs): Promise<number>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
Section titled “Returns”Promise<number>
Implementation of
Section titled “Implementation of”InboundLedger.prunereadUnprocessed()
Section titled “readUnprocessed()”readUnprocessed(key): Promise<InboundEvent[]>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
Returns
Section titled “Returns”Promise<InboundEvent[]>
Implementation of
Section titled “Implementation of”InboundLedger.readUnprocessed