{"library":"pg-batch-query","type":"library","category":null,"description":"pg-batch-query v1.4.5 is a lightweight PostgreSQL batch query library that uses the Extended Query Protocol to triple query throughput by batching multiple parameter sets into a single parse-bind-execute sync cycle. It is a thin wrapper around the popular 'pg' driver, requiring Node 22+. Unlike naive Promise.all or individual queries, it sends multiple binds/exeutes over one connection without waiting for results until Sync. Ships TypeScript types. Infrequent releases, maintained by iamkhush. Differentiator: performance gains through wire protocol batching vs. sequential or concurrent pg queries.","language":"javascript","status":"active","version":"1.4.5","tags":["javascript","postgres","batch-query","pg","query","typescript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install pg-batch-query","imports":["import BatchQuery from 'pg-batch-query'","const BatchQuery = require('pg-batch-query').default","const batch = new BatchQuery<User>({ name: 'q', text: '...', values: [['a'], ['b']] })"]},{"cmd":"yarn add pg-batch-query","imports":[]},{"cmd":"pnpm add pg-batch-query","imports":[]}],"homepage":"https://github.com/iamkhush/pg-batch-query#readme","github":"ssh://git@github.com/iamkhush/pg-batch-query","docs":null,"changelog":null,"pypi":null,"npm":"pg-batch-query","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}