Documentation / @u-net/issuer / PostgresDirectIssuerRequestStore
Class: PostgresDirectIssuerRequestStore
Defined in: directIssuerPostgres.ts:52
Implements
Constructors
Constructor
new PostgresDirectIssuerRequestStore(
db):PostgresDirectIssuerRequestStore
Defined in: directIssuerPostgres.ts:55
Parameters
db
Returns
PostgresDirectIssuerRequestStore
Methods
beforeAccountTransaction()
protectedbeforeAccountTransaction(db,serviceAccountRef,checkId):Promise<void>
Defined in: directIssuerPostgres.ts:63
Runs after BEGIN and local timeouts, before the SDK account/check advisory lock. Provider hooks must use only SQL on this guarded, pinned client (for example, policy-global locks and account FOR SHARE); no network calls or transaction control. The client must not be used after the transaction ends.
Parameters
db
serviceAccountRef
string
checkId
string
Returns
Promise<void>
create()
create(
record):Promise<void>
Defined in: directIssuerPostgres.ts:133
Parameters
record
Returns
Promise<void>
Implementation of
DirectIssuerRequestStore.create
createTransactionStore()
protectedcreateTransactionStore(db):PostgresDirectIssuerRequestStore
Defined in: directIssuerPostgres.ts:71
Trusted provider factory for retaining subclass create/update publication hooks. Return a fresh store constructed with exactly db, never a root or previously bound store. Overrides must preserve the base scope checks and use only this client for SQL; no network calls in provider hooks or the transaction callback.
Parameters
db
Returns
PostgresDirectIssuerRequestStore
findActive()
findActive(
serviceAccountRef,checkId):Promise<DirectIssuerRequestRecord[]>
Defined in: directIssuerPostgres.ts:171
Parameters
serviceAccountRef
string
checkId
string
Returns
Promise<DirectIssuerRequestRecord[]>
Implementation of
DirectIssuerRequestStore.findActive
findByAttestationHash()
findByAttestationHash(
attestationHash):Promise<DirectIssuerRequestRecord|undefined>
Defined in: directIssuerPostgres.ts:193
Parameters
attestationHash
string
Returns
Promise<DirectIssuerRequestRecord | undefined>
Implementation of
DirectIssuerRequestStore.findByAttestationHash
findByIdempotency()
findByIdempotency(
serviceAccountRef,idempotencyKey):Promise<DirectIssuerRequestRecord|undefined>
Defined in: directIssuerPostgres.ts:161
Parameters
serviceAccountRef
string
idempotencyKey
string
Returns
Promise<DirectIssuerRequestRecord | undefined>
Implementation of
DirectIssuerRequestStore.findByIdempotency
findPending()
findPending(
serviceAccountRef,checkId):Promise<DirectIssuerRequestRecord[]>
Defined in: directIssuerPostgres.ts:182
Parameters
serviceAccountRef
string
checkId
string
Returns
Promise<DirectIssuerRequestRecord[]>
Implementation of
DirectIssuerRequestStore.findPending
get()
get(
requestId):Promise<DirectIssuerRequestRecord|undefined>
Defined in: directIssuerPostgres.ts:152
Parameters
requestId
string
Returns
Promise<DirectIssuerRequestRecord | undefined>
Implementation of
list()
list(
input?):Promise<DirectIssuerRequestRecord[]>
Defined in: directIssuerPostgres.ts:202
Parameters
input?
limit?
number
serviceAccountRef?
string
state?
Returns
Promise<DirectIssuerRequestRecord[]>
Implementation of
update()
update(
record):Promise<void>
Defined in: directIssuerPostgres.ts:216
Parameters
record
Returns
Promise<void>
Implementation of
DirectIssuerRequestStore.update
withAccountTransaction()
withAccountTransaction<
T>(serviceAccountRef,checkId,work):Promise<T>
Defined in: directIssuerPostgres.ts:75
Type Parameters
T
T
Parameters
serviceAccountRef
string
checkId
string
work
(store) => Promise<T>
Returns
Promise<T>