kysely 0.15.0 → 0.16.0
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.
- package/README.md +12 -24
- package/dist/cjs/dialect/database-introspector.d.ts +1 -1
- package/dist/cjs/dialect/dialect-adapter-base.d.ts +1 -1
- package/dist/cjs/dialect/dialect-adapter.d.ts +1 -1
- package/dist/cjs/dialect/dialect.d.ts +2 -2
- package/dist/cjs/dialect/mysql/mysql-adapter.d.ts +1 -1
- package/dist/cjs/dialect/mysql/mysql-dialect.d.ts +2 -2
- package/dist/cjs/dialect/mysql/mysql-introspector.d.ts +1 -1
- package/dist/cjs/dialect/postgres/postgres-adapter.d.ts +1 -1
- package/dist/cjs/dialect/postgres/postgres-dialect.d.ts +2 -2
- package/dist/cjs/dialect/postgres/postgres-introspector.d.ts +1 -1
- package/dist/cjs/dialect/sqlite/sqlite-adapter.d.ts +1 -1
- package/dist/cjs/dialect/sqlite/sqlite-dialect.d.ts +2 -2
- package/dist/cjs/dialect/sqlite/sqlite-introspector.d.ts +1 -1
- package/dist/cjs/index-nodeless.d.ts +148 -0
- package/dist/cjs/index-nodeless.js +149 -0
- package/dist/cjs/index.d.ts +6 -153
- package/dist/cjs/index.js +6 -142
- package/dist/cjs/kysely.js +9 -5
- package/dist/cjs/migration/file-migration-provider.d.ts +2 -25
- package/dist/cjs/migration/file-migration-provider.js +8 -17
- package/dist/cjs/migration/migrator.d.ts +2 -15
- package/dist/cjs/migration/migrator.js +2 -15
- package/dist/cjs/parser/join-parser.d.ts +4 -4
- package/dist/cjs/query-builder/delete-query-builder.d.ts +5 -4
- package/dist/cjs/query-builder/insert-query-builder.d.ts +2 -1
- package/dist/cjs/query-builder/join-interface.d.ts +3 -3
- package/dist/cjs/query-builder/returning-interface.d.ts +2 -1
- package/dist/cjs/query-builder/select-query-builder.d.ts +4 -4
- package/dist/cjs/query-builder/update-query-builder.d.ts +5 -4
- package/dist/esm/dialect/database-introspector.d.ts +1 -1
- package/dist/esm/dialect/dialect-adapter-base.d.ts +1 -1
- package/dist/esm/dialect/dialect-adapter.d.ts +1 -1
- package/dist/esm/dialect/dialect.d.ts +2 -2
- package/dist/esm/dialect/mysql/mysql-adapter.d.ts +1 -1
- package/dist/esm/dialect/mysql/mysql-dialect.d.ts +2 -2
- package/dist/esm/dialect/mysql/mysql-introspector.d.ts +1 -1
- package/dist/esm/dialect/postgres/postgres-adapter.d.ts +1 -1
- package/dist/esm/dialect/postgres/postgres-dialect.d.ts +2 -2
- package/dist/esm/dialect/postgres/postgres-introspector.d.ts +1 -1
- package/dist/esm/dialect/sqlite/sqlite-adapter.d.ts +1 -1
- package/dist/esm/dialect/sqlite/sqlite-dialect.d.ts +2 -2
- package/dist/esm/dialect/sqlite/sqlite-introspector.d.ts +1 -1
- package/dist/esm/index-nodeless.d.ts +148 -0
- package/dist/esm/index-nodeless.js +137 -0
- package/dist/esm/index.d.ts +6 -153
- package/dist/esm/index.js +6 -142
- package/dist/esm/kysely.js +9 -5
- package/dist/esm/migration/file-migration-provider.d.ts +2 -25
- package/dist/esm/migration/file-migration-provider.js +8 -17
- package/dist/esm/migration/migrator.d.ts +2 -15
- package/dist/esm/migration/migrator.js +2 -15
- package/dist/esm/parser/join-parser.d.ts +4 -4
- package/dist/esm/query-builder/delete-query-builder.d.ts +5 -4
- package/dist/esm/query-builder/insert-query-builder.d.ts +2 -1
- package/dist/esm/query-builder/join-interface.d.ts +3 -3
- package/dist/esm/query-builder/returning-interface.d.ts +2 -1
- package/dist/esm/query-builder/select-query-builder.d.ts +4 -4
- package/dist/esm/query-builder/update-query-builder.d.ts +5 -4
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -19,17 +19,13 @@ much anything you can think of. Typescript is always there for you offering comp
|
|
|
19
19
|
you build a valid query.
|
|
20
20
|
|
|
21
21
|
Of course there are cases where things cannot be typed at compile time, and Kysely offers escape
|
|
22
|
-
hatches for these situations.
|
|
23
|
-
fail you. With Kysely you can also explicitly tell it to ignore the typings, but the default is always
|
|
24
|
-
type-safety! See the [DynamicModule](https://koskimas.github.io/kysely/classes/DynamicModule.html#ref)
|
|
22
|
+
hatches for these situations. See the [DynamicModule](https://koskimas.github.io/kysely/classes/DynamicModule.html#ref)
|
|
25
23
|
for more info.
|
|
26
24
|
|
|
27
|
-
|
|
28
|
-
using Kysely and can't find something you'd want to use, please open an issue or join our
|
|
25
|
+
If you start using Kysely and can't find something you'd want to use, please open an issue or join our
|
|
29
26
|
[discord server](https://discord.gg/C9aJ49mCra).
|
|
30
27
|
|
|
31
|
-
[
|
|
32
|
-
an introductory blog post.
|
|
28
|
+
You can find a more thorough introduction [here](https://www.jakso.me/blog/kysely-a-type-safe-sql-query-builder-for-typescript).
|
|
33
29
|
|
|
34
30
|
# Table of contents
|
|
35
31
|
|
|
@@ -42,7 +38,7 @@ an introductory blog post.
|
|
|
42
38
|
|
|
43
39
|
# Installation
|
|
44
40
|
|
|
45
|
-
Kysely currently works on PostgreSQL, MySQL and SQLite. You can install it using
|
|
41
|
+
Kysely currently works on PostgreSQL, MySQL and SQLite. You can install it using:
|
|
46
42
|
|
|
47
43
|
```
|
|
48
44
|
# PostgreSQL
|
|
@@ -81,7 +77,7 @@ import {
|
|
|
81
77
|
interface PersonTable {
|
|
82
78
|
// Columns that are generated by the database should be marked
|
|
83
79
|
// using the `Generated` type. This way they are automatically
|
|
84
|
-
// made optional in inserts.
|
|
80
|
+
// made optional in inserts and updates.
|
|
85
81
|
id: Generated<number>
|
|
86
82
|
|
|
87
83
|
first_name: string
|
|
@@ -92,11 +88,11 @@ interface PersonTable {
|
|
|
92
88
|
// automatically by Kysely.
|
|
93
89
|
last_name: string | null
|
|
94
90
|
|
|
95
|
-
// You can specity a type for each operation (select, insert and
|
|
96
|
-
// using the `ColumnType<SelectType, InsertType, UpdateType>`
|
|
97
|
-
// Here we define a column `modified_at` that is selected as
|
|
98
|
-
// can optionally be provided as a `string` in inserts and
|
|
99
|
-
// be updated:
|
|
91
|
+
// You can specity a different type for each operation (select, insert and
|
|
92
|
+
// update) using the `ColumnType<SelectType, InsertType, UpdateType>`
|
|
93
|
+
// wrapper. Here we define a column `modified_at` that is selected as
|
|
94
|
+
// a `Date`, can optionally be provided as a `string` in inserts and
|
|
95
|
+
// can never be updated:
|
|
100
96
|
modified_at: ColumnType<Date, string | undefined, never>
|
|
101
97
|
}
|
|
102
98
|
|
|
@@ -210,7 +206,7 @@ should never depend on the current code of your app because they need to work ev
|
|
|
210
206
|
changes completely. Migrations need to be "frozen in time".
|
|
211
207
|
|
|
212
208
|
The migrations can use the [Kysely.schema](https://koskimas.github.io/kysely/classes/SchemaModule.html)
|
|
213
|
-
module to modify the schema. Migrations can also run normal queries to modify
|
|
209
|
+
module to modify the schema. Migrations can also run normal queries to modify data.
|
|
214
210
|
|
|
215
211
|
### PostgreSQL migration example
|
|
216
212
|
|
|
@@ -307,9 +303,6 @@ need to depend on a typescript compiler, which most production environments don'
|
|
|
307
303
|
have. You will probably want to add a simple migration script to your projects like this:
|
|
308
304
|
|
|
309
305
|
```ts
|
|
310
|
-
import * as path from 'path'
|
|
311
|
-
import * as fs from 'fs/promises'
|
|
312
|
-
|
|
313
306
|
import {
|
|
314
307
|
Kysely,
|
|
315
308
|
Migrator,
|
|
@@ -327,14 +320,9 @@ async function migrateToLatest() {
|
|
|
327
320
|
|
|
328
321
|
const migrator = new Migrator({
|
|
329
322
|
db,
|
|
330
|
-
// The constructor signature of FileMigrationProvider is a
|
|
331
|
-
// bit weird to keep Kysely independent of node.js or any
|
|
332
|
-
// other environment.
|
|
333
323
|
provider: new FileMigrationProvider(
|
|
334
|
-
fs.readdir,
|
|
335
|
-
path.join,
|
|
336
324
|
// Path to the folder that contains all your migrations.
|
|
337
|
-
'migrations'
|
|
325
|
+
'some/path/to/migrations'
|
|
338
326
|
)
|
|
339
327
|
})
|
|
340
328
|
|
|
@@ -4,7 +4,7 @@ import { ColumnDataType } from '../operation-node/data-type-node.js';
|
|
|
4
4
|
*/
|
|
5
5
|
export interface DatabaseIntrospector {
|
|
6
6
|
/**
|
|
7
|
-
* Get the database metadata such as
|
|
7
|
+
* Get the database metadata such as table and column names.
|
|
8
8
|
*/
|
|
9
9
|
getMetadata(options?: DatabaseMetadataOptions): Promise<DatabaseMetadata>;
|
|
10
10
|
}
|
|
@@ -20,7 +20,7 @@ export declare abstract class DialectAdapterBase implements DialectAdapter {
|
|
|
20
20
|
get supportsReturning(): boolean;
|
|
21
21
|
/**
|
|
22
22
|
* This method is used to acquire a lock for the migrations so that
|
|
23
|
-
* it's not possible for two migration
|
|
23
|
+
* it's not possible for two migration operations to run in parallel.
|
|
24
24
|
*
|
|
25
25
|
* Most dialects have explicit locks that can be used, like advisory locks
|
|
26
26
|
* in PostgreSQL and the get_lock function in MySQL.
|
|
@@ -21,7 +21,7 @@ export interface DialectAdapter {
|
|
|
21
21
|
readonly supportsReturning: boolean;
|
|
22
22
|
/**
|
|
23
23
|
* This method is used to acquire a lock for the migrations so that
|
|
24
|
-
* it's not possible for two migration
|
|
24
|
+
* it's not possible for two migration operations to run in parallel.
|
|
25
25
|
*
|
|
26
26
|
* Most dialects have explicit locks that can be used, like advisory locks
|
|
27
27
|
* in PostgreSQL and the get_lock function in MySQL.
|
|
@@ -24,8 +24,8 @@ export interface Dialect {
|
|
|
24
24
|
*/
|
|
25
25
|
createAdapter(): DialectAdapter;
|
|
26
26
|
/**
|
|
27
|
-
* Creates a database introspector that can be used to get
|
|
28
|
-
* such as the
|
|
27
|
+
* Creates a database introspector that can be used to get database metadata
|
|
28
|
+
* such as the table names and column names of those tables.
|
|
29
29
|
*
|
|
30
30
|
* `db` never has any plugins installed. It's created using
|
|
31
31
|
* {@link Kysely.withoutPlugins}.
|
|
@@ -14,7 +14,7 @@ export declare class MysqlAdapter extends DialectAdapterBase {
|
|
|
14
14
|
get supportsReturning(): boolean;
|
|
15
15
|
/**
|
|
16
16
|
* This method is used to acquire a lock for the migrations so that
|
|
17
|
-
* it's not possible for two migration
|
|
17
|
+
* it's not possible for two migration operations to run in parallel.
|
|
18
18
|
*
|
|
19
19
|
* Most dialects have explicit locks that can be used, like advisory locks
|
|
20
20
|
* in PostgreSQL and the get_lock function in MySQL.
|
|
@@ -28,8 +28,8 @@ export declare class MysqlDialect implements Dialect {
|
|
|
28
28
|
*/
|
|
29
29
|
createAdapter(): DialectAdapter;
|
|
30
30
|
/**
|
|
31
|
-
* Creates a database introspector that can be used to get
|
|
32
|
-
* such as the
|
|
31
|
+
* Creates a database introspector that can be used to get database metadata
|
|
32
|
+
* such as the table names and column names of those tables.
|
|
33
33
|
*
|
|
34
34
|
* `db` never has any plugins installed. It's created using
|
|
35
35
|
* {@link Kysely.withoutPlugins}.
|
|
@@ -4,7 +4,7 @@ export declare class MysqlIntrospector implements DatabaseIntrospector {
|
|
|
4
4
|
#private;
|
|
5
5
|
constructor(db: Kysely<any>);
|
|
6
6
|
/**
|
|
7
|
-
* Get the database metadata such as
|
|
7
|
+
* Get the database metadata such as table and column names.
|
|
8
8
|
*/
|
|
9
9
|
getMetadata(options?: DatabaseMetadataOptions): Promise<DatabaseMetadata>;
|
|
10
10
|
}
|
|
@@ -14,7 +14,7 @@ export declare class PostgresAdapter extends DialectAdapterBase {
|
|
|
14
14
|
get supportsReturning(): boolean;
|
|
15
15
|
/**
|
|
16
16
|
* This method is used to acquire a lock for the migrations so that
|
|
17
|
-
* it's not possible for two migration
|
|
17
|
+
* it's not possible for two migration operations to run in parallel.
|
|
18
18
|
*
|
|
19
19
|
* Most dialects have explicit locks that can be used, like advisory locks
|
|
20
20
|
* in PostgreSQL and the get_lock function in MySQL.
|
|
@@ -34,8 +34,8 @@ export declare class PostgresDialect implements Dialect {
|
|
|
34
34
|
*/
|
|
35
35
|
createAdapter(): DialectAdapter;
|
|
36
36
|
/**
|
|
37
|
-
* Creates a database introspector that can be used to get
|
|
38
|
-
* such as the
|
|
37
|
+
* Creates a database introspector that can be used to get database metadata
|
|
38
|
+
* such as the table names and column names of those tables.
|
|
39
39
|
*
|
|
40
40
|
* `db` never has any plugins installed. It's created using
|
|
41
41
|
* {@link Kysely.withoutPlugins}.
|
|
@@ -4,7 +4,7 @@ export declare class PostgresIntrospector implements DatabaseIntrospector {
|
|
|
4
4
|
#private;
|
|
5
5
|
constructor(db: Kysely<any>);
|
|
6
6
|
/**
|
|
7
|
-
* Get the database metadata such as
|
|
7
|
+
* Get the database metadata such as table and column names.
|
|
8
8
|
*/
|
|
9
9
|
getMetadata(options?: DatabaseMetadataOptions): Promise<DatabaseMetadata>;
|
|
10
10
|
}
|
|
@@ -13,7 +13,7 @@ export declare class SqliteAdapter implements DialectAdapterBase {
|
|
|
13
13
|
get supportsReturning(): boolean;
|
|
14
14
|
/**
|
|
15
15
|
* This method is used to acquire a lock for the migrations so that
|
|
16
|
-
* it's not possible for two migration
|
|
16
|
+
* it's not possible for two migration operations to run in parallel.
|
|
17
17
|
*
|
|
18
18
|
* Most dialects have explicit locks that can be used, like advisory locks
|
|
19
19
|
* in PostgreSQL and the get_lock function in MySQL.
|
|
@@ -28,8 +28,8 @@ export declare class SqliteDialect implements Dialect {
|
|
|
28
28
|
*/
|
|
29
29
|
createAdapter(): DialectAdapter;
|
|
30
30
|
/**
|
|
31
|
-
* Creates a database introspector that can be used to get
|
|
32
|
-
* such as the
|
|
31
|
+
* Creates a database introspector that can be used to get database metadata
|
|
32
|
+
* such as the table names and column names of those tables.
|
|
33
33
|
*
|
|
34
34
|
* `db` never has any plugins installed. It's created using
|
|
35
35
|
* {@link Kysely.withoutPlugins}.
|
|
@@ -4,7 +4,7 @@ export declare class SqliteIntrospector implements DatabaseIntrospector {
|
|
|
4
4
|
#private;
|
|
5
5
|
constructor(db: Kysely<any>);
|
|
6
6
|
/**
|
|
7
|
-
* Get the database metadata such as
|
|
7
|
+
* Get the database metadata such as table and column names.
|
|
8
8
|
*/
|
|
9
9
|
getMetadata(options?: DatabaseMetadataOptions): Promise<DatabaseMetadata>;
|
|
10
10
|
}
|
|
@@ -0,0 +1,148 @@
|
|
|
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 './query-executor/query-executor.js';
|
|
21
|
+
export * from './query-executor/default-query-executor.js';
|
|
22
|
+
export * from './query-executor/noop-query-executor.js';
|
|
23
|
+
export * from './query-compiler/default-query-compiler.js';
|
|
24
|
+
export * from './query-compiler/compiled-query.js';
|
|
25
|
+
export * from './schema/schema.js';
|
|
26
|
+
export * from './schema/create-table-builder.js';
|
|
27
|
+
export * from './schema/drop-table-builder.js';
|
|
28
|
+
export * from './schema/create-index-builder.js';
|
|
29
|
+
export * from './schema/drop-index-builder.js';
|
|
30
|
+
export * from './schema/create-schema-builder.js';
|
|
31
|
+
export * from './schema/drop-schema-builder.js';
|
|
32
|
+
export * from './schema/column-definition-builder.js';
|
|
33
|
+
export * from './schema/foreign-key-constraint-builder.js';
|
|
34
|
+
export * from './schema/alter-table-builder.js';
|
|
35
|
+
export * from './schema/create-view-builder.js';
|
|
36
|
+
export * from './schema/drop-view-builder.js';
|
|
37
|
+
export * from './dynamic/dynamic.js';
|
|
38
|
+
export * from './driver/driver.js';
|
|
39
|
+
export * from './driver/database-connection.js';
|
|
40
|
+
export * from './driver/connection-provider.js';
|
|
41
|
+
export * from './driver/default-connection-provider.js';
|
|
42
|
+
export * from './driver/single-connection-provider.js';
|
|
43
|
+
export * from './dialect/dialect.js';
|
|
44
|
+
export * from './dialect/dialect-adapter.js';
|
|
45
|
+
export * from './dialect/dialect-adapter-base.js';
|
|
46
|
+
export * from './dialect/database-introspector.js';
|
|
47
|
+
export * from './dialect/postgres/postgres-query-compiler.js';
|
|
48
|
+
export * from './dialect/postgres/postgres-introspector.js';
|
|
49
|
+
export * from './dialect/postgres/postgres-adapter.js';
|
|
50
|
+
export * from './dialect/mysql/mysql-query-compiler.js';
|
|
51
|
+
export * from './dialect/mysql/mysql-introspector.js';
|
|
52
|
+
export * from './dialect/mysql/mysql-adapter.js';
|
|
53
|
+
export * from './dialect/sqlite/sqlite-query-compiler.js';
|
|
54
|
+
export * from './dialect/sqlite/sqlite-introspector.js';
|
|
55
|
+
export * from './dialect/sqlite/sqlite-adapter.js';
|
|
56
|
+
export * from './query-compiler/default-query-compiler.js';
|
|
57
|
+
export * from './query-compiler/query-compiler.js';
|
|
58
|
+
export * from './migration/migrator.js';
|
|
59
|
+
export * from './plugin/kysely-plugin.js';
|
|
60
|
+
export * from './plugin/camel-case/camel-case-plugin.js';
|
|
61
|
+
export * from './operation-node/add-column-node.js';
|
|
62
|
+
export * from './operation-node/add-constraint-node.js';
|
|
63
|
+
export * from './operation-node/alias-node.js';
|
|
64
|
+
export * from './operation-node/alter-column-node.js';
|
|
65
|
+
export * from './operation-node/alter-table-node.js';
|
|
66
|
+
export * from './operation-node/and-node.js';
|
|
67
|
+
export * from './operation-node/check-constraint-node.js';
|
|
68
|
+
export * from './operation-node/column-definition-node.js';
|
|
69
|
+
export * from './operation-node/column-node.js';
|
|
70
|
+
export * from './operation-node/column-update-node.js';
|
|
71
|
+
export * from './operation-node/common-table-expression-node.js';
|
|
72
|
+
export * from './operation-node/common-table-expression-name-node.js';
|
|
73
|
+
export * from './operation-node/constraint-node.js';
|
|
74
|
+
export * from './operation-node/create-index-node.js';
|
|
75
|
+
export * from './operation-node/create-schema-node.js';
|
|
76
|
+
export * from './operation-node/create-table-node.js';
|
|
77
|
+
export * from './operation-node/create-view-node.js';
|
|
78
|
+
export * from './operation-node/data-type-node.js';
|
|
79
|
+
export * from './operation-node/default-value-node.js';
|
|
80
|
+
export * from './operation-node/delete-query-node.js';
|
|
81
|
+
export * from './operation-node/drop-column-node.js';
|
|
82
|
+
export * from './operation-node/drop-constraint-node.js';
|
|
83
|
+
export * from './operation-node/drop-index-node.js';
|
|
84
|
+
export * from './operation-node/drop-schema-node.js';
|
|
85
|
+
export * from './operation-node/drop-table-node.js';
|
|
86
|
+
export * from './operation-node/drop-view-node.js';
|
|
87
|
+
export * from './operation-node/filter-node.js';
|
|
88
|
+
export * from './operation-node/foreign-key-constraint-node.js';
|
|
89
|
+
export * from './operation-node/from-node.js';
|
|
90
|
+
export * from './operation-node/generated-node.js';
|
|
91
|
+
export * from './operation-node/group-by-item-node.js';
|
|
92
|
+
export * from './operation-node/group-by-node.js';
|
|
93
|
+
export * from './operation-node/having-node.js';
|
|
94
|
+
export * from './operation-node/identifier-node.js';
|
|
95
|
+
export * from './operation-node/insert-query-node.js';
|
|
96
|
+
export * from './operation-node/join-node.js';
|
|
97
|
+
export * from './operation-node/limit-node.js';
|
|
98
|
+
export * from './operation-node/list-node.js';
|
|
99
|
+
export * from './operation-node/modify-column-node.js';
|
|
100
|
+
export * from './operation-node/offset-node.js';
|
|
101
|
+
export * from './operation-node/on-conflict-node.js';
|
|
102
|
+
export * from './operation-node/on-duplicate-key-node.js';
|
|
103
|
+
export * from './operation-node/on-node.js';
|
|
104
|
+
export * from './operation-node/operation-node-source.js';
|
|
105
|
+
export * from './operation-node/operation-node-transformer.js';
|
|
106
|
+
export * from './operation-node/operation-node-utils.js';
|
|
107
|
+
export * from './operation-node/operation-node-visitor.js';
|
|
108
|
+
export * from './operation-node/operation-node.js';
|
|
109
|
+
export * from './operation-node/operator-node.js';
|
|
110
|
+
export * from './operation-node/or-node.js';
|
|
111
|
+
export * from './operation-node/order-by-item-node.js';
|
|
112
|
+
export * from './operation-node/order-by-node.js';
|
|
113
|
+
export * from './operation-node/parens-node.js';
|
|
114
|
+
export * from './operation-node/primary-constraint-node.js';
|
|
115
|
+
export * from './operation-node/primitive-value-list-node.js';
|
|
116
|
+
export * from './operation-node/query-node.js';
|
|
117
|
+
export * from './operation-node/raw-node.js';
|
|
118
|
+
export * from './operation-node/reference-node.js';
|
|
119
|
+
export * from './operation-node/references-node.js';
|
|
120
|
+
export * from './operation-node/rename-column-node.js';
|
|
121
|
+
export * from './operation-node/returning-node.js';
|
|
122
|
+
export * from './operation-node/select-all-node.js';
|
|
123
|
+
export * from './operation-node/select-query-node.js';
|
|
124
|
+
export * from './operation-node/select-query-node.js';
|
|
125
|
+
export * from './operation-node/selection-node.js';
|
|
126
|
+
export * from './operation-node/table-node.js';
|
|
127
|
+
export * from './operation-node/union-node.js';
|
|
128
|
+
export * from './operation-node/unique-constraint-node.js';
|
|
129
|
+
export * from './operation-node/update-query-node.js';
|
|
130
|
+
export * from './operation-node/value-list-node.js';
|
|
131
|
+
export * from './operation-node/value-node.js';
|
|
132
|
+
export * from './operation-node/values-node.js';
|
|
133
|
+
export * from './operation-node/where-node.js';
|
|
134
|
+
export * from './operation-node/with-node.js';
|
|
135
|
+
export * from './util/column-type.js';
|
|
136
|
+
export * from './util/compilable.js';
|
|
137
|
+
export * from './util/log.js';
|
|
138
|
+
export { AnyColumn, UnknownRow, AnySelectQueryBuilder, } from './util/type-utils.js';
|
|
139
|
+
export { SelectExpression, SelectExpressionOrList, Selection, } from './parser/select-parser.js';
|
|
140
|
+
export { ReferenceExpression, ReferenceExpressionOrList, } from './parser/reference-parser.js';
|
|
141
|
+
export { ValueExpression, ValueExpressionOrList, } from './parser/value-parser.js';
|
|
142
|
+
export { FilterValueExpression, FilterValueExpressionOrList, ExistsExpression, FilterOperator, } from './parser/filter-parser.js';
|
|
143
|
+
export { TableExpression, TableExpressionOrList, } from './parser/table-parser.js';
|
|
144
|
+
export { JoinReferenceExpression, JoinCallbackExpression, } from './parser/join-parser.js';
|
|
145
|
+
export { InsertObject } from './parser/insert-values-parser.js';
|
|
146
|
+
export { MutationObject } from './parser/update-set-parser.js';
|
|
147
|
+
export { OrderByExpression, OrderByDirectionExpression, } from './parser/order-by-parser.js';
|
|
148
|
+
export { UnionExpression } from './parser/union-parser.js';
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./kysely.js"), exports);
|
|
14
|
+
__exportStar(require("./query-creator.js"), exports);
|
|
15
|
+
__exportStar(require("./query-builder/where-interface.js"), exports);
|
|
16
|
+
__exportStar(require("./query-builder/join-interface.js"), exports);
|
|
17
|
+
__exportStar(require("./query-builder/returning-interface.js"), exports);
|
|
18
|
+
__exportStar(require("./query-builder/having-interface.js"), exports);
|
|
19
|
+
__exportStar(require("./query-builder/select-query-builder.js"), exports);
|
|
20
|
+
__exportStar(require("./query-builder/insert-query-builder.js"), exports);
|
|
21
|
+
__exportStar(require("./query-builder/update-query-builder.js"), exports);
|
|
22
|
+
__exportStar(require("./query-builder/delete-query-builder.js"), exports);
|
|
23
|
+
__exportStar(require("./query-builder/no-result-error.js"), exports);
|
|
24
|
+
__exportStar(require("./query-builder/join-builder.js"), exports);
|
|
25
|
+
__exportStar(require("./query-builder/expression-builder.js"), exports);
|
|
26
|
+
__exportStar(require("./query-builder/function-builder.js"), exports);
|
|
27
|
+
__exportStar(require("./query-builder/insert-result.js"), exports);
|
|
28
|
+
__exportStar(require("./query-builder/delete-result.js"), exports);
|
|
29
|
+
__exportStar(require("./query-builder/update-result.js"), exports);
|
|
30
|
+
__exportStar(require("./query-builder/on-conflict-builder.js"), exports);
|
|
31
|
+
__exportStar(require("./raw-builder/raw-builder.js"), exports);
|
|
32
|
+
__exportStar(require("./query-executor/query-executor.js"), exports);
|
|
33
|
+
__exportStar(require("./query-executor/default-query-executor.js"), exports);
|
|
34
|
+
__exportStar(require("./query-executor/noop-query-executor.js"), exports);
|
|
35
|
+
__exportStar(require("./query-compiler/default-query-compiler.js"), exports);
|
|
36
|
+
__exportStar(require("./query-compiler/compiled-query.js"), exports);
|
|
37
|
+
__exportStar(require("./schema/schema.js"), exports);
|
|
38
|
+
__exportStar(require("./schema/create-table-builder.js"), exports);
|
|
39
|
+
__exportStar(require("./schema/drop-table-builder.js"), exports);
|
|
40
|
+
__exportStar(require("./schema/create-index-builder.js"), exports);
|
|
41
|
+
__exportStar(require("./schema/drop-index-builder.js"), exports);
|
|
42
|
+
__exportStar(require("./schema/create-schema-builder.js"), exports);
|
|
43
|
+
__exportStar(require("./schema/drop-schema-builder.js"), exports);
|
|
44
|
+
__exportStar(require("./schema/column-definition-builder.js"), exports);
|
|
45
|
+
__exportStar(require("./schema/foreign-key-constraint-builder.js"), exports);
|
|
46
|
+
__exportStar(require("./schema/alter-table-builder.js"), exports);
|
|
47
|
+
__exportStar(require("./schema/create-view-builder.js"), exports);
|
|
48
|
+
__exportStar(require("./schema/drop-view-builder.js"), exports);
|
|
49
|
+
__exportStar(require("./dynamic/dynamic.js"), exports);
|
|
50
|
+
__exportStar(require("./driver/driver.js"), exports);
|
|
51
|
+
__exportStar(require("./driver/database-connection.js"), exports);
|
|
52
|
+
__exportStar(require("./driver/connection-provider.js"), exports);
|
|
53
|
+
__exportStar(require("./driver/default-connection-provider.js"), exports);
|
|
54
|
+
__exportStar(require("./driver/single-connection-provider.js"), exports);
|
|
55
|
+
__exportStar(require("./dialect/dialect.js"), exports);
|
|
56
|
+
__exportStar(require("./dialect/dialect-adapter.js"), exports);
|
|
57
|
+
__exportStar(require("./dialect/dialect-adapter-base.js"), exports);
|
|
58
|
+
__exportStar(require("./dialect/database-introspector.js"), exports);
|
|
59
|
+
__exportStar(require("./dialect/postgres/postgres-query-compiler.js"), exports);
|
|
60
|
+
__exportStar(require("./dialect/postgres/postgres-introspector.js"), exports);
|
|
61
|
+
__exportStar(require("./dialect/postgres/postgres-adapter.js"), exports);
|
|
62
|
+
__exportStar(require("./dialect/mysql/mysql-query-compiler.js"), exports);
|
|
63
|
+
__exportStar(require("./dialect/mysql/mysql-introspector.js"), exports);
|
|
64
|
+
__exportStar(require("./dialect/mysql/mysql-adapter.js"), exports);
|
|
65
|
+
__exportStar(require("./dialect/sqlite/sqlite-query-compiler.js"), exports);
|
|
66
|
+
__exportStar(require("./dialect/sqlite/sqlite-introspector.js"), exports);
|
|
67
|
+
__exportStar(require("./dialect/sqlite/sqlite-adapter.js"), exports);
|
|
68
|
+
__exportStar(require("./query-compiler/default-query-compiler.js"), exports);
|
|
69
|
+
__exportStar(require("./query-compiler/query-compiler.js"), exports);
|
|
70
|
+
__exportStar(require("./migration/migrator.js"), exports);
|
|
71
|
+
__exportStar(require("./plugin/kysely-plugin.js"), exports);
|
|
72
|
+
__exportStar(require("./plugin/camel-case/camel-case-plugin.js"), exports);
|
|
73
|
+
__exportStar(require("./operation-node/add-column-node.js"), exports);
|
|
74
|
+
__exportStar(require("./operation-node/add-constraint-node.js"), exports);
|
|
75
|
+
__exportStar(require("./operation-node/alias-node.js"), exports);
|
|
76
|
+
__exportStar(require("./operation-node/alter-column-node.js"), exports);
|
|
77
|
+
__exportStar(require("./operation-node/alter-table-node.js"), exports);
|
|
78
|
+
__exportStar(require("./operation-node/and-node.js"), exports);
|
|
79
|
+
__exportStar(require("./operation-node/check-constraint-node.js"), exports);
|
|
80
|
+
__exportStar(require("./operation-node/column-definition-node.js"), exports);
|
|
81
|
+
__exportStar(require("./operation-node/column-node.js"), exports);
|
|
82
|
+
__exportStar(require("./operation-node/column-update-node.js"), exports);
|
|
83
|
+
__exportStar(require("./operation-node/common-table-expression-node.js"), exports);
|
|
84
|
+
__exportStar(require("./operation-node/common-table-expression-name-node.js"), exports);
|
|
85
|
+
__exportStar(require("./operation-node/constraint-node.js"), exports);
|
|
86
|
+
__exportStar(require("./operation-node/create-index-node.js"), exports);
|
|
87
|
+
__exportStar(require("./operation-node/create-schema-node.js"), exports);
|
|
88
|
+
__exportStar(require("./operation-node/create-table-node.js"), exports);
|
|
89
|
+
__exportStar(require("./operation-node/create-view-node.js"), exports);
|
|
90
|
+
__exportStar(require("./operation-node/data-type-node.js"), exports);
|
|
91
|
+
__exportStar(require("./operation-node/default-value-node.js"), exports);
|
|
92
|
+
__exportStar(require("./operation-node/delete-query-node.js"), exports);
|
|
93
|
+
__exportStar(require("./operation-node/drop-column-node.js"), exports);
|
|
94
|
+
__exportStar(require("./operation-node/drop-constraint-node.js"), exports);
|
|
95
|
+
__exportStar(require("./operation-node/drop-index-node.js"), exports);
|
|
96
|
+
__exportStar(require("./operation-node/drop-schema-node.js"), exports);
|
|
97
|
+
__exportStar(require("./operation-node/drop-table-node.js"), exports);
|
|
98
|
+
__exportStar(require("./operation-node/drop-view-node.js"), exports);
|
|
99
|
+
__exportStar(require("./operation-node/filter-node.js"), exports);
|
|
100
|
+
__exportStar(require("./operation-node/foreign-key-constraint-node.js"), exports);
|
|
101
|
+
__exportStar(require("./operation-node/from-node.js"), exports);
|
|
102
|
+
__exportStar(require("./operation-node/generated-node.js"), exports);
|
|
103
|
+
__exportStar(require("./operation-node/group-by-item-node.js"), exports);
|
|
104
|
+
__exportStar(require("./operation-node/group-by-node.js"), exports);
|
|
105
|
+
__exportStar(require("./operation-node/having-node.js"), exports);
|
|
106
|
+
__exportStar(require("./operation-node/identifier-node.js"), exports);
|
|
107
|
+
__exportStar(require("./operation-node/insert-query-node.js"), exports);
|
|
108
|
+
__exportStar(require("./operation-node/join-node.js"), exports);
|
|
109
|
+
__exportStar(require("./operation-node/limit-node.js"), exports);
|
|
110
|
+
__exportStar(require("./operation-node/list-node.js"), exports);
|
|
111
|
+
__exportStar(require("./operation-node/modify-column-node.js"), exports);
|
|
112
|
+
__exportStar(require("./operation-node/offset-node.js"), exports);
|
|
113
|
+
__exportStar(require("./operation-node/on-conflict-node.js"), exports);
|
|
114
|
+
__exportStar(require("./operation-node/on-duplicate-key-node.js"), exports);
|
|
115
|
+
__exportStar(require("./operation-node/on-node.js"), exports);
|
|
116
|
+
__exportStar(require("./operation-node/operation-node-source.js"), exports);
|
|
117
|
+
__exportStar(require("./operation-node/operation-node-transformer.js"), exports);
|
|
118
|
+
__exportStar(require("./operation-node/operation-node-utils.js"), exports);
|
|
119
|
+
__exportStar(require("./operation-node/operation-node-visitor.js"), exports);
|
|
120
|
+
__exportStar(require("./operation-node/operation-node.js"), exports);
|
|
121
|
+
__exportStar(require("./operation-node/operator-node.js"), exports);
|
|
122
|
+
__exportStar(require("./operation-node/or-node.js"), exports);
|
|
123
|
+
__exportStar(require("./operation-node/order-by-item-node.js"), exports);
|
|
124
|
+
__exportStar(require("./operation-node/order-by-node.js"), exports);
|
|
125
|
+
__exportStar(require("./operation-node/parens-node.js"), exports);
|
|
126
|
+
__exportStar(require("./operation-node/primary-constraint-node.js"), exports);
|
|
127
|
+
__exportStar(require("./operation-node/primitive-value-list-node.js"), exports);
|
|
128
|
+
__exportStar(require("./operation-node/query-node.js"), exports);
|
|
129
|
+
__exportStar(require("./operation-node/raw-node.js"), exports);
|
|
130
|
+
__exportStar(require("./operation-node/reference-node.js"), exports);
|
|
131
|
+
__exportStar(require("./operation-node/references-node.js"), exports);
|
|
132
|
+
__exportStar(require("./operation-node/rename-column-node.js"), exports);
|
|
133
|
+
__exportStar(require("./operation-node/returning-node.js"), exports);
|
|
134
|
+
__exportStar(require("./operation-node/select-all-node.js"), exports);
|
|
135
|
+
__exportStar(require("./operation-node/select-query-node.js"), exports);
|
|
136
|
+
__exportStar(require("./operation-node/select-query-node.js"), exports);
|
|
137
|
+
__exportStar(require("./operation-node/selection-node.js"), exports);
|
|
138
|
+
__exportStar(require("./operation-node/table-node.js"), exports);
|
|
139
|
+
__exportStar(require("./operation-node/union-node.js"), exports);
|
|
140
|
+
__exportStar(require("./operation-node/unique-constraint-node.js"), exports);
|
|
141
|
+
__exportStar(require("./operation-node/update-query-node.js"), exports);
|
|
142
|
+
__exportStar(require("./operation-node/value-list-node.js"), exports);
|
|
143
|
+
__exportStar(require("./operation-node/value-node.js"), exports);
|
|
144
|
+
__exportStar(require("./operation-node/values-node.js"), exports);
|
|
145
|
+
__exportStar(require("./operation-node/where-node.js"), exports);
|
|
146
|
+
__exportStar(require("./operation-node/with-node.js"), exports);
|
|
147
|
+
__exportStar(require("./util/column-type.js"), exports);
|
|
148
|
+
__exportStar(require("./util/compilable.js"), exports);
|
|
149
|
+
__exportStar(require("./util/log.js"), exports);
|