/opt/canhelp/node_modules/kysely/dist/cjs/dialect/postgres
NameSizeModeActions
postgres-adapter.d.ts36820644editdlrm
postgres-adapter.js10860644editdlrm
postgres-dialect-config.d.ts21900644editdlrm
postgres-dialect-config.js770644editdlrm
postgres-dialect.d.ts17800644editdlrm
postgres-dialect.js15360644editdlrm
postgres-driver.d.ts24390644editdlrm
postgres-driver.js53760644editdlrm
postgres-introspector.d.ts7500644editdlrm
postgres-introspector.js42790644editdlrm
postgres-query-compiler.d.ts2250644editdlrm
postgres-query-compiler.js4830644editdlrm
Edit: /opt/canhelp/node_modules/kysely/dist/cjs/dialect/postgres/postgres-dialect.js (1536B)
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PostgresDialect = void 0; const postgres_driver_js_1 = require("./postgres-driver.js"); const postgres_introspector_js_1 = require("./postgres-introspector.js"); const postgres_query_compiler_js_1 = require("./postgres-query-compiler.js"); const postgres_adapter_js_1 = require("./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', * }) * }) * ``` */ class PostgresDialect { #config; constructor(config) { this.#config = config; } createDriver() { return new postgres_driver_js_1.PostgresDriver(this.#config); } createQueryCompiler() { return new postgres_query_compiler_js_1.PostgresQueryCompiler(); } createAdapter() { return new postgres_adapter_js_1.PostgresAdapter(); } createIntrospector(db) { return new postgres_introspector_js_1.PostgresIntrospector(db); } } exports.PostgresDialect = PostgresDialect;