Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xata.io/kysely

Package Overview
Dependencies
Maintainers
3
Versions
1354
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xata.io/kysely - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

7

CHANGELOG.md
# @xata.io/kysely
## 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

@@ -4,0 +11,0 @@

4

package.json
{
"name": "@xata.io/kysely",
"version": "0.1.1",
"version": "0.1.2",
"description": "",

@@ -21,3 +21,3 @@ "main": "./dist/index.cjs",

"dependencies": {
"@xata.io/client": "0.26.1"
"@xata.io/client": "0.26.2"
},

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc