@xata.io/kysely
Advanced tools
Comparing version 0.0.0-alpha.vc78ac7904623987288bed48cbae6c21696976a11 to 0.0.0-alpha.vc793ac53a626889c15a1bfddd74c6933b4d14f0e
# @xata.io/kysely | ||
## 0.0.0-alpha.vc78ac7904623987288bed48cbae6c21696976a11 | ||
## 0.0.0-alpha.vc793ac53a626889c15a1bfddd74c6933b4d14f0e | ||
### Major Changes | ||
### Patch Changes | ||
- [#1370](https://github.com/xataio/client-ts/pull/1370) [`e2c656c`](https://github.com/xataio/client-ts/commit/e2c656c44d9cb68b2d822f23f44a516a51627528) Thanks [@SferaDev](https://github.com/SferaDev)! - Version 1.0 | ||
- Force canary build | ||
- Updated dependencies []: | ||
- @xata.io/client@0.0.0-alpha.vc793ac53a626889c15a1bfddd74c6933b4d14f0e | ||
## 0.2.1 | ||
### Patch Changes | ||
- Force canary build | ||
- Updated dependencies [[`8fe6fbf`](https://github.com/xataio/client-ts/commit/8fe6fbf3e6f0983723d770c942a5a202eee6fb8f)]: | ||
- @xata.io/client@0.30.1 | ||
- Updated dependencies [[`ef72862`](https://github.com/xataio/client-ts/commit/ef72862422aa258c01c893f93e9f5a18d89c482b), [`e2c656c`](https://github.com/xataio/client-ts/commit/e2c656c44d9cb68b2d822f23f44a516a51627528)]: | ||
- @xata.io/client@0.0.0-alpha.vc78ac7904623987288bed48cbae6c21696976a11 | ||
## 0.2.0 | ||
### Minor Changes | ||
- [#1535](https://github.com/xataio/client-ts/pull/1535) [`40f97d5`](https://github.com/xataio/client-ts/commit/40f97d53091af3d268fe40b4e027245270d42a26) Thanks [@SferaDev](https://github.com/SferaDev)! - Improve types | ||
### Patch Changes | ||
- Updated dependencies [[`cc673c9`](https://github.com/xataio/client-ts/commit/cc673c9a7885351082020e360630eab5db78c652)]: | ||
- @xata.io/client@0.30.0 | ||
## 0.1.22 | ||
### Patch Changes | ||
- [#1491](https://github.com/xataio/client-ts/pull/1491) [`f4a5ee7`](https://github.com/xataio/client-ts/commit/f4a5ee707dd04280f59919c97ff9cc0b1e9b01e6) Thanks [@SferaDev](https://github.com/SferaDev)! - [Kysely] Add consistency to client initialization | ||
## 0.1.21 | ||
### Patch Changes | ||
- Updated dependencies [[`6b754d2`](https://github.com/xataio/client-ts/commit/6b754d2f6a1f7b9378a96fe27502ff6c29ff5ed8)]: | ||
- @xata.io/client@0.29.5 | ||
## 0.1.20 | ||
### Patch Changes | ||
- Updated dependencies [[`2140a24`](https://github.com/xataio/client-ts/commit/2140a24f32a94f36bab8c8268033c7dcf235dddc), [`d8032f2`](https://github.com/xataio/client-ts/commit/d8032f2e07bdcc653db1606796d27f08d397cdbe)]: | ||
- @xata.io/client@0.29.4 | ||
## 0.1.19 | ||
### Patch Changes | ||
- Updated dependencies [[`02053fb`](https://github.com/xataio/client-ts/commit/02053fbb10479b8e9453691f957d3235762555aa), [`e27cb74`](https://github.com/xataio/client-ts/commit/e27cb74143aa9b6c654713878e5d3776858e5290)]: | ||
- @xata.io/client@0.29.3 | ||
## 0.1.18 | ||
@@ -17,0 +58,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { SQLPluginResult, XataRecord, XataPlugin, XataPluginOptions, EditableData } from '@xata.io/client'; | ||
import { SQLPluginResult, XataRecord, XataPlugin, XataPluginOptions } from '@xata.io/client'; | ||
import { Dialect, PostgresAdapter, Driver, QueryCompiler, Kysely, DatabaseIntrospector, DatabaseConnection, CompiledQuery, QueryResult } from 'kysely'; | ||
@@ -8,2 +8,7 @@ | ||
}; | ||
/** | ||
* The consistency level to use when reading data. | ||
* @default 'strong' | ||
*/ | ||
consistency?: 'strong' | 'eventual'; | ||
}; | ||
@@ -40,6 +45,26 @@ declare class XataDialect implements Dialect { | ||
} | ||
type Model<Schemas extends Record<string, XataRecord>> = { | ||
[Model in keyof Schemas]: EditableData<Schemas[Model]>; | ||
type XataFilePgFields = { | ||
id?: string; | ||
mediaType?: string; | ||
size?: number; | ||
name?: string; | ||
enablePublicUrl?: boolean; | ||
signedUrlTimeout?: number; | ||
storageKey?: string; | ||
uploadKey?: string; | ||
uploadUrlTimeout?: number; | ||
version?: number; | ||
}; | ||
type RowTypeFields<T> = T extends { | ||
mediaType?: string; | ||
} ? XataFilePgFields : T extends Array<{ | ||
mediaType?: string; | ||
}> ? XataFilePgFields[] : T; | ||
type RowType<O> = { | ||
[K in keyof O]: RowTypeFields<NonNullable<O[K]>>; | ||
}; | ||
type Model<Schemas extends Record<string, any>> = { | ||
[Model in keyof Schemas]: RowType<Schemas[Model]>; | ||
}; | ||
export { KyselyPlugin, type KyselyPluginResult, type Model, XataConnection, XataDialect, type XataDialectConfig, XataDriver }; |
{ | ||
"name": "@xata.io/kysely", | ||
"version": "0.0.0-alpha.vc78ac7904623987288bed48cbae6c21696976a11", | ||
"version": "0.0.0-alpha.vc793ac53a626889c15a1bfddd74c6933b4d14f0e", | ||
"description": "", | ||
@@ -21,9 +21,9 @@ "main": "./dist/index.cjs", | ||
"dependencies": { | ||
"@xata.io/client": "0.0.0-alpha.vc78ac7904623987288bed48cbae6c21696976a11" | ||
"@xata.io/client": "0.0.0-alpha.vc793ac53a626889c15a1bfddd74c6933b4d14f0e" | ||
}, | ||
"devDependencies": { | ||
"kysely": "^0.27.2" | ||
"kysely": "^0.27.4" | ||
}, | ||
"peerDependencies": { | ||
"kysely": "^0.26.1" | ||
"kysely": "*" | ||
}, | ||
@@ -30,0 +30,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
46808
11
350
+ Added@xata.io/client@0.0.0-alpha.vc793ac53a626889c15a1bfddd74c6933b4d14f0e(transitive)
+ Addedkysely@0.27.5(transitive)
- Removed@xata.io/client@0.0.0-alpha.vc78ac7904623987288bed48cbae6c21696976a11(transitive)
- Removedkysely@0.26.3(transitive)
Updated@xata.io/client@0.0.0-alpha.vc793ac53a626889c15a1bfddd74c6933b4d14f0e