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

kysely-pg-client

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kysely-pg-client - npm Package Compare versions

Comparing version 0.1.13 to 0.1.14

2

package.json
{
"name": "kysely-pg-client",
"version": "0.1.13",
"version": "0.1.14",
"author": "Joseph T. Lapp <arachnojoe@gmail.com>",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -7,3 +7,3 @@ # kysely-pg-client

This package allows Kysely to be used with a [node-postgres](https://github.com/brianc/node-postgres) (pg) [Client](https://node-postgres.com/apis/client) class rather than a [Pool](https://node-postgres.com/apis/pool) class for the purpose of reducing unnecessary overhead in serverless environments. However, the Pool class has a potential performance advantage even serverless: it allows for the lazy construction of the connection. If a serverless function has multiple independent modules that each may or may not create a connection, having them use a common Pool allows them to only create the connection if needed and to share that connection when created.
This package allows Kysely to be used with a [node-postgres](https://github.com/brianc/node-postgres) (pg) [Client](https://node-postgres.com/apis/client) class rather than a [Pool](https://node-postgres.com/apis/pool) class for the purpose of reducing unnecessary overhead in serverless environments. However, the Pool class has a potential performance advantage even serverless: it allows for the lazy construction of the connection. If a serverless function has multiple independent modules that each may or may not create a connection, having them use a common Pool allows them to only create the connection if needed and yet share the same connection.

@@ -10,0 +10,0 @@ Also, given that Pool is the more flexible configuration, libraries tend to allow for configuration via Pool but not via Client, limiting the compatibility of a Client solution with other libraries. [Lucia](https://lucia-auth.com/) for authentication is one example.

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