Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | 133x 133x 133x | /** Transaction isolation levels (Sequelize v6 `Transaction.ISOLATION_LEVELS`). */
export const ISOLATION_LEVELS = {
/** `READ UNCOMMITTED` (behaves as `READ COMMITTED` in PostgreSQL). */
READ_UNCOMMITTED: 'READ UNCOMMITTED',
/** `READ COMMITTED` (PostgreSQL default). */
READ_COMMITTED: 'READ COMMITTED',
/** `REPEATABLE READ`. */
REPEATABLE_READ: 'REPEATABLE READ',
/** `SERIALIZABLE`. */
SERIALIZABLE: 'SERIALIZABLE',
} as const;
/** One of {@link ISOLATION_LEVELS}. */
export type IsolationLevel = (typeof ISOLATION_LEVELS)[keyof typeof ISOLATION_LEVELS];
/** Row lock strengths for `findAll({ lock })` (Sequelize v6 `Transaction.LOCK`). */
export const LOCK = {
/** `FOR UPDATE`. */
UPDATE: 'UPDATE',
/** `FOR SHARE`. */
SHARE: 'SHARE',
/** `FOR KEY SHARE`. */
KEY_SHARE: 'KEY SHARE',
/** `FOR NO KEY UPDATE`. */
NO_KEY_UPDATE: 'NO KEY UPDATE',
} as const;
/** One of {@link LOCK}. */
export type LockStrength = (typeof LOCK)[keyof typeof LOCK];
/** Row lock strength, as a type (Sequelize v6 `LOCK` is both an enum value and a type). Same as {@link LockStrength}. */
export type LOCK = LockStrength;
/** Transaction types; accepted for Sequelize v6 compatibility and ignored by PostgreSQL. */
export const TRANSACTION_TYPES = {
/** SQLite-only, ignored. */
DEFERRED: 'DEFERRED',
/** SQLite-only, ignored. */
IMMEDIATE: 'IMMEDIATE',
/** SQLite-only, ignored. */
EXCLUSIVE: 'EXCLUSIVE',
} as const;
|