Socket
Socket
Sign inDemoInstall

@vercel/postgres

Package Overview
Dependencies
Maintainers
8
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/postgres - npm Package Compare versions

Comparing version 0.1.0-canary.27 to 0.1.0-canary.28

dist/chunk-CYS76DMV.cjs

2

dist/index-node.d.ts

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

export { V as VercelClient, a as VercelPool, d as VercelPostgresClientConfig, e as VercelPostgresPoolConfig, c as createClient, b as createPool, p as postgresConnectionString, s as sql } from './postgres-connection-string-2bcf1e7c.js';
export { VercelClient, VercelPool, VercelPostgresClientConfig, VercelPostgresPoolConfig, createClient, createPool, db, postgresConnectionString, sql } from './index.js';
export { Client, FieldDef, Pool, Query, QueryArrayConfig, QueryArrayResult, QueryConfig, QueryParse, QueryResult, QueryResultBase, QueryResultRow } from '@neondatabase/serverless';

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

import{a as t,b as f,c as m,d as e,e as i,f as n}from"./chunk-RARQ5RFB.js";import{neonConfig as o}from"@neondatabase/serverless";import r from"ws";o&&(o.webSocketConstructor=r);export{f as VercelClient,e as VercelPool,m as createClient,i as createPool,t as postgresConnectionString,n as sql};
import{a as t,b as f,c as m,d as e,e as i,f as n,g as p}from"./chunk-IHU7QAEO.js";import{neonConfig as o}from"@neondatabase/serverless";import r from"ws";o&&(o.webSocketConstructor=r);export{e as VercelClient,f as VercelPool,i as createClient,m as createPool,p as db,t as postgresConnectionString,n as sql};

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

export { V as VercelClient, a as VercelPool, d as VercelPostgresClientConfig, e as VercelPostgresPoolConfig, c as createClient, b as createPool, p as postgresConnectionString, s as sql } from './postgres-connection-string-2bcf1e7c.js';
import { ClientConfig, PoolConfig, Pool, QueryResultRow, QueryResult, Client } from '@neondatabase/serverless';
export { Client, FieldDef, Pool, Query, QueryArrayConfig, QueryArrayResult, QueryConfig, QueryParse, QueryResult, QueryResultBase, QueryResultRow } from '@neondatabase/serverless';
declare type ConfigItemsToOmit = 'user' | 'database' | 'password' | 'host' | 'port';
declare type VercelPostgresClientConfig = Omit<ClientConfig, ConfigItemsToOmit>;
declare type VercelPostgresPoolConfig = Omit<PoolConfig, ConfigItemsToOmit>;
declare type Primitive = string | number | boolean | undefined | null;
declare class VercelPool extends Pool {
/**
* A template literal tag providing safe, easy to use SQL parameterization.
* Parameters are substituted using the underlying Postgres database, and so must follow
* the rules of Postgres parameterization.
* @example
* ```ts
* const pool = createPool();
* const userId = 123;
* const result = await pool.sql`SELECT * FROM users WHERE id = ${userId}`;
* // Equivalent to: await pool.query('SELECT * FROM users WHERE id = $1', [id]);
* ```
* @returns A promise that resolves to the query result.
*/
sql<O extends QueryResultRow>(strings: TemplateStringsArray, ...values: Primitive[]): Promise<QueryResult<O>>;
}
declare function createPool(config?: VercelPostgresPoolConfig): VercelPool;
declare class VercelClient extends Client {
/**
* A template literal tag providing safe, easy to use SQL parameterization.
* Parameters are substituted using the underlying Postgres database, and so must follow
* the rules of Postgres parameterization.
* @example
* ```ts
* const pool = createClient();
* const userId = 123;
* await client.connect();
* const result = await pool.sql`SELECT * FROM users WHERE id = ${userId}`;
* // Equivalent to: await pool.query('SELECT * FROM users WHERE id = $1', [id]);
* await client.end();
* ```
* @returns A promise that resolves to the query result.
*/
sql<O extends QueryResultRow>(strings: TemplateStringsArray, ...values: Primitive[]): Promise<QueryResult<O>>;
}
declare function createClient(config?: VercelPostgresClientConfig): VercelClient;
declare function sql<O extends QueryResultRow>(strings: TemplateStringsArray, ...values: Primitive[]): Promise<QueryResult<O>>;
declare type ConnectionStringType = 'pool' | 'direct';
declare function postgresConnectionString(type?: ConnectionStringType): string | undefined;
declare const db: VercelPool;
export { VercelClient, VercelPool, VercelPostgresClientConfig, VercelPostgresPoolConfig, createClient, createPool, db, postgresConnectionString, sql };

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

import{a,b,c,d,e,f}from"./chunk-RARQ5RFB.js";export{b as VercelClient,d as VercelPool,c as createClient,e as createPool,a as postgresConnectionString,f as sql};
import{a,b,c,d,e,f,g}from"./chunk-IHU7QAEO.js";export{d as VercelClient,b as VercelPool,e as createClient,c as createPool,g as db,a as postgresConnectionString,f as sql};
{
"name": "@vercel/postgres",
"version": "0.1.0-canary.27",
"version": "0.1.0-canary.28",
"description": "Connect to Vercel Postgres databases on the Edge",

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

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