UNPKG

@nodeboot/starter-persistence

Version:

Nodeboot starter package for persistence. Supports data access layer auto-configuration providing features like database initialization, consistency check, entity mapping, repository pattern, transactions, paging, migrations, persistence listeners, persis

40 lines 1.31 kB
import { CockroachConnectionCredentialsOptions } from "typeorm/driver/cockroachdb/CockroachConnectionCredentialsOptions"; /** * Cockroachdb-specific connection options. * * @author Manuel Santos <https://github.com/manusant> */ export interface CockroachConnectionProperties extends CockroachConnectionCredentialsOptions { /** * Enable time travel queries on cockroachdb. * https://www.cockroachlabs.com/docs/stable/as-of-system-time.html */ readonly timeTravelQueries: boolean; /** * Schema name. */ readonly schema?: string; /** * Replication setup. */ readonly replication?: { /** * Master server used by orm to perform writes. */ readonly master: CockroachConnectionCredentialsOptions; /** * List of read-from severs (slaves). */ readonly slaves: CockroachConnectionCredentialsOptions[]; }; /** * sets the application_name var to help db administrators identify * the service using this connection. Defaults to 'undefined' */ readonly applicationName?: string; /** * Max number of transaction retries in case of 40001 error. */ readonly maxTransactionRetries?: number; } //# sourceMappingURL=CockroachConnectionProperties.d.ts.map