@xata.io/kysely
Advanced tools
Comparing version 0.0.0-alpha.v135c42c to 0.0.0-alpha.v185b813
# @xata.io/kysely | ||
## 0.0.0-alpha.v135c42c | ||
## 0.0.0-alpha.v185b813 | ||
@@ -8,4 +8,25 @@ ### Patch Changes | ||
- Updated dependencies []: | ||
- @xata.io/client@0.0.0-alpha.v135c42c | ||
- @xata.io/client@0.0.0-alpha.v185b813 | ||
## 0.1.4 | ||
### Patch Changes | ||
- Updated dependencies [[`7166797c`](https://github.com/xataio/client-ts/commit/7166797c28839198d20a9115d0414cebc2fed39b), [`b85df75f`](https://github.com/xataio/client-ts/commit/b85df75f2f466762a8b3d9824c9292c7e3db03fd)]: | ||
- @xata.io/client@0.26.4 | ||
## 0.1.3 | ||
### Patch Changes | ||
- Updated dependencies [[`4910dce2`](https://github.com/xataio/client-ts/commit/4910dce29d3cc17d13aadf32e4eb476ffb571fad)]: | ||
- @xata.io/client@0.26.3 | ||
## 0.1.2 | ||
### Patch Changes | ||
- Updated dependencies [[`22fccb51`](https://github.com/xataio/client-ts/commit/22fccb51709749c319897702c15749b74ce4b820)]: | ||
- @xata.io/client@0.26.2 | ||
## 0.1.1 | ||
@@ -12,0 +33,0 @@ |
{ | ||
"name": "@xata.io/kysely", | ||
"version": "0.0.0-alpha.v135c42c", | ||
"version": "0.0.0-alpha.v185b813", | ||
"description": "", | ||
@@ -21,3 +21,3 @@ "main": "./dist/index.cjs", | ||
"dependencies": { | ||
"@xata.io/client": "0.0.0-alpha.v135c42c" | ||
"@xata.io/client": "0.0.0-alpha.v185b813" | ||
}, | ||
@@ -24,0 +24,0 @@ "devDependencies": { |
@@ -26,9 +26,14 @@ # @xata.io/kysely | ||
import { Kysely } from 'kysely'; | ||
import { XataDialect } from '@xata.io/kysely'; | ||
import { XataDialect, Model } from '@xata.io/kysely'; | ||
import { DatabaseSchema, getXataClient } from './xata.ts'; | ||
const db = new Kysely<Database>({ | ||
xata // Your Xata client instance | ||
const xata = getXataClient(); | ||
const db = new Kysely<Model<DatabaseSchema>>({ | ||
dialect: new XataDialect({ xata }) | ||
}); | ||
const drivers = await db.selectFrom('users').select(['name', 'email']).execute(); | ||
``` | ||
`XataDialect` accepts your Xata client instance as its only option. You can find more information about creating a Xata client instance in our [getting started guide](https://xata.io/docs/getting-started/installation). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34910
39
21
+ Added@xata.io/client@0.0.0-alpha.v185b813(transitive)
- Removed@xata.io/client@0.0.0-alpha.v135c42c(transitive)