jsreport-postgres-store

1.4.0 • Public • Published

jsreport-postgres-store

NPM Version Build Status

jsreport template store extension allowing to persist data in PostgreSQL database

Installation

npm install jsreport-postgres-store

Then alter jsreport configuration

{
	"store": {
		"provider": "postgres"
	},
	"extensions": {
		"postgres-store": {
			"host": "localhost",
			"port": 5433,
			"database": "jsreport",
			"user": "postgres",
			"password": "password"
		}
	}
}

After jsreport initializes you should see tables like jsreport.TemplateType and other in jsreport database.

Schema changes

If you do changes to the database schema by enabling additional extensions you need to drop the affected tables and let jsreport to reinitialize them.

jsreport-core

You can apply this extension also manually to jsreport-core

var jsreport = require('jsreport-core')()
jsreport.use(require('jsreport-postgres-store')({ host: '...'}))

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.4.0
    13
    • latest

Version History

Package Sidebar

Install

npm i jsreport-postgres-store

Weekly Downloads

30

Version

1.4.0

License

none

Unpacked Size

9.03 kB

Total Files

9

Last publish

Collaborators

  • pofider
  • bjrmatos