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.
- package/README.md +22 -17
- package/dist/cjs/dialect/mysql/mysql-dialect-config.d.ts +24 -207
- package/dist/cjs/dialect/mysql/mysql-dialect.d.ts +22 -7
- package/dist/cjs/dialect/mysql/mysql-dialect.js +25 -9
- package/dist/cjs/dialect/mysql/mysql-driver.d.ts +2 -15
- package/dist/cjs/dialect/mysql/mysql-driver.js +4 -35
- package/dist/cjs/dialect/mysql/mysql-introspector.js +2 -6
- package/dist/cjs/dialect/postgres/postgres-dialect-config.d.ts +25 -89
- package/dist/cjs/dialect/postgres/postgres-dialect.d.ts +21 -9
- package/dist/cjs/dialect/postgres/postgres-dialect.js +24 -11
- package/dist/cjs/dialect/postgres/postgres-driver.d.ts +2 -15
- package/dist/cjs/dialect/postgres/postgres-driver.js +5 -36
- package/dist/cjs/dialect/sqlite/sqlite-dialect-config.d.ts +25 -28
- package/dist/cjs/dialect/sqlite/sqlite-dialect.d.ts +19 -3
- package/dist/cjs/dialect/sqlite/sqlite-dialect.js +19 -3
- package/dist/cjs/dialect/sqlite/sqlite-driver.js +3 -37
- package/dist/cjs/index.d.ts +153 -2
- package/dist/cjs/index.js +142 -2
- package/dist/cjs/migration/file-migration-provider.d.ts +21 -5
- package/dist/cjs/migration/file-migration-provider.js +14 -13
- package/dist/cjs/migration/migrator.d.ts +2 -0
- package/dist/cjs/plugin/noop-plugin.d.ts +1 -1
- package/dist/cjs/schema/alter-table-builder.d.ts +2 -5
- package/dist/cjs/schema/alter-table-builder.js +3 -7
- package/dist/esm/dialect/mysql/mysql-dialect-config.d.ts +24 -207
- package/dist/esm/dialect/mysql/mysql-dialect.d.ts +22 -7
- package/dist/esm/dialect/mysql/mysql-dialect.js +25 -9
- package/dist/esm/dialect/mysql/mysql-driver.d.ts +2 -15
- package/dist/esm/dialect/mysql/mysql-driver.js +4 -35
- package/dist/esm/dialect/mysql/mysql-introspector.js +2 -6
- package/dist/esm/dialect/postgres/postgres-dialect-config.d.ts +25 -89
- package/dist/esm/dialect/postgres/postgres-dialect.d.ts +21 -9
- package/dist/esm/dialect/postgres/postgres-dialect.js +24 -11
- package/dist/esm/dialect/postgres/postgres-driver.d.ts +2 -15
- package/dist/esm/dialect/postgres/postgres-driver.js +6 -37
- package/dist/esm/dialect/sqlite/sqlite-dialect-config.d.ts +25 -28
- package/dist/esm/dialect/sqlite/sqlite-dialect.d.ts +19 -3
- package/dist/esm/dialect/sqlite/sqlite-dialect.js +19 -3
- package/dist/esm/dialect/sqlite/sqlite-driver.js +4 -38
- package/dist/esm/index.d.ts +153 -2
- package/dist/esm/index.js +142 -2
- package/dist/esm/migration/file-migration-provider.d.ts +21 -5
- package/dist/esm/migration/file-migration-provider.js +14 -13
- package/dist/esm/migration/migrator.d.ts +2 -0
- package/dist/esm/plugin/noop-plugin.d.ts +1 -1
- package/dist/esm/schema/alter-table-builder.d.ts +2 -5
- package/dist/esm/schema/alter-table-builder.js +4 -8
- package/package.json +2 -7
- package/dist/cjs/index-nodeless.d.ts +0 -152
- package/dist/cjs/index-nodeless.js +0 -157
- package/dist/esm/index-nodeless.d.ts +0 -152
- package/dist/esm/index-nodeless.js +0 -142
package/dist/esm/index.js
CHANGED
|
@@ -1,12 +1,152 @@
|
|
|
1
1
|
/// <reference types="./index.d.ts" />
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
2
|
+
export * from './kysely.js';
|
|
3
|
+
export * from './query-creator.js';
|
|
4
|
+
export * from './query-builder/where-interface.js';
|
|
5
|
+
export * from './query-builder/join-interface.js';
|
|
6
|
+
export * from './query-builder/returning-interface.js';
|
|
7
|
+
export * from './query-builder/having-interface.js';
|
|
8
|
+
export * from './query-builder/select-query-builder.js';
|
|
9
|
+
export * from './query-builder/insert-query-builder.js';
|
|
10
|
+
export * from './query-builder/update-query-builder.js';
|
|
11
|
+
export * from './query-builder/delete-query-builder.js';
|
|
12
|
+
export * from './query-builder/no-result-error.js';
|
|
13
|
+
export * from './query-builder/join-builder.js';
|
|
14
|
+
export * from './query-builder/expression-builder.js';
|
|
15
|
+
export * from './query-builder/function-builder.js';
|
|
16
|
+
export * from './query-builder/insert-result.js';
|
|
17
|
+
export * from './query-builder/delete-result.js';
|
|
18
|
+
export * from './query-builder/update-result.js';
|
|
19
|
+
export * from './query-builder/on-conflict-builder.js';
|
|
20
|
+
export * from './raw-builder/raw-builder.js';
|
|
21
|
+
export * from './raw-builder/sql.js';
|
|
22
|
+
export * from './query-executor/query-executor.js';
|
|
23
|
+
export * from './query-executor/default-query-executor.js';
|
|
24
|
+
export * from './query-executor/noop-query-executor.js';
|
|
25
|
+
export * from './query-executor/query-executor-provider.js';
|
|
26
|
+
export * from './query-compiler/default-query-compiler.js';
|
|
27
|
+
export * from './query-compiler/compiled-query.js';
|
|
28
|
+
export * from './schema/schema.js';
|
|
29
|
+
export * from './schema/create-table-builder.js';
|
|
30
|
+
export * from './schema/drop-table-builder.js';
|
|
31
|
+
export * from './schema/create-index-builder.js';
|
|
32
|
+
export * from './schema/drop-index-builder.js';
|
|
33
|
+
export * from './schema/create-schema-builder.js';
|
|
34
|
+
export * from './schema/drop-schema-builder.js';
|
|
35
|
+
export * from './schema/column-definition-builder.js';
|
|
36
|
+
export * from './schema/foreign-key-constraint-builder.js';
|
|
37
|
+
export * from './schema/alter-table-builder.js';
|
|
38
|
+
export * from './schema/create-view-builder.js';
|
|
39
|
+
export * from './schema/drop-view-builder.js';
|
|
40
|
+
export * from './dynamic/dynamic.js';
|
|
41
|
+
export * from './driver/driver.js';
|
|
42
|
+
export * from './driver/database-connection.js';
|
|
43
|
+
export * from './driver/connection-provider.js';
|
|
44
|
+
export * from './driver/default-connection-provider.js';
|
|
45
|
+
export * from './driver/single-connection-provider.js';
|
|
46
|
+
export * from './driver/dummy-driver.js';
|
|
47
|
+
export * from './dialect/dialect.js';
|
|
48
|
+
export * from './dialect/dialect-adapter.js';
|
|
49
|
+
export * from './dialect/dialect-adapter-base.js';
|
|
50
|
+
export * from './dialect/database-introspector.js';
|
|
4
51
|
export * from './dialect/sqlite/sqlite-dialect.js';
|
|
5
52
|
export * from './dialect/sqlite/sqlite-dialect-config.js';
|
|
6
53
|
export * from './dialect/sqlite/sqlite-driver.js';
|
|
54
|
+
export * from './dialect/postgres/postgres-query-compiler.js';
|
|
55
|
+
export * from './dialect/postgres/postgres-introspector.js';
|
|
56
|
+
export * from './dialect/postgres/postgres-adapter.js';
|
|
7
57
|
export * from './dialect/mysql/mysql-dialect.js';
|
|
8
58
|
export * from './dialect/mysql/mysql-dialect-config.js';
|
|
9
59
|
export * from './dialect/mysql/mysql-driver.js';
|
|
60
|
+
export * from './dialect/mysql/mysql-query-compiler.js';
|
|
61
|
+
export * from './dialect/mysql/mysql-introspector.js';
|
|
62
|
+
export * from './dialect/mysql/mysql-adapter.js';
|
|
10
63
|
export * from './dialect/postgres/postgres-driver.js';
|
|
11
64
|
export * from './dialect/postgres/postgres-dialect-config.js';
|
|
12
65
|
export * from './dialect/postgres/postgres-dialect.js';
|
|
66
|
+
export * from './dialect/sqlite/sqlite-query-compiler.js';
|
|
67
|
+
export * from './dialect/sqlite/sqlite-introspector.js';
|
|
68
|
+
export * from './dialect/sqlite/sqlite-adapter.js';
|
|
69
|
+
export * from './query-compiler/default-query-compiler.js';
|
|
70
|
+
export * from './query-compiler/query-compiler.js';
|
|
71
|
+
export * from './migration/migrator.js';
|
|
72
|
+
export * from './migration/file-migration-provider.js';
|
|
73
|
+
export * from './plugin/kysely-plugin.js';
|
|
74
|
+
export * from './plugin/camel-case/camel-case-plugin.js';
|
|
75
|
+
export * from './plugin/deduplicate-joins/deduplicate-joins-plugin.js';
|
|
76
|
+
export * from './operation-node/add-column-node.js';
|
|
77
|
+
export * from './operation-node/add-constraint-node.js';
|
|
78
|
+
export * from './operation-node/alias-node.js';
|
|
79
|
+
export * from './operation-node/alter-column-node.js';
|
|
80
|
+
export * from './operation-node/alter-table-node.js';
|
|
81
|
+
export * from './operation-node/and-node.js';
|
|
82
|
+
export * from './operation-node/check-constraint-node.js';
|
|
83
|
+
export * from './operation-node/column-definition-node.js';
|
|
84
|
+
export * from './operation-node/column-node.js';
|
|
85
|
+
export * from './operation-node/column-update-node.js';
|
|
86
|
+
export * from './operation-node/common-table-expression-node.js';
|
|
87
|
+
export * from './operation-node/common-table-expression-name-node.js';
|
|
88
|
+
export * from './operation-node/constraint-node.js';
|
|
89
|
+
export * from './operation-node/create-index-node.js';
|
|
90
|
+
export * from './operation-node/create-schema-node.js';
|
|
91
|
+
export * from './operation-node/create-table-node.js';
|
|
92
|
+
export * from './operation-node/create-view-node.js';
|
|
93
|
+
export * from './operation-node/data-type-node.js';
|
|
94
|
+
export * from './operation-node/default-value-node.js';
|
|
95
|
+
export * from './operation-node/delete-query-node.js';
|
|
96
|
+
export * from './operation-node/drop-column-node.js';
|
|
97
|
+
export * from './operation-node/drop-constraint-node.js';
|
|
98
|
+
export * from './operation-node/drop-index-node.js';
|
|
99
|
+
export * from './operation-node/drop-schema-node.js';
|
|
100
|
+
export * from './operation-node/drop-table-node.js';
|
|
101
|
+
export * from './operation-node/drop-view-node.js';
|
|
102
|
+
export * from './operation-node/filter-node.js';
|
|
103
|
+
export * from './operation-node/foreign-key-constraint-node.js';
|
|
104
|
+
export * from './operation-node/from-node.js';
|
|
105
|
+
export * from './operation-node/generated-node.js';
|
|
106
|
+
export * from './operation-node/group-by-item-node.js';
|
|
107
|
+
export * from './operation-node/group-by-node.js';
|
|
108
|
+
export * from './operation-node/having-node.js';
|
|
109
|
+
export * from './operation-node/identifier-node.js';
|
|
110
|
+
export * from './operation-node/insert-query-node.js';
|
|
111
|
+
export * from './operation-node/join-node.js';
|
|
112
|
+
export * from './operation-node/limit-node.js';
|
|
113
|
+
export * from './operation-node/list-node.js';
|
|
114
|
+
export * from './operation-node/modify-column-node.js';
|
|
115
|
+
export * from './operation-node/offset-node.js';
|
|
116
|
+
export * from './operation-node/on-conflict-node.js';
|
|
117
|
+
export * from './operation-node/on-duplicate-key-node.js';
|
|
118
|
+
export * from './operation-node/on-node.js';
|
|
119
|
+
export * from './operation-node/operation-node-source.js';
|
|
120
|
+
export * from './operation-node/operation-node-transformer.js';
|
|
121
|
+
export * from './operation-node/operation-node-utils.js';
|
|
122
|
+
export * from './operation-node/operation-node-visitor.js';
|
|
123
|
+
export * from './operation-node/operation-node.js';
|
|
124
|
+
export * from './operation-node/operator-node.js';
|
|
125
|
+
export * from './operation-node/or-node.js';
|
|
126
|
+
export * from './operation-node/order-by-item-node.js';
|
|
127
|
+
export * from './operation-node/order-by-node.js';
|
|
128
|
+
export * from './operation-node/parens-node.js';
|
|
129
|
+
export * from './operation-node/primary-constraint-node.js';
|
|
130
|
+
export * from './operation-node/primitive-value-list-node.js';
|
|
131
|
+
export * from './operation-node/query-node.js';
|
|
132
|
+
export * from './operation-node/raw-node.js';
|
|
133
|
+
export * from './operation-node/reference-node.js';
|
|
134
|
+
export * from './operation-node/references-node.js';
|
|
135
|
+
export * from './operation-node/rename-column-node.js';
|
|
136
|
+
export * from './operation-node/returning-node.js';
|
|
137
|
+
export * from './operation-node/select-all-node.js';
|
|
138
|
+
export * from './operation-node/select-query-node.js';
|
|
139
|
+
export * from './operation-node/select-query-node.js';
|
|
140
|
+
export * from './operation-node/selection-node.js';
|
|
141
|
+
export * from './operation-node/table-node.js';
|
|
142
|
+
export * from './operation-node/union-node.js';
|
|
143
|
+
export * from './operation-node/unique-constraint-node.js';
|
|
144
|
+
export * from './operation-node/update-query-node.js';
|
|
145
|
+
export * from './operation-node/value-list-node.js';
|
|
146
|
+
export * from './operation-node/value-node.js';
|
|
147
|
+
export * from './operation-node/values-node.js';
|
|
148
|
+
export * from './operation-node/where-node.js';
|
|
149
|
+
export * from './operation-node/with-node.js';
|
|
150
|
+
export * from './util/column-type.js';
|
|
151
|
+
export * from './util/compilable.js';
|
|
152
|
+
export * from './util/log.js';
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import { Migration, MigrationProvider } from './migrator.js';
|
|
2
2
|
/**
|
|
3
|
-
* Reads all migrations from a folder.
|
|
3
|
+
* Reads all migrations from a folder in node.js.
|
|
4
4
|
*
|
|
5
5
|
* ### Examples
|
|
6
6
|
*
|
|
7
7
|
* ```ts
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* import { promises as fs } from 'fs'
|
|
9
|
+
* import path from 'path'
|
|
10
|
+
*
|
|
11
|
+
* new FileMigrationProvider({
|
|
12
|
+
* fs,
|
|
13
|
+
* path,
|
|
14
|
+
* migrationFolder: 'path/to/migrations/folder'
|
|
15
|
+
* })
|
|
11
16
|
* ```
|
|
12
17
|
*/
|
|
13
18
|
export declare class FileMigrationProvider implements MigrationProvider {
|
|
14
19
|
#private;
|
|
15
|
-
constructor(
|
|
20
|
+
constructor(props: FileMigrationProviderProps);
|
|
16
21
|
/**
|
|
17
22
|
* Returns all migrations, old and new.
|
|
18
23
|
*
|
|
@@ -27,3 +32,14 @@ export declare class FileMigrationProvider implements MigrationProvider {
|
|
|
27
32
|
*/
|
|
28
33
|
getMigrations(): Promise<Record<string, Migration>>;
|
|
29
34
|
}
|
|
35
|
+
export interface FileMigrationProviderFS {
|
|
36
|
+
readdir(path: string): Promise<string[]>;
|
|
37
|
+
}
|
|
38
|
+
export interface FileMigrationProviderPath {
|
|
39
|
+
join(...path: string[]): string;
|
|
40
|
+
}
|
|
41
|
+
export interface FileMigrationProviderProps {
|
|
42
|
+
fs: FileMigrationProviderFS;
|
|
43
|
+
path: FileMigrationProviderPath;
|
|
44
|
+
migrationFolder: string;
|
|
45
|
+
}
|
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
/// <reference types="./file-migration-provider.d.ts" />
|
|
2
2
|
import { isFunction, isObject } from '../util/object-utils.js';
|
|
3
3
|
/**
|
|
4
|
-
* Reads all migrations from a folder.
|
|
4
|
+
* Reads all migrations from a folder in node.js.
|
|
5
5
|
*
|
|
6
6
|
* ### Examples
|
|
7
7
|
*
|
|
8
8
|
* ```ts
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* import { promises as fs } from 'fs'
|
|
10
|
+
* import path from 'path'
|
|
11
|
+
*
|
|
12
|
+
* new FileMigrationProvider({
|
|
13
|
+
* fs,
|
|
14
|
+
* path,
|
|
15
|
+
* migrationFolder: 'path/to/migrations/folder'
|
|
16
|
+
* })
|
|
12
17
|
* ```
|
|
13
18
|
*/
|
|
14
19
|
export class FileMigrationProvider {
|
|
15
|
-
#
|
|
16
|
-
constructor(
|
|
17
|
-
this.#
|
|
20
|
+
#props;
|
|
21
|
+
constructor(props) {
|
|
22
|
+
this.#props = props;
|
|
18
23
|
}
|
|
19
24
|
async getMigrations() {
|
|
20
|
-
// Import these dynamically so that we don't have any top level
|
|
21
|
-
// node dependencies.
|
|
22
|
-
const fs = await import('fs/promises');
|
|
23
|
-
const path = await import('path');
|
|
24
25
|
const migrations = {};
|
|
25
|
-
const files = await fs.readdir(this.#
|
|
26
|
+
const files = await this.#props.fs.readdir(this.#props.migrationFolder);
|
|
26
27
|
for (const fileName of files) {
|
|
27
28
|
if ((fileName.endsWith('.js') || fileName.endsWith('.ts')) &&
|
|
28
29
|
!fileName.endsWith('.d.ts')) {
|
|
29
|
-
const migration = await import(path.join(this.#
|
|
30
|
+
const migration = await import(this.#props.path.join(this.#props.migrationFolder, fileName));
|
|
30
31
|
if (isMigration(migration)) {
|
|
31
32
|
migrations[fileName.substring(0, fileName.length - 3)] = migration;
|
|
32
33
|
}
|
|
@@ -188,6 +188,8 @@ export interface MigratorProps {
|
|
|
188
188
|
* If you do specify this, ALWAYS ALWAYS use the same value from the beginning of
|
|
189
189
|
* the project, to the end of time or prepare to manually migrate the migration
|
|
190
190
|
* tables.
|
|
191
|
+
*
|
|
192
|
+
* This only works on postgres.
|
|
191
193
|
*/
|
|
192
194
|
readonly migrationTableSchema?: string;
|
|
193
195
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QueryResult } from '../driver/database-connection.js';
|
|
2
|
-
import { UnknownRow } from '../index-nodeless.js';
|
|
3
2
|
import { RootOperationNode } from '../query-compiler/query-compiler.js';
|
|
3
|
+
import { UnknownRow } from '../util/type-utils.js';
|
|
4
4
|
import { KyselyPlugin, PluginTransformQueryArgs, PluginTransformResultArgs } from './kysely-plugin.js';
|
|
5
5
|
export declare class NoopPlugin implements KyselyPlugin {
|
|
6
6
|
/**
|
|
@@ -25,12 +25,8 @@ export declare class AlterTableBuilder {
|
|
|
25
25
|
renameColumn(column: string, newColumn: string): AlterTableExecutor;
|
|
26
26
|
/**
|
|
27
27
|
* See {@link CreateTableBuilder.addColumn}
|
|
28
|
-
*
|
|
29
|
-
* Unlike {@link CreateTableBuilder.addColumn} this method returns the column builder
|
|
30
|
-
* and doesn't take a callback as the last argument. This is because you can only
|
|
31
|
-
* add one column per `ALTER TABLE` query.
|
|
32
28
|
*/
|
|
33
|
-
addColumn(columnName: string, dataType: DataTypeExpression): AlterTableAddColumnBuilder;
|
|
29
|
+
addColumn(columnName: string, dataType: DataTypeExpression, build?: AlterTableAddColumnBuilderCallback): AlterTableAddColumnBuilder;
|
|
34
30
|
/**
|
|
35
31
|
* Creates an `alter table modify column` query. The `modify column` statement
|
|
36
32
|
* is only implemeted by MySQL and oracle AFAIK. On other databases you
|
|
@@ -245,6 +241,7 @@ export declare class AlterTableAddColumnBuilder implements ColumnDefinitionBuild
|
|
|
245
241
|
export interface AlterTableAddColumnBuilderProps extends AlterTableBuilderProps {
|
|
246
242
|
readonly columnBuilder: ColumnDefinitionBuilder;
|
|
247
243
|
}
|
|
244
|
+
export declare type AlterTableAddColumnBuilderCallback = (builder: AlterTableAddColumnBuilder) => AlterTableAddColumnBuilder;
|
|
248
245
|
export declare class AlterTableModifyColumnBuilder implements ColumnDefinitionBuilderInterface, OperationNodeSource, Compilable {
|
|
249
246
|
#private;
|
|
250
247
|
constructor(props: AlterTableModifyColumnBuilderProps);
|
|
@@ -7,7 +7,7 @@ import { DataTypeNode, } from '../operation-node/data-type-node.js';
|
|
|
7
7
|
import { DropColumnNode } from '../operation-node/drop-column-node.js';
|
|
8
8
|
import { IdentifierNode } from '../operation-node/identifier-node.js';
|
|
9
9
|
import { RenameColumnNode } from '../operation-node/rename-column-node.js';
|
|
10
|
-
import { freeze } from '../util/object-utils.js';
|
|
10
|
+
import { freeze, noop } from '../util/object-utils.js';
|
|
11
11
|
import { preventAwait } from '../util/prevent-await.js';
|
|
12
12
|
import { ColumnDefinitionBuilder, } from './column-definition-builder.js';
|
|
13
13
|
import { ModifyColumnNode } from '../operation-node/modify-column-node.js';
|
|
@@ -68,16 +68,12 @@ export class AlterTableBuilder {
|
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
70
|
* See {@link CreateTableBuilder.addColumn}
|
|
71
|
-
*
|
|
72
|
-
* Unlike {@link CreateTableBuilder.addColumn} this method returns the column builder
|
|
73
|
-
* and doesn't take a callback as the last argument. This is because you can only
|
|
74
|
-
* add one column per `ALTER TABLE` query.
|
|
75
71
|
*/
|
|
76
|
-
addColumn(columnName, dataType) {
|
|
77
|
-
return new AlterTableAddColumnBuilder({
|
|
72
|
+
addColumn(columnName, dataType, build = noop) {
|
|
73
|
+
return build(new AlterTableAddColumnBuilder({
|
|
78
74
|
...this.#props,
|
|
79
75
|
columnBuilder: new ColumnDefinitionBuilder(ColumnDefinitionNode.create(columnName, parseDataTypeExpression(dataType))),
|
|
80
|
-
});
|
|
76
|
+
}));
|
|
81
77
|
}
|
|
82
78
|
/**
|
|
83
79
|
* Creates an `alter table modify column` query. The `modify column` statement
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kysely",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.2",
|
|
4
4
|
"description": "Type safe SQL query builder",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
".": {
|
|
16
16
|
"import": "./dist/esm/index.js",
|
|
17
17
|
"require": "./dist/cjs/index.js"
|
|
18
|
-
}
|
|
19
|
-
"./dist/cjs/index-nodeless.js": "./dist/cjs/index-nodeless.js",
|
|
20
|
-
"./dist/esm/index-nodeless.js": "./dist/esm/index-nodeless.js"
|
|
18
|
+
}
|
|
21
19
|
},
|
|
22
20
|
"scripts": {
|
|
23
21
|
"clean": "rm -rf dist && rm -rf test/node/dist && rm -rf test/browser/bundle.js",
|
|
@@ -43,9 +41,6 @@
|
|
|
43
41
|
},
|
|
44
42
|
"author": "Sami Koskimäki <sami@jakso.me>",
|
|
45
43
|
"license": "MIT",
|
|
46
|
-
"dependencies": {
|
|
47
|
-
"@types/node": "^16.11.9"
|
|
48
|
-
},
|
|
49
44
|
"devDependencies": {
|
|
50
45
|
"@types/better-sqlite3": "^7.5.0",
|
|
51
46
|
"@types/chai": "^4.3.1",
|
|
@@ -1,152 +0,0 @@
|
|
|
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';
|
|
50
|
-
export * from './dialect/postgres/postgres-query-compiler.js';
|
|
51
|
-
export * from './dialect/postgres/postgres-introspector.js';
|
|
52
|
-
export * from './dialect/postgres/postgres-adapter.js';
|
|
53
|
-
export * from './dialect/mysql/mysql-query-compiler.js';
|
|
54
|
-
export * from './dialect/mysql/mysql-introspector.js';
|
|
55
|
-
export * from './dialect/mysql/mysql-adapter.js';
|
|
56
|
-
export * from './dialect/sqlite/sqlite-query-compiler.js';
|
|
57
|
-
export * from './dialect/sqlite/sqlite-introspector.js';
|
|
58
|
-
export * from './dialect/sqlite/sqlite-adapter.js';
|
|
59
|
-
export * from './query-compiler/default-query-compiler.js';
|
|
60
|
-
export * from './query-compiler/query-compiler.js';
|
|
61
|
-
export * from './migration/migrator.js';
|
|
62
|
-
export * from './plugin/kysely-plugin.js';
|
|
63
|
-
export * from './plugin/camel-case/camel-case-plugin.js';
|
|
64
|
-
export * from './plugin/deduplicate-joins/deduplicate-joins-plugin.js';
|
|
65
|
-
export * from './operation-node/add-column-node.js';
|
|
66
|
-
export * from './operation-node/add-constraint-node.js';
|
|
67
|
-
export * from './operation-node/alias-node.js';
|
|
68
|
-
export * from './operation-node/alter-column-node.js';
|
|
69
|
-
export * from './operation-node/alter-table-node.js';
|
|
70
|
-
export * from './operation-node/and-node.js';
|
|
71
|
-
export * from './operation-node/check-constraint-node.js';
|
|
72
|
-
export * from './operation-node/column-definition-node.js';
|
|
73
|
-
export * from './operation-node/column-node.js';
|
|
74
|
-
export * from './operation-node/column-update-node.js';
|
|
75
|
-
export * from './operation-node/common-table-expression-node.js';
|
|
76
|
-
export * from './operation-node/common-table-expression-name-node.js';
|
|
77
|
-
export * from './operation-node/constraint-node.js';
|
|
78
|
-
export * from './operation-node/create-index-node.js';
|
|
79
|
-
export * from './operation-node/create-schema-node.js';
|
|
80
|
-
export * from './operation-node/create-table-node.js';
|
|
81
|
-
export * from './operation-node/create-view-node.js';
|
|
82
|
-
export * from './operation-node/data-type-node.js';
|
|
83
|
-
export * from './operation-node/default-value-node.js';
|
|
84
|
-
export * from './operation-node/delete-query-node.js';
|
|
85
|
-
export * from './operation-node/drop-column-node.js';
|
|
86
|
-
export * from './operation-node/drop-constraint-node.js';
|
|
87
|
-
export * from './operation-node/drop-index-node.js';
|
|
88
|
-
export * from './operation-node/drop-schema-node.js';
|
|
89
|
-
export * from './operation-node/drop-table-node.js';
|
|
90
|
-
export * from './operation-node/drop-view-node.js';
|
|
91
|
-
export * from './operation-node/filter-node.js';
|
|
92
|
-
export * from './operation-node/foreign-key-constraint-node.js';
|
|
93
|
-
export * from './operation-node/from-node.js';
|
|
94
|
-
export * from './operation-node/generated-node.js';
|
|
95
|
-
export * from './operation-node/group-by-item-node.js';
|
|
96
|
-
export * from './operation-node/group-by-node.js';
|
|
97
|
-
export * from './operation-node/having-node.js';
|
|
98
|
-
export * from './operation-node/identifier-node.js';
|
|
99
|
-
export * from './operation-node/insert-query-node.js';
|
|
100
|
-
export * from './operation-node/join-node.js';
|
|
101
|
-
export * from './operation-node/limit-node.js';
|
|
102
|
-
export * from './operation-node/list-node.js';
|
|
103
|
-
export * from './operation-node/modify-column-node.js';
|
|
104
|
-
export * from './operation-node/offset-node.js';
|
|
105
|
-
export * from './operation-node/on-conflict-node.js';
|
|
106
|
-
export * from './operation-node/on-duplicate-key-node.js';
|
|
107
|
-
export * from './operation-node/on-node.js';
|
|
108
|
-
export * from './operation-node/operation-node-source.js';
|
|
109
|
-
export * from './operation-node/operation-node-transformer.js';
|
|
110
|
-
export * from './operation-node/operation-node-utils.js';
|
|
111
|
-
export * from './operation-node/operation-node-visitor.js';
|
|
112
|
-
export * from './operation-node/operation-node.js';
|
|
113
|
-
export * from './operation-node/operator-node.js';
|
|
114
|
-
export * from './operation-node/or-node.js';
|
|
115
|
-
export * from './operation-node/order-by-item-node.js';
|
|
116
|
-
export * from './operation-node/order-by-node.js';
|
|
117
|
-
export * from './operation-node/parens-node.js';
|
|
118
|
-
export * from './operation-node/primary-constraint-node.js';
|
|
119
|
-
export * from './operation-node/primitive-value-list-node.js';
|
|
120
|
-
export * from './operation-node/query-node.js';
|
|
121
|
-
export * from './operation-node/raw-node.js';
|
|
122
|
-
export * from './operation-node/reference-node.js';
|
|
123
|
-
export * from './operation-node/references-node.js';
|
|
124
|
-
export * from './operation-node/rename-column-node.js';
|
|
125
|
-
export * from './operation-node/returning-node.js';
|
|
126
|
-
export * from './operation-node/select-all-node.js';
|
|
127
|
-
export * from './operation-node/select-query-node.js';
|
|
128
|
-
export * from './operation-node/select-query-node.js';
|
|
129
|
-
export * from './operation-node/selection-node.js';
|
|
130
|
-
export * from './operation-node/table-node.js';
|
|
131
|
-
export * from './operation-node/union-node.js';
|
|
132
|
-
export * from './operation-node/unique-constraint-node.js';
|
|
133
|
-
export * from './operation-node/update-query-node.js';
|
|
134
|
-
export * from './operation-node/value-list-node.js';
|
|
135
|
-
export * from './operation-node/value-node.js';
|
|
136
|
-
export * from './operation-node/values-node.js';
|
|
137
|
-
export * from './operation-node/where-node.js';
|
|
138
|
-
export * from './operation-node/with-node.js';
|
|
139
|
-
export * from './util/column-type.js';
|
|
140
|
-
export * from './util/compilable.js';
|
|
141
|
-
export * from './util/log.js';
|
|
142
|
-
export { AnyColumn, UnknownRow, AnySelectQueryBuilder, } from './util/type-utils.js';
|
|
143
|
-
export { SelectExpression, SelectExpressionOrList, Selection, } from './parser/select-parser.js';
|
|
144
|
-
export { ReferenceExpression, ReferenceExpressionOrList, } from './parser/reference-parser.js';
|
|
145
|
-
export { ValueExpression, ValueExpressionOrList, } from './parser/value-parser.js';
|
|
146
|
-
export { FilterValueExpression, FilterValueExpressionOrList, ExistsExpression, FilterOperator, } from './parser/filter-parser.js';
|
|
147
|
-
export { TableExpression, TableExpressionOrList, } from './parser/table-parser.js';
|
|
148
|
-
export { JoinReferenceExpression, JoinCallbackExpression, } from './parser/join-parser.js';
|
|
149
|
-
export { InsertObject } from './parser/insert-values-parser.js';
|
|
150
|
-
export { MutationObject } from './parser/update-set-parser.js';
|
|
151
|
-
export { OrderByExpression, OrderByDirectionExpression, } from './parser/order-by-parser.js';
|
|
152
|
-
export { UnionExpression } from './parser/union-parser.js';
|