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

drizzle-orm-pg

Package Overview
Dependencies
Maintainers
3
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drizzle-orm-pg - npm Package Compare versions

Comparing version 0.14.0-beta.2-f67992c to 0.14.0-beta.4-29bad0a

2

neondb/driver.d.ts

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

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