drizzle-orm-pg
Advanced tools
Comparing version 0.14.0-beta.2-f67992c to 0.14.0-beta.4-29bad0a
@@ -20,2 +20,2 @@ import { Logger } from 'drizzle-orm'; | ||
export { PgDatabase } from '../db'; | ||
export declare function connect(client: NeonClient, config?: DrizzleConfig): Promise<PgDatabase>; | ||
export declare function drizzle(client: NeonClient, config?: DrizzleConfig): PgDatabase; |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.connect = exports.PgDatabase = exports.NeonDriver = void 0; | ||
exports.drizzle = exports.PgDatabase = exports.NeonDriver = void 0; | ||
const serverless_1 = require("@neondatabase/serverless"); | ||
@@ -35,11 +26,9 @@ const dialect_1 = require("../dialect"); | ||
Object.defineProperty(exports, "PgDatabase", { enumerable: true, get: function () { return db_1.PgDatabase; } }); | ||
function connect(client, config = {}) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const dialect = new dialect_1.PgDialect(); | ||
const driver = new NeonDriver(client, dialect, { logger: config.logger }); | ||
const session = driver.createSession(); | ||
return dialect.createDB(session); | ||
}); | ||
function drizzle(client, config = {}) { | ||
const dialect = new dialect_1.PgDialect(); | ||
const driver = new NeonDriver(client, dialect, { logger: config.logger }); | ||
const session = driver.createSession(); | ||
return dialect.createDB(session); | ||
} | ||
exports.connect = connect; | ||
exports.drizzle = drizzle; | ||
//# sourceMappingURL=driver.js.map |
{ | ||
"name": "drizzle-orm-pg", | ||
"version": "0.14.0-beta.2-f67992c", | ||
"version": "0.14.0-beta.4-29bad0a", | ||
"description": "Drizzle ORM package for PostgreSQL database", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
217971
3342