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.12 to 0.1.13

2

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

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

@@ -5,2 +5,10 @@ # kysely-pg-client

## NOTICE
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.
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.
**For these reasons, it is advisable to use Pool and not to use the present library.**
## Introduction

@@ -7,0 +15,0 @@

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