A jsreport extension that persists templates and reports in PostgreSQL. Current stable version is 1.4.0, release cadence is low (last release in 2019). Acts as a data store provider alternative to the default filesystem or MongoDB. Requires a running PostgreSQL instance and manual schema migration on extension changes. Not actively maintained but still functional with jsreport-core.
npm install jsreport-postgres-storeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes jsreport-core with the PostgreSQL store and inserts a template.
Manually drop tables (e.g., DROP TABLE IF EXISTS jsreport.TemplateType CASCADE;) and restart jsreport to recreate them.
Consider using jsreport-mongodb-store or filesystem store as alternatives.
Set provider in store configuration: { "store": { "provider": "postgres" } }Upgrade Node.js to >= 8.9
Correct: jsreport.use(require('jsreport-postgres-store')({...}))Set provider in jsreport config: { "store": { "provider": "postgres" } } and ensure extension is loaded with use()Ensure PostgreSQL is running and accessible. Check host, port, and network connectivity.
Create the user or provide valid credentials: CREATE ROLE postgres LOGIN PASSWORD 'password';
Reinitialize: drop the schema if needed and restart jsreport. Ensure all extensions that affect schema are loaded before init.