@xata.io/kysely
Advanced tools
Comparing version 0.0.0-alpha.ve4dea1f to 0.0.0-alpha.ve540d44
# @xata.io/kysely | ||
## 0.0.0-alpha.ve4dea1f | ||
## 0.0.0-alpha.ve540d44 | ||
@@ -8,4 +8,18 @@ ### Patch Changes | ||
- Updated dependencies []: | ||
- @xata.io/client@0.0.0-alpha.ve4dea1f | ||
- @xata.io/client@0.0.0-alpha.ve540d44 | ||
## 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 +26,0 @@ |
{ | ||
"name": "@xata.io/kysely", | ||
"version": "0.0.0-alpha.ve4dea1f", | ||
"version": "0.0.0-alpha.ve540d44", | ||
"description": "", | ||
@@ -21,3 +21,3 @@ "main": "./dist/index.cjs", | ||
"dependencies": { | ||
"@xata.io/client": "0.0.0-alpha.ve4dea1f" | ||
"@xata.io/client": "0.0.0-alpha.ve540d44" | ||
}, | ||
@@ -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
34633
39
0
+ Added@xata.io/client@0.0.0-alpha.ve540d44(transitive)
- Removed@xata.io/client@0.0.0-alpha.ve4dea1f(transitive)