kysely 0.28.2 → 0.28.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/cjs/dialect/mssql/mssql-driver.d.ts +3 -2
  2. package/dist/cjs/dialect/mssql/mssql-driver.js +68 -57
  3. package/dist/cjs/dialect/postgres/postgres-introspector.js +2 -0
  4. package/dist/cjs/helpers/mssql.d.ts +4 -4
  5. package/dist/cjs/helpers/mysql.d.ts +4 -4
  6. package/dist/cjs/helpers/postgres.d.ts +4 -4
  7. package/dist/cjs/helpers/sqlite.d.ts +4 -4
  8. package/dist/cjs/index.d.ts +1 -1
  9. package/dist/cjs/kysely.d.ts +4 -0
  10. package/dist/cjs/kysely.js +12 -6
  11. package/dist/cjs/migration/migrator.js +2 -1
  12. package/dist/cjs/parser/delete-from-parser.d.ts +5 -1
  13. package/dist/cjs/parser/merge-into-parser.d.ts +3 -1
  14. package/dist/cjs/parser/select-from-parser.d.ts +3 -1
  15. package/dist/cjs/parser/update-parser.d.ts +5 -1
  16. package/dist/cjs/query-builder/delete-query-builder.js +2 -2
  17. package/dist/cjs/query-builder/function-module.d.ts +6 -6
  18. package/dist/cjs/query-builder/insert-query-builder.js +2 -2
  19. package/dist/cjs/query-builder/merge-query-builder.js +1 -1
  20. package/dist/cjs/query-builder/select-query-builder.js +2 -2
  21. package/dist/cjs/query-builder/update-query-builder.js +2 -2
  22. package/dist/cjs/query-compiler/default-query-compiler.js +1 -4
  23. package/dist/cjs/query-executor/query-executor-base.d.ts +2 -2
  24. package/dist/cjs/query-executor/query-executor-base.js +4 -4
  25. package/dist/cjs/query-executor/query-executor.d.ts +2 -2
  26. package/dist/cjs/raw-builder/raw-builder.js +1 -1
  27. package/dist/cjs/schema/alter-table-add-foreign-key-constraint-builder.js +1 -1
  28. package/dist/cjs/schema/alter-table-add-index-builder.js +1 -1
  29. package/dist/cjs/schema/alter-table-builder.js +1 -1
  30. package/dist/cjs/schema/alter-table-drop-constraint-builder.js +1 -1
  31. package/dist/cjs/schema/alter-table-executor.js +1 -1
  32. package/dist/cjs/schema/create-index-builder.js +1 -1
  33. package/dist/cjs/schema/create-schema-builder.js +1 -1
  34. package/dist/cjs/schema/create-table-builder.js +1 -1
  35. package/dist/cjs/schema/create-type-builder.js +1 -1
  36. package/dist/cjs/schema/create-view-builder.js +1 -1
  37. package/dist/cjs/schema/drop-index-builder.js +1 -1
  38. package/dist/cjs/schema/drop-schema-builder.js +1 -1
  39. package/dist/cjs/schema/drop-table-builder.js +1 -1
  40. package/dist/cjs/schema/drop-type-builder.js +1 -1
  41. package/dist/cjs/schema/drop-view-builder.js +1 -1
  42. package/dist/cjs/schema/refresh-materialized-view-builder.js +1 -1
  43. package/dist/cjs/util/type-utils.d.ts +18 -0
  44. package/dist/esm/dialect/mssql/mssql-driver.d.ts +3 -2
  45. package/dist/esm/dialect/mssql/mssql-driver.js +68 -57
  46. package/dist/esm/dialect/postgres/postgres-introspector.js +2 -0
  47. package/dist/esm/helpers/mssql.d.ts +4 -4
  48. package/dist/esm/helpers/mysql.d.ts +4 -4
  49. package/dist/esm/helpers/postgres.d.ts +4 -4
  50. package/dist/esm/helpers/sqlite.d.ts +4 -4
  51. package/dist/esm/index.d.ts +1 -1
  52. package/dist/esm/kysely.d.ts +4 -0
  53. package/dist/esm/kysely.js +12 -6
  54. package/dist/esm/migration/migrator.js +3 -2
  55. package/dist/esm/parser/delete-from-parser.d.ts +5 -1
  56. package/dist/esm/parser/merge-into-parser.d.ts +3 -1
  57. package/dist/esm/parser/select-from-parser.d.ts +3 -1
  58. package/dist/esm/parser/update-parser.d.ts +5 -1
  59. package/dist/esm/query-builder/delete-query-builder.js +2 -2
  60. package/dist/esm/query-builder/function-module.d.ts +6 -6
  61. package/dist/esm/query-builder/insert-query-builder.js +2 -2
  62. package/dist/esm/query-builder/merge-query-builder.js +1 -1
  63. package/dist/esm/query-builder/select-query-builder.js +2 -2
  64. package/dist/esm/query-builder/update-query-builder.js +2 -2
  65. package/dist/esm/query-compiler/default-query-compiler.js +1 -4
  66. package/dist/esm/query-executor/query-executor-base.d.ts +2 -2
  67. package/dist/esm/query-executor/query-executor-base.js +4 -4
  68. package/dist/esm/query-executor/query-executor.d.ts +2 -2
  69. package/dist/esm/raw-builder/raw-builder.js +1 -1
  70. package/dist/esm/schema/alter-table-add-foreign-key-constraint-builder.js +1 -1
  71. package/dist/esm/schema/alter-table-add-index-builder.js +1 -1
  72. package/dist/esm/schema/alter-table-builder.js +1 -1
  73. package/dist/esm/schema/alter-table-drop-constraint-builder.js +1 -1
  74. package/dist/esm/schema/alter-table-executor.js +1 -1
  75. package/dist/esm/schema/create-index-builder.js +1 -1
  76. package/dist/esm/schema/create-schema-builder.js +1 -1
  77. package/dist/esm/schema/create-table-builder.js +1 -1
  78. package/dist/esm/schema/create-type-builder.js +1 -1
  79. package/dist/esm/schema/create-view-builder.js +1 -1
  80. package/dist/esm/schema/drop-index-builder.js +1 -1
  81. package/dist/esm/schema/drop-schema-builder.js +1 -1
  82. package/dist/esm/schema/drop-table-builder.js +1 -1
  83. package/dist/esm/schema/drop-type-builder.js +1 -1
  84. package/dist/esm/schema/drop-view-builder.js +1 -1
  85. package/dist/esm/schema/refresh-materialized-view-builder.js +1 -1
  86. package/dist/esm/util/type-utils.d.ts +18 -0
  87. package/package.json +57 -57
  88. package/.renovaterc.json +0 -3
  89. package/CODE_OF_CONDUCT.md +0 -183
  90. package/FUNDING.md +0 -25
  91. package/deno.check.d.ts +0 -96
  92. package/deno.check.json +0 -21
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "kysely",
3
- "version": "0.28.2",
3
+ "version": "0.28.4",
4
4
  "description": "Type safe SQL query builder",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git://github.com/kysely-org/kysely.git"
8
8
  },
9
9
  "engines": {
10
- "node": ">=18.0.0"
10
+ "node": ">=20.0.0"
11
11
  },
12
12
  "main": "dist/cjs/index.js",
13
13
  "module": "dist/esm/index.js",
@@ -18,6 +18,11 @@
18
18
  ]
19
19
  }
20
20
  },
21
+ "files": [
22
+ "dist",
23
+ "helpers",
24
+ "outdated-typescript.d.ts"
25
+ ],
21
26
  "exports": {
22
27
  ".": {
23
28
  "import": "./dist/esm/index.js",
@@ -45,76 +50,71 @@
45
50
  "default": "./dist/cjs/helpers/sqlite.js"
46
51
  }
47
52
  },
53
+ "author": "Sami Koskimäki <sami@jakso.me>",
54
+ "license": "MIT",
55
+ "contributors": [
56
+ "Sami Koskimäki <sami@jakso.me>",
57
+ "Igal Klebanov <igalklebanov@gmail.com>"
58
+ ],
59
+ "devDependencies": {
60
+ "@arethetypeswrong/cli": "^0.17.4",
61
+ "@ark/attest": "^0.46.0",
62
+ "@types/better-sqlite3": "^7.6.13",
63
+ "@types/chai": "^5.0.1",
64
+ "@types/chai-as-promised": "^8.0.2",
65
+ "@types/mocha": "^10.0.10",
66
+ "@types/node": "^22.15.3",
67
+ "@types/pg": "^8.11.14",
68
+ "@types/pg-cursor": "^2.7.2",
69
+ "@types/semver": "^7.7.0",
70
+ "@types/sinon": "^17.0.4",
71
+ "@types/tedious": "^4.0.9",
72
+ "better-sqlite3": "^11.9.1",
73
+ "chai": "^5.2.0",
74
+ "chai-as-promised": "^8.0.1",
75
+ "esbuild": "^0.25.3",
76
+ "lodash": "^4.17.21",
77
+ "mocha": "^11.2.2",
78
+ "mysql2": "^3.14.1",
79
+ "pathe": "^2.0.3",
80
+ "pg": "^8.15.6",
81
+ "pg-cursor": "^2.14.6",
82
+ "playwright": "^1.52.0",
83
+ "prettier": "^3.5.3",
84
+ "semver": "^7.7.1",
85
+ "sinon": "^20.0.0",
86
+ "tarn": "^3.0.2",
87
+ "tedious": "^19.0.0",
88
+ "tsd": "^0.32.0",
89
+ "typescript": "^5.8.3"
90
+ },
48
91
  "scripts": {
49
92
  "clean": "rm -rf dist & rm -rf test/node/dist & rm -rf test/browser/bundle.js & rm -rf helpers",
50
- "bench:ts": "npm run build && cd ./test/ts-benchmarks && tsx ./index.ts",
51
- "test": "npm run build && npm run test:node:build && npm run test:node:run && npm run test:typings && npm run test:esmimports && npm run test:exports",
93
+ "bench:ts": "pnpm build && cd ./test/ts-benchmarks && node --experimental-strip-types ./index.ts",
94
+ "test": "pnpm build && pnpm test:node:build && pnpm test:node:run && pnpm test:typings && pnpm test:esmimports && pnpm test:exports",
52
95
  "test:node:build": "tsc -p test/node",
53
- "test:node": "npm run build && npm run test:node:build && npm run test:node:run",
96
+ "test:node": "pnpm build && pnpm test:node:build && pnpm test:node:run",
54
97
  "test:node:run": "mocha --timeout 15000 test/node/dist/**/*.test.js",
55
98
  "test:browser:build": "rm -rf test/browser/bundle.js && esbuild test/browser/main.ts --bundle --outfile=test/browser/bundle.js",
56
- "test:browser": "npm run build && npm run test:browser:build && node test/browser/test.js",
57
- "test:bun": "npm run build && bun link && cd test/bun && bun install && bun run test",
58
- "test:cloudflare-workers": "npm run build && cd test/cloudflare-workers && npm ci && npm test",
99
+ "test:browser": "pnpm build && pnpm test:browser:build && node test/browser/test.js",
100
+ "test:bun": "pnpm build && bun link && cd test/bun && bun install && bun run test",
101
+ "test:cloudflare-workers": "pnpm build && pnpm -r test --filter kysely-cloudflare-workers-test",
59
102
  "test:deno": "deno run --allow-env --allow-read --allow-net test/deno/local.test.ts && deno run --allow-env --allow-read --allow-net test/deno/cdn.test.ts",
60
103
  "test:typings": "tsd test/typings",
61
104
  "test:esmimports": "node scripts/check-esm-imports.js",
62
105
  "test:esbuild": "esbuild --bundle --platform=node --external:pg-native dist/esm/index.js --outfile=/dev/null",
63
106
  "test:exports": "attw --pack . && node scripts/check-exports.js",
64
107
  "test:jsdocs": "deno check --doc-only --no-lock --unstable-sloppy-imports --config=\"deno.check.json\" ./src",
65
- "test:outdatedts": "npm run build && cd test/outdated-ts && npm ci && npm test",
108
+ "test:outdatedts": "pnpm build && cd test/outdated-ts && pnpm i && pnpm test",
66
109
  "prettier": "prettier --write 'src/**/*.ts' 'test/**/*.ts'",
67
- "build": "npm run clean && (npm run build:esm & npm run build:cjs) && npm run script:module-fixup && npm run script:copy-interface-doc",
68
- "build:esm": "tsc -p tsconfig.json && npm run script:add-deno-type-references",
110
+ "build": "pnpm clean && (pnpm build:esm & pnpm build:cjs) && pnpm script:module-fixup && pnpm script:copy-interface-doc",
111
+ "build:esm": "tsc -p tsconfig.json && pnpm script:add-deno-type-references",
69
112
  "build:cjs": "tsc -p tsconfig-cjs.json",
70
113
  "script:module-fixup": "node scripts/module-fixup.js",
71
114
  "script:copy-interface-doc": "node scripts/copy-interface-documentation.js",
72
115
  "script:add-deno-type-references": "node scripts/add-deno-type-references.js",
73
- "script:align-site-version": "node scripts/align-site-version.js",
116
+ "script:align-site-version": "node --experimental-strip-types scripts/align-site-version.mts",
74
117
  "script:generate-site-examples": "node scripts/generate-site-examples.js",
75
- "prepublishOnly": "npm run build",
76
- "release:preview": "pkg-pr-new publish --template './example'"
77
- },
78
- "author": "Sami Koskimäki <sami@jakso.me>",
79
- "license": "MIT",
80
- "contributors": [
81
- "Sami Koskimäki <sami@jakso.me>",
82
- "Igal Klebanov <igalklebanov@gmail.com>"
83
- ],
84
- "devDependencies": {
85
- "@arethetypeswrong/cli": "^0.17.0",
86
- "@ark/attest": "^0.36.0",
87
- "@types/better-sqlite3": "^7.6.11",
88
- "@types/chai": "^4.3.17",
89
- "@types/chai-as-promised": "^7.1.8",
90
- "@types/chai-subset": "^1.3.5",
91
- "@types/mocha": "^10.0.7",
92
- "@types/node": "^22.5.0",
93
- "@types/pg": "^8.11.6",
94
- "@types/pg-cursor": "^2.7.2",
95
- "@types/semver": "^7.5.8",
96
- "@types/sinon": "^17.0.2",
97
- "@types/tedious": "^4.0.9",
98
- "better-sqlite3": "^11.2.1",
99
- "chai": "^4.5.0",
100
- "chai-as-promised": "^7.1.2",
101
- "chai-subset": "^1.6.0",
102
- "esbuild": "^0.24.0",
103
- "lodash": "^4.17.21",
104
- "mocha": "^10.7.3",
105
- "mysql2": "^3.11.0",
106
- "pathe": "^1.1.2",
107
- "pg": "^8.12.0",
108
- "pg-cursor": "^2.11.0",
109
- "pkg-pr-new": "^0.0.30",
110
- "playwright": "^1.46.1",
111
- "prettier": "^3.3.3",
112
- "semver": "^7.6.3",
113
- "sinon": "^19.0.2",
114
- "tarn": "^3.0.2",
115
- "tedious": "^19.0.0",
116
- "tsd": "^0.32.0",
117
- "tsx": "^4.19.1",
118
- "typescript": "^5.6.3"
118
+ "version": "pnpm script:align-site-version && git add ."
119
119
  }
120
- }
120
+ }
package/.renovaterc.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "rangeStrategy": "bump"
3
- }
@@ -1,183 +0,0 @@
1
- # ~~Contributor Covenant Code of Conduct~~ Kysely Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- ~~We as members, contributors, and leaders pledge to make participation in our~~
6
- ~~community a harassment-free experience for everyone, regardless of age, body~~
7
- ~~size, visible or invisible disability, ethnicity, sex characteristics, gender~~
8
- ~~identity and expression, level of experience, education, socio-economic status,~~
9
- ~~nationality, personal appearance, race, religion, or sexual identity~~
10
- ~~and orientation.~~
11
-
12
- ~~We pledge to act and interact in ways that contribute to an open, welcoming,~~
13
- ~~diverse, inclusive, and healthy community.~~
14
-
15
- Don't be an asshole.
16
- You are not entitled to other people's time, energy, or attention.
17
-
18
- That's it. That's the pledge.
19
-
20
- ## Our Standards
21
-
22
- ~~Examples of behavior that contributes to a positive environment for our~~
23
- ~~community include:~~
24
-
25
- ~~* Demonstrating empathy and kindness toward other people~~
26
- ~~* Being respectful of differing opinions, viewpoints, and experiences~~
27
- ~~* Giving and gracefully accepting constructive feedback~~
28
- ~~* Accepting responsibility and apologizing to those affected by our mistakes,~~
29
- ~~and learning from the experience~~
30
- ~~* Focusing on what is best not just for us as individuals, but for the~~
31
- ~~overall community~~
32
-
33
- ~~Examples of unacceptable behavior include:~~
34
-
35
- ~~* The use of sexualized language or imagery, and sexual attention or~~
36
- ~~advances of any kind~~
37
- ~~* Trolling, insulting or derogatory comments, and personal or political attacks~~
38
- ~~* Public or private harassment~~
39
- ~~* Publishing others' private information, such as a physical or email~~
40
- ~~address, without their explicit permission~~
41
- ~~* Other conduct which could reasonably be considered inappropriate in a~~
42
- ~~professional setting~~
43
-
44
- Don't be an asshole.
45
- You are not entitled to other people's time, energy, or attention.
46
-
47
- Examples of being an asshole or entitled include:
48
-
49
- * Probably not the best idea to come in complaining and not having minimal respect to develop some basic sentences.
50
- > what is the migration_lock ?? why we have this in the database - https://github.com/kysely-org/kysely/issues/973
51
- * Probably not the best idea to attack the maintainer after he answered succinctly (out of character) for whatever reason (context switch? busy?).
52
- > You got any more of them there examples buster? - https://github.com/kysely-org/kysely/issues/677#issuecomment-2019876074
53
- * Probably not the best idea to come in all yelling and demanding stuff.
54
- > NO documentation about error handling!!!!
55
- > I am really confused that the docs doesnt have anything about error handling
56
- > this is a mandataory things to add!! - https://github.com/kysely-org/kysely/issues/1217
57
- * Probably not the best idea to tone police the maintainer after he spent time explaining library philosophy, and to publicly refuse to contribute something you demanded.
58
- > I'm sorry fella but with your tone I really don't feel like it. Good luck - https://github.com/kysely-org/kysely/issues/709#issuecomment-1727617260
59
- * Probably not the best idea to question the maintainer's decisions after properly answering your question, and to be entitled for JavaScript skill issue help after the issue is closed.
60
- > I don't understand your answer and closing the issue. - https://github.com/kysely-org/kysely/issues/527#issuecomment-1577383794
61
- * Probably not the best idea to jump into closed issues and be entitled to other people's efforts.
62
- > why on earth there is no mention of this in the documentation? - https://github.com/kysely-org/kysely/issues/649#issuecomment-2430854835
63
- * Probably not the best idea to not search existing issues, and then ask the maintainer to spend time doing it.
64
- > could you please provide numbers of duplicated issues to explore the topic? - https://github.com/kysely-org/kysely/issues/762#issuecomment-1801951960
65
- * Probably not the best idea to sarcastically suggest the maintainer is not helpful while using his hard work for free.
66
- > Most helpful man in the world - https://github.com/kysely-org/kysely/issues/762#issuecomment-2404599281
67
- * Probably not the best idea to side with the asshole/entitled by upvoting them or downvoting us.
68
-
69
- ![image](https://github.com/user-attachments/assets/ca6efd57-d8db-428a-a274-7b45b380887f)
70
- ![image](https://github.com/user-attachments/assets/62356fa3-7cea-4b82-9967-d56c76f0beee)
71
-
72
-
73
-
74
- ## Enforcement Responsibilities
75
-
76
- ~~Community leaders are responsible for clarifying and enforcing our standards of~~
77
- ~~acceptable behavior and will take appropriate and fair corrective action in~~
78
- ~~response to any behavior that they deem inappropriate, threatening, offensive,~~
79
- ~~or harmful.~~
80
-
81
- ~~Community leaders have the right and responsibility to remove, edit, or reject~~
82
- ~~comments, commits, code, wiki edits, issues, and other contributions that are~~
83
- ~~not aligned to this Code of Conduct, and will communicate reasons for moderation~~
84
- ~~decisions when appropriate.~~
85
-
86
- We are here in our free time. We are not getting paid to serve and please you.
87
-
88
- We will not tolerate assholes or entitled behavior.
89
-
90
- We are capable of banning you from the GitHub organization, Discord server, or any
91
- other community space we manage. Don't make us do it.
92
-
93
- ## Scope
94
-
95
- ~~This Code of Conduct applies within all community spaces, and also applies when~~
96
- ~~an individual is officially representing the community in public spaces.~~
97
- ~~Examples of representing our community include using an official e-mail address,~~
98
- ~~posting via an official social media account, or acting as an appointed~~
99
- ~~representative at an online or offline event.~~
100
-
101
- Relevant to all repositories in the Kysely GitHub organization, the Kysely Discord
102
- server, and any other community space managed by Kysely.
103
-
104
- ## Enforcement
105
-
106
- ~~Instances of abusive, harassing, or otherwise unacceptable behavior may be~~
107
- ~~reported to the community leaders responsible for enforcement at~~
108
- ~~Kysely's GitHub repositories and Discord server.~~
109
- ~~All complaints will be reviewed and investigated promptly and fairly.~~
110
-
111
- ~~All community leaders are obligated to respect the privacy and security of the~~
112
- ~~reporter of any incident.~~
113
-
114
- Report to us anyone who is being an asshole or entitled.
115
- We will take appropriate action if necessary.
116
-
117
- ## Enforcement Guidelines
118
-
119
- ~~Community leaders will follow these Community Impact Guidelines in determining~~
120
- ~~the consequences for any action they deem in violation of this Code of Conduct:~~
121
-
122
- We might do these things:
123
-
124
- ~~### 1. Correction~~
125
-
126
- **Community Impact**: ~~Use of inappropriate language or other behavior deemed~~
127
- ~~unprofessional or unwelcome in the community.~~
128
-
129
- Someone being an asshole or entitled.
130
-
131
- **Consequence**: ~~A private, written warning from community leaders, providing~~
132
- ~~clarity around the nature of the violation and an explanation of why the~~
133
- ~~behavior was inappropriate. A public apology may be requested.~~
134
-
135
- We might return the favor (we're not perfect), ignore you, edit/close/lock/delete
136
- your post/comment, or ban you. There is no strike system.
137
-
138
- ~~### 2. Warning~~
139
-
140
- ~~**Community Impact**: A violation through a single incident or series~~
141
- ~~of actions.~~
142
-
143
- ~~**Consequence**: A warning with consequences for continued behavior. No~~
144
- ~~interaction with the people involved, including unsolicited interaction with~~
145
- ~~those enforcing the Code of Conduct, for a specified period of time. This~~
146
- ~~includes avoiding interactions in community spaces as well as external channels~~
147
- ~~like social media. Violating these terms may lead to a temporary or~~
148
- ~~permanent ban.~~
149
-
150
- ~~### 3. Temporary Ban~~
151
-
152
- ~~**Community Impact**: A serious violation of community standards, including~~
153
- ~~sustained inappropriate behavior.~~
154
-
155
- ~~**Consequence**: A temporary ban from any sort of interaction or public~~
156
- ~~communication with the community for a specified period of time. No public or~~
157
- ~~private interaction with the people involved, including unsolicited interaction~~
158
- ~~with those enforcing the Code of Conduct, is allowed during this period.~~
159
- ~~Violating these terms may lead to a permanent ban.~~
160
-
161
- ~~### 4. Permanent Ban~~
162
-
163
- ~~**Community Impact**: Demonstrating a pattern of violation of community~~
164
- ~~standards, including sustained inappropriate behavior, harassment of an~~
165
- ~~individual, or aggression toward or disparagement of classes of individuals.~~
166
-
167
- ~~**Consequence**: A permanent ban from any sort of public interaction within~~
168
- ~~the community.~~
169
-
170
- ## ~~Attribution~~
171
-
172
- ~~This Code of Conduct is adapted from the [Contributor Covenant][homepage],~~
173
- ~~version 2.0, available at~~
174
- ~~https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.~~
175
-
176
- ~~Community Impact Guidelines were inspired by [Mozilla's code of conduct~~
177
- ~~enforcement ladder](https://github.com/mozilla/diversity).~~
178
-
179
- ~~[homepage]: https://www.contributor-covenant.org~~
180
-
181
- ~~For answers to common questions about this code of conduct, see the FAQ at~~
182
- ~~https://www.contributor-covenant.org/faq. Translations are available at~~
183
- ~~https://www.contributor-covenant.org/translations.~~
package/FUNDING.md DELETED
@@ -1,25 +0,0 @@
1
- # Funding
2
-
3
- Kysely is an MIT-licensed open-source project and is completely free to use - and will remain so.
4
-
5
- Kysely is a labor of love. We do this in our free time.
6
-
7
- We do not accept donations.
8
-
9
- - Getting paid for open-source won't make us put more time and effort into open-source.
10
- We have family, friends, and other hobbies and interests.
11
-
12
- - We work in the tech industry, full-time, as software developers. We are comfortable as-is.
13
-
14
- - We don't believe in freelance open-source as a stable source of income for the long term.
15
- We have mouths to feed, and careers to maintain.
16
-
17
- - Sponsored projects tend to be affected by big sponsors. We want to keep Kysely away
18
- from companies' and VCs' opinions and business needs.
19
-
20
- - Kysely is escapism for us. We don't want it to feel like another job.
21
-
22
-
23
- Instead of donating to us, we encourage you to support meaningful causes or other open-source projects in need of funding.
24
-
25
- Thank you for supporting Kysely through your usage, contributions, and feedback.
package/deno.check.d.ts DELETED
@@ -1,96 +0,0 @@
1
- import type {
2
- ColumnType,
3
- Generated,
4
- GeneratedAlways,
5
- Insertable,
6
- Kysely,
7
- Selectable,
8
- SqlBool,
9
- Updateable,
10
- } from './dist/esm'
11
-
12
- export interface Database {
13
- audit: AuditTable
14
- person: PersonTable
15
- person_backup: PersonTable
16
- pet: PetTable
17
- toy: ToyTable
18
- wine: WineTable
19
- wine_stock_change: WineStockChangeTable
20
- }
21
-
22
- interface AuditTable {
23
- id: Generated<number>
24
- action: string
25
- }
26
-
27
- interface PersonTable {
28
- id: Generated<number>
29
- address: { city: string } | null
30
- age: number | null
31
- birthdate: ColumnType<Date | null, string | null | undefined, string | null>
32
- created_at: GeneratedAlways<Date>
33
- deleted_at: ColumnType<Date | null, string | null | undefined, string | null>
34
- experience: { role: string }[] | null
35
- first_name: string
36
- gender: 'male' | 'female' | 'other' | null
37
- has_pets: Generated<'Y' | 'N'>
38
- last_name: string | null
39
- middle_name: string | null
40
- nicknames: string[] | null
41
- nullable_column: string | null
42
- profile: {
43
- addresses: { city: string }[]
44
- website: { url: string }
45
- } | null
46
- updated_at: ColumnType<Date | null, string | null | undefined, string | null>
47
- marital_status: 'single' | 'married' | 'divorced' | 'widowed' | null
48
- }
49
-
50
- interface PetTable {
51
- id: Generated<number>
52
- created_at: GeneratedAlways<Date>
53
- is_favorite: Generated<SqlBool>
54
- name: string
55
- owner_id: number
56
- species: Species
57
- }
58
-
59
- interface ToyTable {
60
- id: Generated<number>
61
- name: string
62
- pet_id: number
63
- price: number
64
- }
65
-
66
- interface WineTable {
67
- id: Generated<number>
68
- name: string
69
- stock: number
70
- }
71
-
72
- interface WineStockChangeTable {
73
- id: Generated<number>
74
- stock_delta: number
75
- wine_name: string
76
- }
77
-
78
- export type Person = Selectable<PersonTable>
79
- export type NewPerson = Insertable<PersonTable>
80
- export type PersonUpdate = Updateable<PersonTable>
81
- export type Pet = Selectable<PetTable>
82
- export type NewPet = Insertable<PetTable>
83
- export type PetUpdate = Updateable<PetTable>
84
- export type Species = 'dog' | 'cat' | 'hamster'
85
-
86
- declare global {
87
- // @ts-ignore
88
- export class Buffer {
89
- static isBuffer(obj: unknown): obj is { length: number }
90
- static compare(a: Buffer, b: Buffer): number
91
- }
92
- export const db: Kysely<Database>
93
- export function functionThatExpectsPersonWithNonNullValue(
94
- person: Person & { nullable_column: string },
95
- ): void
96
- }
package/deno.check.json DELETED
@@ -1,21 +0,0 @@
1
- {
2
- "$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json",
3
- "compilerOptions": {
4
- "types": ["./deno.check.d.ts"]
5
- },
6
- "imports": {
7
- "better-sqlite3": "npm:better-sqlite3",
8
- "kysely": "./dist/esm",
9
- "kysely/helpers/mssql": "./dist/esm/helpers/mssql.js",
10
- "kysely/helpers/mysql": "./dist/esm/helpers/mysql.js",
11
- "kysely/helpers/postgres": "./dist/esm/helpers/postgres.js",
12
- "kysely/helpers/sqlite": "./dist/esm/helpers/sqlite.js",
13
- "lodash/snakeCase": "npm:lodash/snakeCase",
14
- "mysql2": "npm:mysql2",
15
- "pg": "npm:pg",
16
- "pg-cursor": "npm:pg-cursor",
17
- "tarn": "npm:tarn",
18
- "tedious": "npm:tedious",
19
- "type-editor": "./deno.check.d.ts"
20
- }
21
- }