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

@xata.io/kysely

Package Overview
Dependencies
Maintainers
0
Versions
1352
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.0.0-alpha.v6533367136ade9fdad8c4515b62eba0f5f4396b1 to 0.0.0-alpha.v659c71ff7bc8f52a69f086e2c44666320cca7a5d

test/kysely.test.ts

31

CHANGELOG.md
# @xata.io/kysely
## 0.0.0-alpha.v6533367136ade9fdad8c4515b62eba0f5f4396b1
## 0.0.0-alpha.v659c71ff7bc8f52a69f086e2c44666320cca7a5d
### Major Changes
### Patch Changes
- [#1473](https://github.com/xataio/client-ts/pull/1473) [`0a60b36`](https://github.com/xataio/client-ts/commit/0a60b3612f7fba050eb3c73b0b3b7a73e58ff26f) Thanks [@eemmiillyy](https://github.com/eemmiillyy)! - Version 1.0
- Force canary build
- Updated dependencies []:
- @xata.io/client@0.0.0-alpha.v659c71ff7bc8f52a69f086e2c44666320cca7a5d
## 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
- Force canary build
- 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

@@ -14,0 +37,0 @@

@@ -0,1 +1,2 @@

import { SQLPluginResult, XataRecord, XataPlugin, XataPluginOptions } from '@xata.io/client';
import { Dialect, PostgresAdapter, Driver, QueryCompiler, Kysely, DatabaseIntrospector, DatabaseConnection, CompiledQuery, QueryResult } from 'kysely';

@@ -5,4 +6,9 @@

xata: {
sql: any;
sql: SQLPluginResult;
};
/**
* The consistency level to use when reading data.
* @default 'strong'
*/
consistency?: 'strong' | 'eventual';
};

@@ -35,6 +41,30 @@ declare class XataDialect implements Dialect {

type KyselyPluginResult<Schemas extends Record<string, XataRecord>> = Kysely<Model<Schemas>>;
declare class KyselyPlugin<Schemas extends Record<string, XataRecord>> extends XataPlugin {
build(pluginOptions: XataPluginOptions): KyselyPluginResult<Schemas>;
}
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]: Schemas[Model];
[Model in keyof Schemas]: RowType<Schemas[Model]>;
};
export { type Model, XataConnection, XataDialect, type XataDialectConfig, XataDriver };
export { KyselyPlugin, type KyselyPluginResult, type Model, XataConnection, XataDialect, type XataDialectConfig, XataDriver };

10

package.json
{
"name": "@xata.io/kysely",
"version": "0.0.0-alpha.v6533367136ade9fdad8c4515b62eba0f5f4396b1",
"version": "0.0.0-alpha.v659c71ff7bc8f52a69f086e2c44666320cca7a5d",
"description": "",

@@ -20,8 +20,10 @@ "main": "./dist/index.cjs",

},
"dependencies": {},
"dependencies": {
"@xata.io/client": "0.0.0-alpha.v659c71ff7bc8f52a69f086e2c44666320cca7a5d"
},
"devDependencies": {
"kysely": "^0.27.3"
"kysely": "^0.27.4"
},
"peerDependencies": {
"kysely": "^0.26.1"
"kysely": "*"
},

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

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