@vercel/postgres-kysely
Advanced tools
Comparing version 0.5.1 to 0.6.0
@@ -1,6 +0,6 @@ | ||
import { Kysely } from 'kysely'; | ||
import { KyselyConfig, Kysely } from 'kysely'; | ||
import { VercelPostgresPoolConfig } from '@vercel/postgres'; | ||
declare function createKysely<T>(config?: VercelPostgresPoolConfig): Kysely<T>; | ||
declare function createKysely<T>(poolConfig?: VercelPostgresPoolConfig, kyselyConfig?: Partial<KyselyConfig>): Kysely<T>; | ||
export { createKysely }; |
@@ -64,7 +64,8 @@ // src/index.ts | ||
}; | ||
function createKysely(config) { | ||
function createKysely(poolConfig, kyselyConfig) { | ||
return new Kysely({ | ||
...kyselyConfig, | ||
dialect: new VercelPostgresDialect({ | ||
...config, | ||
pool: createPool(config) | ||
...poolConfig, | ||
pool: createPool(poolConfig) | ||
}) | ||
@@ -71,0 +72,0 @@ }); |
{ | ||
"name": "@vercel/postgres-kysely", | ||
"version": "0.5.1", | ||
"version": "0.6.0", | ||
"description": "An @vercel/postgres wrapper for the kysely ORM", | ||
@@ -5,0 +5,0 @@ "homepage": "https://vercel.com", |
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
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
29966
148