{"library":"pg-require-sql","type":"library","category":null,"description":"A Node.js module that loads SQL files from disk and exports them as parameterized query functions for use with the `pg` (node-postgres) library. v1.0.0, stable but no recent updates. Key differentiator: auto-generates named query functions from .sql files, reducing boilerplate when embedding SQL in Node.js applications. Not actively maintained; ESM imported with .js extension.","language":"javascript","status":"maintenance","version":"1.0.0","tags":["javascript","pg","sql","require","postgres"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install pg-require-sql","imports":["import loadQueries from 'pg-require-sql';","const queries = loadQueries(pathToDir, pgClient);","import loadQueries from 'pg-require-sql';"]},{"cmd":"yarn add pg-require-sql","imports":[]},{"cmd":"pnpm add pg-require-sql","imports":[]}],"homepage":"https://github.com/lanetix/node-pg-require-sql","github":"https://github.com/lanetix/node-pg-require-sql","docs":null,"changelog":null,"pypi":null,"npm":"pg-require-sql","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}