Interface: DBTransactionParams
@divine/uri.DBTransactionParams
Transaction parameters.
Properties
backoff
• Optional backoff: (count: number) => number
Type declaration
▸ (count): number
The backoff function to use when calculating the time to wait between retries. Default is defaultBackoff (exponential backoff — 100 ms, 200 ms, 400 ms etc — with random jitter).
Parameters
| Name | Type | 
|---|---|
| count | number | 
Returns
number
Defined in
uri/src/protocols/database.ts:280
options
• Optional options: DBQuery
A database-specific subquery to send as options when starting the transaction. An example would be ISOLATION
LEVEL SNAPSHOT.
Defined in
uri/src/protocols/database.ts:286
retries
• Optional retries: number
The number of times to retry the transaction in case of a deadlock. Default is defaultRetries (8 times).