kysely 0.18.1 → 0.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +22 -17
  2. package/dist/cjs/dialect/mysql/mysql-dialect-config.d.ts +24 -207
  3. package/dist/cjs/dialect/mysql/mysql-dialect.d.ts +22 -7
  4. package/dist/cjs/dialect/mysql/mysql-dialect.js +25 -9
  5. package/dist/cjs/dialect/mysql/mysql-driver.d.ts +2 -15
  6. package/dist/cjs/dialect/mysql/mysql-driver.js +4 -35
  7. package/dist/cjs/dialect/mysql/mysql-introspector.js +2 -6
  8. package/dist/cjs/dialect/postgres/postgres-dialect-config.d.ts +25 -89
  9. package/dist/cjs/dialect/postgres/postgres-dialect.d.ts +21 -9
  10. package/dist/cjs/dialect/postgres/postgres-dialect.js +24 -11
  11. package/dist/cjs/dialect/postgres/postgres-driver.d.ts +2 -15
  12. package/dist/cjs/dialect/postgres/postgres-driver.js +5 -36
  13. package/dist/cjs/dialect/sqlite/sqlite-dialect-config.d.ts +25 -28
  14. package/dist/cjs/dialect/sqlite/sqlite-dialect.d.ts +19 -3
  15. package/dist/cjs/dialect/sqlite/sqlite-dialect.js +19 -3
  16. package/dist/cjs/dialect/sqlite/sqlite-driver.js +3 -37
  17. package/dist/cjs/index.d.ts +153 -2
  18. package/dist/cjs/index.js +142 -2
  19. package/dist/cjs/migration/file-migration-provider.d.ts +21 -5
  20. package/dist/cjs/migration/file-migration-provider.js +14 -13
  21. package/dist/cjs/migration/migrator.d.ts +2 -0
  22. package/dist/cjs/plugin/noop-plugin.d.ts +1 -1
  23. package/dist/cjs/schema/alter-table-builder.d.ts +2 -5
  24. package/dist/cjs/schema/alter-table-builder.js +3 -7
  25. package/dist/esm/dialect/mysql/mysql-dialect-config.d.ts +24 -207
  26. package/dist/esm/dialect/mysql/mysql-dialect.d.ts +22 -7
  27. package/dist/esm/dialect/mysql/mysql-dialect.js +25 -9
  28. package/dist/esm/dialect/mysql/mysql-driver.d.ts +2 -15
  29. package/dist/esm/dialect/mysql/mysql-driver.js +4 -35
  30. package/dist/esm/dialect/mysql/mysql-introspector.js +2 -6
  31. package/dist/esm/dialect/postgres/postgres-dialect-config.d.ts +25 -89
  32. package/dist/esm/dialect/postgres/postgres-dialect.d.ts +21 -9
  33. package/dist/esm/dialect/postgres/postgres-dialect.js +24 -11
  34. package/dist/esm/dialect/postgres/postgres-driver.d.ts +2 -15
  35. package/dist/esm/dialect/postgres/postgres-driver.js +6 -37
  36. package/dist/esm/dialect/sqlite/sqlite-dialect-config.d.ts +25 -28
  37. package/dist/esm/dialect/sqlite/sqlite-dialect.d.ts +19 -3
  38. package/dist/esm/dialect/sqlite/sqlite-dialect.js +19 -3
  39. package/dist/esm/dialect/sqlite/sqlite-driver.js +4 -38
  40. package/dist/esm/index.d.ts +153 -2
  41. package/dist/esm/index.js +142 -2
  42. package/dist/esm/migration/file-migration-provider.d.ts +21 -5
  43. package/dist/esm/migration/file-migration-provider.js +14 -13
  44. package/dist/esm/migration/migrator.d.ts +2 -0
  45. package/dist/esm/plugin/noop-plugin.d.ts +1 -1
  46. package/dist/esm/schema/alter-table-builder.d.ts +2 -5
  47. package/dist/esm/schema/alter-table-builder.js +4 -8
  48. package/package.json +2 -7
  49. package/dist/cjs/index-nodeless.d.ts +0 -152
  50. package/dist/cjs/index-nodeless.js +0 -157
  51. package/dist/esm/index-nodeless.d.ts +0 -152
  52. package/dist/esm/index-nodeless.js +0 -142
@@ -6,27 +6,40 @@ import { PostgresAdapter } from './postgres-adapter.js';
6
6
  /**
7
7
  * PostgreSQL dialect that uses the [pg](https://node-postgres.com/) library.
8
8
  *
9
- * The {@link PostgresDialectConfig | configuration} passed to the constructor
10
- * is given as-is to the pg library's [Pool](https://node-postgres.com/api/pool)
11
- * constructor. See the following two links for more documentation:
9
+ * The constructor takes an instance of {@link PostgresDialectConfig}.
12
10
  *
13
- * https://node-postgres.com/api/pool
14
- * https://node-postgres.com/api/client
11
+ * ```ts
12
+ * import { Pool } from 'pg'
15
13
  *
16
- * You can also provide an existing pg `Pool` instance:
14
+ * new PostgresDialect({
15
+ * pool: new Pool({
16
+ * database: 'some_db',
17
+ * host: 'localhost',
18
+ * })
19
+ * })
20
+ * ```
21
+ *
22
+ * If you want the pool to only be created once it's first used, `pool`
23
+ * can be a function:
17
24
  *
18
25
  * ```ts
19
26
  * import { Pool } from 'pg'
20
- * new PostgresDialect(new Pool(config))
27
+ *
28
+ * new PostgresDialect({
29
+ * pool: async () => new Pool({
30
+ * database: 'some_db',
31
+ * host: 'localhost',
32
+ * })
33
+ * })
21
34
  * ```
22
35
  */
23
36
  export class PostgresDialect {
24
- #configOrPool;
25
- constructor(configOrPool) {
26
- this.#configOrPool = configOrPool;
37
+ #config;
38
+ constructor(config) {
39
+ this.#config = config;
27
40
  }
28
41
  createDriver() {
29
- return new PostgresDriver(this.#configOrPool);
42
+ return new PostgresDriver(this.#config);
30
43
  }
31
44
  createQueryCompiler() {
32
45
  return new PostgresQueryCompiler();
@@ -1,11 +1,11 @@
1
1
  import { DatabaseConnection, QueryResult } from '../../driver/database-connection.js';
2
2
  import { Driver, TransactionSettings } from '../../driver/driver.js';
3
3
  import { CompiledQuery } from '../../query-compiler/compiled-query.js';
4
- import { PostgresDialectConfig } from './postgres-dialect-config.js';
4
+ import { PostgresDialectConfig, PostgresPoolClient } from './postgres-dialect-config.js';
5
5
  declare const PRIVATE_RELEASE_METHOD: unique symbol;
6
6
  export declare class PostgresDriver implements Driver {
7
7
  #private;
8
- constructor(configOrPool: PostgresDialectConfig | PostgresPool);
8
+ constructor(config: PostgresDialectConfig);
9
9
  /**
10
10
  * Initializes the driver.
11
11
  *
@@ -43,19 +43,6 @@ export declare class PostgresDriver implements Driver {
43
43
  */
44
44
  destroy(): Promise<void>;
45
45
  }
46
- export interface PostgresPool {
47
- connect(): Promise<PostgresPoolClient>;
48
- end(): Promise<void>;
49
- }
50
- interface PostgresPoolClient {
51
- query<R>(sql: string, parameters: ReadonlyArray<unknown>): Promise<PostgresQueryResult<R>>;
52
- release(): void;
53
- }
54
- interface PostgresQueryResult<R> {
55
- command: 'UPDATE' | 'DELETE' | 'INSERT' | 'SELECT';
56
- rowCount: number;
57
- rows: R[];
58
- }
59
46
  declare class PostgresConnection implements DatabaseConnection {
60
47
  #private;
61
48
  constructor(client: PostgresPoolClient);
@@ -1,30 +1,19 @@
1
1
  /// <reference types="./postgres-driver.d.ts" />
2
2
  import { CompiledQuery } from '../../query-compiler/compiled-query.js';
3
- import { isFunction, freeze, isObject } from '../../util/object-utils.js';
3
+ import { isFunction, freeze } from '../../util/object-utils.js';
4
4
  import { extendStackTrace } from '../../util/stack-trace-utils.js';
5
5
  const PRIVATE_RELEASE_METHOD = Symbol();
6
6
  export class PostgresDriver {
7
7
  #config;
8
8
  #connections = new WeakMap();
9
9
  #pool;
10
- constructor(configOrPool) {
11
- if (isPostgresPool(configOrPool)) {
12
- this.#pool = configOrPool;
13
- }
14
- else {
15
- this.#config = freeze({ ...configOrPool });
16
- }
10
+ constructor(config) {
11
+ this.#config = freeze({ ...config });
17
12
  }
18
13
  async init() {
19
- if (this.#config) {
20
- // Import the `pg` module here instead at the top of the file
21
- // so that this file can be loaded by node without `pg` driver
22
- // installed.
23
- const PoolConstructor = await importPgPool();
24
- // Use the `pg` module's own pool. All drivers should use the
25
- // pool provided by the database library if possible.
26
- this.#pool = new PoolConstructor(this.#config);
27
- }
14
+ this.#pool = isFunction(this.#config.pool)
15
+ ? await this.#config.pool()
16
+ : this.#config.pool;
28
17
  }
29
18
  async acquireConnection() {
30
19
  const client = await this.#pool.connect();
@@ -66,26 +55,6 @@ export class PostgresDriver {
66
55
  }
67
56
  }
68
57
  }
69
- function isPostgresPool(obj) {
70
- return isObject(obj) && isFunction(obj.connect) && isFunction(obj.end);
71
- }
72
- async function importPgPool() {
73
- try {
74
- // The imported module name must be a string literal to make
75
- // some bundlers work. So don't move this code behind a helper
76
- // for example.
77
- const pgModule = await import('pg');
78
- if (isFunction(pgModule.Pool)) {
79
- return pgModule.Pool;
80
- }
81
- else {
82
- return pgModule.default.Pool;
83
- }
84
- }
85
- catch (error) {
86
- throw new Error('Postgres client not installed. Please run `npm install pg`');
87
- }
88
- }
89
58
  class PostgresConnection {
90
59
  #client;
91
60
  constructor(client) {
@@ -1,39 +1,16 @@
1
1
  import { DatabaseConnection } from '../../driver/database-connection.js';
2
2
  /**
3
3
  * Config for the SQLite dialect.
4
- *
5
- * This interface is equal to `better-sqlite3` library's `Databse` class's constructor parameters.
6
- *
7
- * https://github.com/JoshuaWise/better-sqlite3/blob/master/docs/api.md#new-databasepath-options
8
4
  */
9
5
  export interface SqliteDialectConfig {
10
6
  /**
11
- * The database file path.
7
+ * An sqlite Database instance or a function that returns one.
12
8
  *
13
- * This is passed as the first argument for the [Database](https://github.com/JoshuaWise/better-sqlite3/blob/master/docs/api.md#new-databasepath-options)
14
- * class constructor.
15
- */
16
- databasePath: string;
17
- /**
18
- * Open the database connection in readonly mode (default: false)
19
- */
20
- readonly?: boolean;
21
- /**
22
- * If the database does not exist, an Error will be thrown instead of creating a new file.
23
- * This option is ignored for in-memory, temporary, or readonly database connections
24
- * (default: false)
25
- */
26
- fileMustExist?: boolean;
27
- /**
28
- * The number of milliseconds to wait when executing queries on a locked database,
29
- * before throwing a SQLITE_BUSY error (default: 5000)
30
- */
31
- timeout?: number;
32
- /**
33
- * Provide a function that gets called with every SQL string executed by the database connection
34
- * (default: null)
9
+ * If a function is provided, it's called once when the first query is executed.
10
+ *
11
+ * https://github.com/JoshuaWise/better-sqlite3/blob/master/docs/api.md#new-databasepath-options
35
12
  */
36
- verbose?: (sql: string) => void;
13
+ database: SqliteDatabase | (() => Promise<SqliteDatabase>);
37
14
  /**
38
15
  * Called once when the first query is executed.
39
16
  *
@@ -41,3 +18,23 @@ export interface SqliteDialectConfig {
41
18
  */
42
19
  onCreateConnection?: (connection: DatabaseConnection) => Promise<void>;
43
20
  }
21
+ /**
22
+ * This interface is the subset of better-sqlite3 driver's `Database` class that
23
+ * kysely needs.
24
+ *
25
+ * We don't use the type from `better-sqlite3` here to not have a dependency to it.
26
+ *
27
+ * https://github.com/JoshuaWise/better-sqlite3/blob/master/docs/api.md#new-databasepath-options
28
+ */
29
+ export interface SqliteDatabase {
30
+ close(): void;
31
+ prepare(sql: string): SqliteStatement;
32
+ }
33
+ export interface SqliteStatement {
34
+ readonly reader: boolean;
35
+ all(parameters: ReadonlyArray<unknown>): unknown[];
36
+ run(parameters: ReadonlyArray<unknown>): {
37
+ changes: number | bigint;
38
+ lastInsertRowid: number | bigint;
39
+ };
40
+ }
@@ -8,9 +8,25 @@ import { SqliteDialectConfig } from './sqlite-dialect-config.js';
8
8
  /**
9
9
  * SQLite dialect that uses the [better-sqlite3](https://github.com/JoshuaWise/better-sqlite3) library.
10
10
  *
11
- * The {@link SqliteDialectConfig | configuration} is used to construct an instance of
12
- * [Database](https://github.com/JoshuaWise/better-sqlite3/blob/master/docs/api.md#new-databasepath-options)
13
- * class. The configuration values are passed directly to the `Database` constructor.
11
+ * The constructor takes an instance of {@link SqliteDialectConfig}.
12
+ *
13
+ * ```ts
14
+ * import Database from 'better-sqlite3'
15
+ *
16
+ * new SqliteDialect({
17
+ * database: new Database('db.sqlite')
18
+ * })
19
+ * ```
20
+ *
21
+ * If you want the pool to only be created once it's first used, `database`
22
+ * can be a function:
23
+ *
24
+ * ```ts
25
+ * import Database from 'better-sqlite3'
26
+ *
27
+ * new SqliteDialect({
28
+ * database: async () => new Database('db.sqlite')
29
+ * })
14
30
  */
15
31
  export declare class SqliteDialect implements Dialect {
16
32
  #private;
@@ -7,9 +7,25 @@ import { freeze } from '../../util/object-utils.js';
7
7
  /**
8
8
  * SQLite dialect that uses the [better-sqlite3](https://github.com/JoshuaWise/better-sqlite3) library.
9
9
  *
10
- * The {@link SqliteDialectConfig | configuration} is used to construct an instance of
11
- * [Database](https://github.com/JoshuaWise/better-sqlite3/blob/master/docs/api.md#new-databasepath-options)
12
- * class. The configuration values are passed directly to the `Database` constructor.
10
+ * The constructor takes an instance of {@link SqliteDialectConfig}.
11
+ *
12
+ * ```ts
13
+ * import Database from 'better-sqlite3'
14
+ *
15
+ * new SqliteDialect({
16
+ * database: new Database('db.sqlite')
17
+ * })
18
+ * ```
19
+ *
20
+ * If you want the pool to only be created once it's first used, `database`
21
+ * can be a function:
22
+ *
23
+ * ```ts
24
+ * import Database from 'better-sqlite3'
25
+ *
26
+ * new SqliteDialect({
27
+ * database: async () => new Database('db.sqlite')
28
+ * })
13
29
  */
14
30
  export class SqliteDialect {
15
31
  #config;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="./sqlite-driver.d.ts" />
2
2
  import { CompiledQuery } from '../../query-compiler/compiled-query.js';
3
- import { freeze, isBoolean, isFunction, isNumber, } from '../../util/object-utils.js';
3
+ import { freeze, isFunction } from '../../util/object-utils.js';
4
4
  export class SqliteDriver {
5
5
  #config;
6
6
  #connectionMutex = new ConnectionMutex();
@@ -10,26 +10,9 @@ export class SqliteDriver {
10
10
  this.#config = freeze({ ...config });
11
11
  }
12
12
  async init() {
13
- // Import the `better-sqlite3` module here instead at the top of the file
14
- // so that this file can be loaded by node without `better-sqlite3` driver
15
- // installed. As you can see, there IS an import from `better-sqlite3` at
16
- // the top level too, but that's only for types. It doesn't get compiled
17
- // into javascript. You can check the built javascript code.
18
- const DatabaseConstructor = await importBetterSqlite3Database();
19
- const options = {};
20
- if (isBoolean(this.#config.readonly)) {
21
- options.readonly = this.#config.readonly;
22
- }
23
- if (isBoolean(this.#config.fileMustExist)) {
24
- options.fileMustExist = this.#config.fileMustExist;
25
- }
26
- if (isNumber(this.#config.timeout)) {
27
- options.timeout = this.#config.timeout;
28
- }
29
- if (isFunction(this.#config.verbose)) {
30
- options.verbose = this.#config.verbose;
31
- }
32
- this.#db = new DatabaseConstructor(this.#config.databasePath, options);
13
+ this.#db = isFunction(this.#config.database)
14
+ ? await this.#config.database()
15
+ : this.#config.database;
33
16
  this.#connection = new SqliteConnection(this.#db);
34
17
  if (this.#config.onCreateConnection) {
35
18
  await this.#config.onCreateConnection(this.#connection);
@@ -57,23 +40,6 @@ export class SqliteDriver {
57
40
  this.#db?.close();
58
41
  }
59
42
  }
60
- async function importBetterSqlite3Database() {
61
- try {
62
- // The imported module name must be a string literal to make
63
- // some bundlers work. So don't move this code behind a helper
64
- // for example.
65
- const sqliteModule = await import('better-sqlite3');
66
- if (isFunction(sqliteModule)) {
67
- return sqliteModule;
68
- }
69
- else {
70
- return sqliteModule.default;
71
- }
72
- }
73
- catch (error) {
74
- throw new Error('SQLite client not installed. Please run `npm install better-sqlite3`');
75
- }
76
- }
77
43
  class SqliteConnection {
78
44
  #db;
79
45
  constructor(db) {
@@ -1,11 +1,162 @@
1
- export * from './index-nodeless.js';
2
- export * from './migration/file-migration-provider.js';
1
+ export * from './kysely.js';
2
+ export * from './query-creator.js';
3
+ export * from './query-builder/where-interface.js';
4
+ export * from './query-builder/join-interface.js';
5
+ export * from './query-builder/returning-interface.js';
6
+ export * from './query-builder/having-interface.js';
7
+ export * from './query-builder/select-query-builder.js';
8
+ export * from './query-builder/insert-query-builder.js';
9
+ export * from './query-builder/update-query-builder.js';
10
+ export * from './query-builder/delete-query-builder.js';
11
+ export * from './query-builder/no-result-error.js';
12
+ export * from './query-builder/join-builder.js';
13
+ export * from './query-builder/expression-builder.js';
14
+ export * from './query-builder/function-builder.js';
15
+ export * from './query-builder/insert-result.js';
16
+ export * from './query-builder/delete-result.js';
17
+ export * from './query-builder/update-result.js';
18
+ export * from './query-builder/on-conflict-builder.js';
19
+ export * from './raw-builder/raw-builder.js';
20
+ export * from './raw-builder/sql.js';
21
+ export * from './query-executor/query-executor.js';
22
+ export * from './query-executor/default-query-executor.js';
23
+ export * from './query-executor/noop-query-executor.js';
24
+ export * from './query-executor/query-executor-provider.js';
25
+ export * from './query-compiler/default-query-compiler.js';
26
+ export * from './query-compiler/compiled-query.js';
27
+ export * from './schema/schema.js';
28
+ export * from './schema/create-table-builder.js';
29
+ export * from './schema/drop-table-builder.js';
30
+ export * from './schema/create-index-builder.js';
31
+ export * from './schema/drop-index-builder.js';
32
+ export * from './schema/create-schema-builder.js';
33
+ export * from './schema/drop-schema-builder.js';
34
+ export * from './schema/column-definition-builder.js';
35
+ export * from './schema/foreign-key-constraint-builder.js';
36
+ export * from './schema/alter-table-builder.js';
37
+ export * from './schema/create-view-builder.js';
38
+ export * from './schema/drop-view-builder.js';
39
+ export * from './dynamic/dynamic.js';
40
+ export * from './driver/driver.js';
41
+ export * from './driver/database-connection.js';
42
+ export * from './driver/connection-provider.js';
43
+ export * from './driver/default-connection-provider.js';
44
+ export * from './driver/single-connection-provider.js';
45
+ export * from './driver/dummy-driver.js';
46
+ export * from './dialect/dialect.js';
47
+ export * from './dialect/dialect-adapter.js';
48
+ export * from './dialect/dialect-adapter-base.js';
49
+ export * from './dialect/database-introspector.js';
3
50
  export * from './dialect/sqlite/sqlite-dialect.js';
4
51
  export * from './dialect/sqlite/sqlite-dialect-config.js';
5
52
  export * from './dialect/sqlite/sqlite-driver.js';
53
+ export * from './dialect/postgres/postgres-query-compiler.js';
54
+ export * from './dialect/postgres/postgres-introspector.js';
55
+ export * from './dialect/postgres/postgres-adapter.js';
6
56
  export * from './dialect/mysql/mysql-dialect.js';
7
57
  export * from './dialect/mysql/mysql-dialect-config.js';
8
58
  export * from './dialect/mysql/mysql-driver.js';
59
+ export * from './dialect/mysql/mysql-query-compiler.js';
60
+ export * from './dialect/mysql/mysql-introspector.js';
61
+ export * from './dialect/mysql/mysql-adapter.js';
9
62
  export * from './dialect/postgres/postgres-driver.js';
10
63
  export * from './dialect/postgres/postgres-dialect-config.js';
11
64
  export * from './dialect/postgres/postgres-dialect.js';
65
+ export * from './dialect/sqlite/sqlite-query-compiler.js';
66
+ export * from './dialect/sqlite/sqlite-introspector.js';
67
+ export * from './dialect/sqlite/sqlite-adapter.js';
68
+ export * from './query-compiler/default-query-compiler.js';
69
+ export * from './query-compiler/query-compiler.js';
70
+ export * from './migration/migrator.js';
71
+ export * from './migration/file-migration-provider.js';
72
+ export * from './plugin/kysely-plugin.js';
73
+ export * from './plugin/camel-case/camel-case-plugin.js';
74
+ export * from './plugin/deduplicate-joins/deduplicate-joins-plugin.js';
75
+ export * from './operation-node/add-column-node.js';
76
+ export * from './operation-node/add-constraint-node.js';
77
+ export * from './operation-node/alias-node.js';
78
+ export * from './operation-node/alter-column-node.js';
79
+ export * from './operation-node/alter-table-node.js';
80
+ export * from './operation-node/and-node.js';
81
+ export * from './operation-node/check-constraint-node.js';
82
+ export * from './operation-node/column-definition-node.js';
83
+ export * from './operation-node/column-node.js';
84
+ export * from './operation-node/column-update-node.js';
85
+ export * from './operation-node/common-table-expression-node.js';
86
+ export * from './operation-node/common-table-expression-name-node.js';
87
+ export * from './operation-node/constraint-node.js';
88
+ export * from './operation-node/create-index-node.js';
89
+ export * from './operation-node/create-schema-node.js';
90
+ export * from './operation-node/create-table-node.js';
91
+ export * from './operation-node/create-view-node.js';
92
+ export * from './operation-node/data-type-node.js';
93
+ export * from './operation-node/default-value-node.js';
94
+ export * from './operation-node/delete-query-node.js';
95
+ export * from './operation-node/drop-column-node.js';
96
+ export * from './operation-node/drop-constraint-node.js';
97
+ export * from './operation-node/drop-index-node.js';
98
+ export * from './operation-node/drop-schema-node.js';
99
+ export * from './operation-node/drop-table-node.js';
100
+ export * from './operation-node/drop-view-node.js';
101
+ export * from './operation-node/filter-node.js';
102
+ export * from './operation-node/foreign-key-constraint-node.js';
103
+ export * from './operation-node/from-node.js';
104
+ export * from './operation-node/generated-node.js';
105
+ export * from './operation-node/group-by-item-node.js';
106
+ export * from './operation-node/group-by-node.js';
107
+ export * from './operation-node/having-node.js';
108
+ export * from './operation-node/identifier-node.js';
109
+ export * from './operation-node/insert-query-node.js';
110
+ export * from './operation-node/join-node.js';
111
+ export * from './operation-node/limit-node.js';
112
+ export * from './operation-node/list-node.js';
113
+ export * from './operation-node/modify-column-node.js';
114
+ export * from './operation-node/offset-node.js';
115
+ export * from './operation-node/on-conflict-node.js';
116
+ export * from './operation-node/on-duplicate-key-node.js';
117
+ export * from './operation-node/on-node.js';
118
+ export * from './operation-node/operation-node-source.js';
119
+ export * from './operation-node/operation-node-transformer.js';
120
+ export * from './operation-node/operation-node-utils.js';
121
+ export * from './operation-node/operation-node-visitor.js';
122
+ export * from './operation-node/operation-node.js';
123
+ export * from './operation-node/operator-node.js';
124
+ export * from './operation-node/or-node.js';
125
+ export * from './operation-node/order-by-item-node.js';
126
+ export * from './operation-node/order-by-node.js';
127
+ export * from './operation-node/parens-node.js';
128
+ export * from './operation-node/primary-constraint-node.js';
129
+ export * from './operation-node/primitive-value-list-node.js';
130
+ export * from './operation-node/query-node.js';
131
+ export * from './operation-node/raw-node.js';
132
+ export * from './operation-node/reference-node.js';
133
+ export * from './operation-node/references-node.js';
134
+ export * from './operation-node/rename-column-node.js';
135
+ export * from './operation-node/returning-node.js';
136
+ export * from './operation-node/select-all-node.js';
137
+ export * from './operation-node/select-query-node.js';
138
+ export * from './operation-node/select-query-node.js';
139
+ export * from './operation-node/selection-node.js';
140
+ export * from './operation-node/table-node.js';
141
+ export * from './operation-node/union-node.js';
142
+ export * from './operation-node/unique-constraint-node.js';
143
+ export * from './operation-node/update-query-node.js';
144
+ export * from './operation-node/value-list-node.js';
145
+ export * from './operation-node/value-node.js';
146
+ export * from './operation-node/values-node.js';
147
+ export * from './operation-node/where-node.js';
148
+ export * from './operation-node/with-node.js';
149
+ export * from './util/column-type.js';
150
+ export * from './util/compilable.js';
151
+ export * from './util/log.js';
152
+ export { AnyColumn, UnknownRow, AnySelectQueryBuilder, } from './util/type-utils.js';
153
+ export { SelectExpression, SelectExpressionOrList, Selection, } from './parser/select-parser.js';
154
+ export { ReferenceExpression, ReferenceExpressionOrList, } from './parser/reference-parser.js';
155
+ export { ValueExpression, ValueExpressionOrList, } from './parser/value-parser.js';
156
+ export { FilterValueExpression, FilterValueExpressionOrList, ExistsExpression, FilterOperator, } from './parser/filter-parser.js';
157
+ export { TableExpression, TableExpressionOrList, } from './parser/table-parser.js';
158
+ export { JoinReferenceExpression, JoinCallbackExpression, } from './parser/join-parser.js';
159
+ export { InsertObject } from './parser/insert-values-parser.js';
160
+ export { MutationObject } from './parser/update-set-parser.js';
161
+ export { OrderByExpression, OrderByDirectionExpression, } from './parser/order-by-parser.js';
162
+ export { UnionExpression } from './parser/union-parser.js';