import { BaseConnectionOptions } from "typeorm/connection/BaseConnectionOptions"; import { YugabyteConnectionCredentialsOptions } from "./YugabyteConnectionCredentialsOptions"; /** * Postgres-specific connection options. */ export interface YugabyteConnectionOptions extends BaseConnectionOptions, YugabyteConnectionCredentialsOptions { /** * Database type. */ readonly type: any; /** * Schema name. */ readonly schema?: string; /** * Replication setup. */ readonly replication?: { /** * Master server used by orm to perform writes. */ readonly master: YugabyteConnectionCredentialsOptions; /** * List of read-from severs (slaves). */ readonly slaves: YugabyteConnectionCredentialsOptions[]; }; /** * The Postgres extension to use to generate UUID columns. Defaults to uuid-ossp. * If pgcrypto is selected, TypeORM will use the gen_random_uuid() function from this extension. * If uuid-ossp is selected, TypeORM will use the uuid_generate_v4() function from this extension. */ readonly uuidExtension?: "pgcrypto" | "uuid-ossp"; readonly poolErrorHandler?: (err: any) => any; }