/opt/canhelp/node_modules/kysely/dist/esm/dialect/postgres
NameSizeModeActions
postgres-adapter.d.ts36820644editdlrm
postgres-adapter.js9260644editdlrm
postgres-dialect-config.d.ts21900644editdlrm
postgres-dialect-config.js680644editdlrm
postgres-dialect.d.ts17800644editdlrm
postgres-dialect.js13110644editdlrm
postgres-driver.d.ts24390644editdlrm
postgres-driver.js49730644editdlrm
postgres-introspector.d.ts7500644editdlrm
postgres-introspector.js40780644editdlrm
postgres-query-compiler.d.ts2250644editdlrm
postgres-query-compiler.js3390644editdlrm
Edit: /opt/canhelp/node_modules/kysely/dist/esm/dialect/postgres/postgres-dialect.js (1311B)
/// import { PostgresDriver } from './postgres-driver.js'; import { PostgresIntrospector } from './postgres-introspector.js'; import { PostgresQueryCompiler } from './postgres-query-compiler.js'; import { PostgresAdapter } from './postgres-adapter.js'; /** * PostgreSQL dialect that uses the [pg](https://node-postgres.com/) library. * * The constructor takes an instance of {@link PostgresDialectConfig}. * * ```ts * import { Pool } from 'pg' * * new PostgresDialect({ * pool: new Pool({ * database: 'some_db', * host: 'localhost', * }) * }) * ``` * * If you want the pool to only be created once it's first used, `pool` * can be a function: * * ```ts * import { Pool } from 'pg' * * new PostgresDialect({ * pool: async () => new Pool({ * database: 'some_db', * host: 'localhost', * }) * }) * ``` */ export class PostgresDialect { #config; constructor(config) { this.#config = config; } createDriver() { return new PostgresDriver(this.#config); } createQueryCompiler() { return new PostgresQueryCompiler(); } createAdapter() { return new PostgresAdapter(); } createIntrospector(db) { return new PostgresIntrospector(db); } }