Documentation / @u-net/issuer / PostgresIssuanceRecoveryStore
Class: PostgresIssuanceRecoveryStore
Defined in: issuanceRecoveryPostgres.ts:206
Beta
Coordinated SDK 2 RC candidate, not approved stable. Owns a pinned connection, BEGIN, timeouts, COMMIT/ROLLBACK and release for each operation separately. Use TransactionalIssuanceRecoveryStore for atomic provider publication instead; separate calls here cannot share the provider's transaction.
Constructors
Constructor
new PostgresIssuanceRecoveryStore(
pool):PostgresIssuanceRecoveryStore
Defined in: issuanceRecoveryPostgres.ts:207
Beta
Parameters
pool
Returns
PostgresIssuanceRecoveryStore
Methods
claim()
claim(
requestId):Promise<RecoveryRecord|undefined>
Defined in: issuanceRecoveryPostgres.ts:218
Beta
Parameters
requestId
string
Returns
Promise<RecoveryRecord | undefined>
get()
get(
requestId):Promise<RecoveryRecord|undefined>
Defined in: issuanceRecoveryPostgres.ts:214
Beta
Parameters
requestId
string
Returns
Promise<RecoveryRecord | undefined>
reserve()
reserve(
input):Promise<RecoveryRecord>
Defined in: issuanceRecoveryPostgres.ts:209
Beta
Parameters
input
Returns
Promise<RecoveryRecord>
transition()
transition(
requestId,token,revision,action):Promise<RecoveryRecord>
Defined in: issuanceRecoveryPostgres.ts:222
Beta
Parameters
requestId
string
token
string
revision
number
action
Returns
Promise<RecoveryRecord>