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
|
@@ -731,7 +731,7 @@ export declare class SelectQueryBuilder<DB, TB extends keyof DB, O> implements W
|
|
|
731
731
|
*/
|
|
732
732
|
selectAll<T extends TB>(table: ReadonlyArray<T>): SelectAllQueryBuilder<DB, TB, O, T>;
|
|
733
733
|
selectAll<T extends TB>(table: T): SelectAllQueryBuilder<DB, TB, O, T>;
|
|
734
|
-
selectAll
|
|
734
|
+
selectAll(): SelectAllQueryBuilder<DB, TB, O, TB>;
|
|
735
735
|
/**
|
|
736
736
|
* Joins another table to the query using an inner join.
|
|
737
737
|
*
|
|
@@ -811,13 +811,13 @@ export declare class SelectQueryBuilder<DB, TB extends keyof DB, O> implements W
|
|
|
811
811
|
* and "pet"."name" = $1
|
|
812
812
|
* ```
|
|
813
813
|
*
|
|
814
|
-
* You can join a subquery by providing a
|
|
815
|
-
* argument:
|
|
814
|
+
* You can join a subquery by providing a select query (or a callback)
|
|
815
|
+
* as the first argument:
|
|
816
816
|
*
|
|
817
817
|
* ```ts
|
|
818
818
|
* await db.selectFrom('person')
|
|
819
819
|
* .innerJoin(
|
|
820
|
-
*
|
|
820
|
+
* qb.selectFrom('pet')
|
|
821
821
|
* .select(['owner_id', 'name'])
|
|
822
822
|
* .where('name', '=', 'Doggo')
|
|
823
823
|
* .as('doggos'),
|
|
@@ -18,6 +18,7 @@ import { WhereInterface } from './where-interface.js';
|
|
|
18
18
|
import { JoinInterface } from './join-interface.js';
|
|
19
19
|
import { ReturningInterface } from './returning-interface.js';
|
|
20
20
|
import { NoResultErrorConstructor } from './no-result-error.js';
|
|
21
|
+
import { Selectable } from '../util/column-type.js';
|
|
21
22
|
export declare class UpdateQueryBuilder<DB, TB extends keyof DB, O> implements WhereInterface<DB, TB>, JoinInterface<DB, TB>, ReturningInterface<DB, TB, O>, OperationNodeSource, Compilable {
|
|
22
23
|
#private;
|
|
23
24
|
constructor(props: UpdateQueryBuilderProps);
|
|
@@ -473,13 +474,13 @@ export declare class UpdateQueryBuilder<DB, TB extends keyof DB, O> implements W
|
|
|
473
474
|
* and "pet"."name" = $1
|
|
474
475
|
* ```
|
|
475
476
|
*
|
|
476
|
-
* You can join a subquery by providing a
|
|
477
|
-
* argument:
|
|
477
|
+
* You can join a subquery by providing a select query (or a callback)
|
|
478
|
+
* as the first argument:
|
|
478
479
|
*
|
|
479
480
|
* ```ts
|
|
480
481
|
* await db.selectFrom('person')
|
|
481
482
|
* .innerJoin(
|
|
482
|
-
*
|
|
483
|
+
* qb.selectFrom('pet')
|
|
483
484
|
* .select(['owner_id', 'name'])
|
|
484
485
|
* .where('name', '=', 'Doggo')
|
|
485
486
|
* .as('doggos'),
|
|
@@ -671,7 +672,7 @@ export declare class UpdateQueryBuilder<DB, TB extends keyof DB, O> implements W
|
|
|
671
672
|
* Adds a `returning *` to an insert/update/delete query on databases
|
|
672
673
|
* that support `returning` such as PostgreSQL.
|
|
673
674
|
*/
|
|
674
|
-
returningAll(): UpdateQueryBuilder<DB, TB, DB[TB]
|
|
675
|
+
returningAll(): UpdateQueryBuilder<DB, TB, Selectable<DB[TB]>>;
|
|
675
676
|
/**
|
|
676
677
|
* Simply calls the given function passing `this` as the only argument.
|
|
677
678
|
*
|
|
@@ -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,137 @@
|
|
|
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';
|