Skip to content

Commit b8f59ed

Browse files
committed
add experimental index-nodeless entry point
1 parent 513bcb0 commit b8f59ed

File tree

4 files changed

+211
-211
lines changed

4 files changed

+211
-211
lines changed

Diff for: README.md

+11-15
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,13 @@ much anything you can think of. Typescript is always there for you offering comp
1919
you build a valid query.
2020

2121
Of course there are cases where things cannot be typed at compile time, and Kysely offers escape
22-
hatches for these situations. With typescript you can always cast something to `any` if the types
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)
2523
for more info.
2624

27-
Kysely is still young and some useful features are propably not yet implemented. If you start
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
2926
[discord server](https://discord.gg/C9aJ49mCra).
3027

31-
[Here's](https://www.jakso.me/blog/kysely-a-type-safe-sql-query-builder-for-typescript)
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).
3329

3430
# Table of contents
3531

@@ -42,7 +38,7 @@ an introductory blog post.
4238

4339
# Installation
4440

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:
4642

4743
```
4844
# PostgreSQL
@@ -81,7 +77,7 @@ import {
8177
interface PersonTable {
8278
// Columns that are generated by the database should be marked
8379
// using the `Generated` type. This way they are automatically
84-
// made optional in inserts.
80+
// made optional in inserts and updates.
8581
id: Generated<number>
8682

8783
first_name: string
@@ -92,11 +88,11 @@ interface PersonTable {
9288
// automatically by Kysely.
9389
last_name: string | null
9490

95-
// You can specity a type for each operation (select, insert and update)
96-
// using the `ColumnType<SelectType, InsertType, UpdateType>` wrapper.
97-
// Here we define a column `modified_at` that is selected as a `Date`,
98-
// can optionally be provided as a `string` in inserts and can never
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:
10096
modified_at: ColumnType<Date, string | undefined, never>
10197
}
10298

@@ -210,7 +206,7 @@ should never depend on the current code of your app because they need to work ev
210206
changes completely. Migrations need to be "frozen in time".
211207

212208
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 the data.
209+
module to modify the schema. Migrations can also run normal queries to modify data.
214210

215211
### PostgreSQL migration example
216212

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kysely",
3-
"version": "0.15.1",
3+
"version": "0.15.2",
44
"description": "Type safe SQL query builder",
55
"repository": {
66
"type": "git",

Diff for: src/index-nodeless.ts

+193
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,193 @@
1+
export * from './kysely.js'
2+
export * from './query-creator.js'
3+
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+
21+
export * from './raw-builder/raw-builder.js'
22+
23+
export * from './query-executor/query-executor.js'
24+
export * from './query-executor/default-query-executor.js'
25+
export * from './query-executor/noop-query-executor.js'
26+
27+
export * from './query-compiler/default-query-compiler.js'
28+
export * from './query-compiler/compiled-query.js'
29+
30+
export * from './schema/schema.js'
31+
export * from './schema/create-table-builder.js'
32+
export * from './schema/drop-table-builder.js'
33+
export * from './schema/create-index-builder.js'
34+
export * from './schema/drop-index-builder.js'
35+
export * from './schema/create-schema-builder.js'
36+
export * from './schema/drop-schema-builder.js'
37+
export * from './schema/column-definition-builder.js'
38+
export * from './schema/foreign-key-constraint-builder.js'
39+
export * from './schema/alter-table-builder.js'
40+
export * from './schema/create-view-builder.js'
41+
export * from './schema/drop-view-builder.js'
42+
43+
export * from './dynamic/dynamic.js'
44+
45+
export * from './driver/driver.js'
46+
export * from './driver/database-connection.js'
47+
export * from './driver/connection-provider.js'
48+
export * from './driver/default-connection-provider.js'
49+
export * from './driver/single-connection-provider.js'
50+
51+
export * from './dialect/dialect.js'
52+
export * from './dialect/dialect-adapter.js'
53+
export * from './dialect/dialect-adapter-base.js'
54+
export * from './dialect/database-introspector.js'
55+
56+
export * from './dialect/postgres/postgres-query-compiler.js'
57+
export * from './dialect/postgres/postgres-introspector.js'
58+
export * from './dialect/postgres/postgres-adapter.js'
59+
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'
63+
64+
export * from './dialect/sqlite/sqlite-query-compiler.js'
65+
export * from './dialect/sqlite/sqlite-introspector.js'
66+
export * from './dialect/sqlite/sqlite-adapter.js'
67+
68+
export * from './query-compiler/default-query-compiler.js'
69+
export * from './query-compiler/query-compiler.js'
70+
71+
export * from './migration/migrator.js'
72+
73+
export * from './plugin/kysely-plugin.js'
74+
export * from './plugin/camel-case/camel-case-plugin.js'
75+
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+
151+
export * from './util/column-type.js'
152+
export * from './util/compilable.js'
153+
export * from './util/log.js'
154+
export {
155+
AnyColumn,
156+
UnknownRow,
157+
AnySelectQueryBuilder,
158+
} from './util/type-utils.js'
159+
160+
export {
161+
SelectExpression,
162+
SelectExpressionOrList,
163+
Selection,
164+
} from './parser/select-parser.js'
165+
export {
166+
ReferenceExpression,
167+
ReferenceExpressionOrList,
168+
} from './parser/reference-parser.js'
169+
export {
170+
ValueExpression,
171+
ValueExpressionOrList,
172+
} from './parser/value-parser.js'
173+
export {
174+
FilterValueExpression,
175+
FilterValueExpressionOrList,
176+
ExistsExpression,
177+
FilterOperator,
178+
} from './parser/filter-parser.js'
179+
export {
180+
TableExpression,
181+
TableExpressionOrList,
182+
} from './parser/table-parser.js'
183+
export {
184+
JoinReferenceExpression,
185+
JoinCallbackExpression,
186+
} from './parser/join-parser.js'
187+
export { InsertObject } from './parser/insert-values-parser.js'
188+
export { MutationObject } from './parser/update-set-parser.js'
189+
export {
190+
OrderByExpression,
191+
OrderByDirectionExpression,
192+
} from './parser/order-by-parser.js'
193+
export { UnionExpression } from './parser/union-parser.js'

0 commit comments

Comments
 (0)