{"id":18812630,"url":"https://github.com/jsreport/jsreport-postgres-store","last_synced_at":"2025-04-13T21:25:17.606Z","repository":{"id":57148975,"uuid":"50241359","full_name":"jsreport/jsreport-postgres-store","owner":"jsreport","description":"postgres store for jsreport","archived":false,"fork":false,"pushed_at":"2021-08-20T16:37:46.000Z","size":216,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-25T04:44:26.760Z","etag":null,"topics":["jsreport","postgresql"],"latest_commit_sha":null,"homepage":"https://jsreport.net","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsreport.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-23T14:16:28.000Z","updated_at":"2023-09-04T13:00:10.000Z","dependencies_parsed_at":"2022-09-06T00:02:29.605Z","dependency_job_id":null,"html_url":"https://github.com/jsreport/jsreport-postgres-store","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsreport%2Fjsreport-postgres-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsreport%2Fjsreport-postgres-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsreport%2Fjsreport-postgres-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsreport%2Fjsreport-postgres-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsreport","download_url":"https://codeload.github.com/jsreport/jsreport-postgres-store/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248783927,"owners_count":21161019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jsreport","postgresql"],"created_at":"2024-11-07T23:34:37.162Z","updated_at":"2025-04-13T21:25:17.566Z","avatar_url":"https://github.com/jsreport.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"**⚠️ This repository has been moved to the monorepo [jsreport/jsreport](https://github.com/jsreport/jsreport)**\n--\n\n# jsreport-postgres-store\n[![NPM Version](http://img.shields.io/npm/v/jsreport-postgres-store.svg?style=flat-square)](https://npmjs.com/package/jsreport-postgres-store)\n[![Build Status](https://travis-ci.org/jsreport/jsreport-postgres-store.png?branch=master)](https://travis-ci.org/jsreport/jsreport-postgres-store)\n\n**[jsreport](https://github.com/jsreport/jsreport) template store extension allowing to persist data in [PostgreSQL](http://www.postgresql.org/) database**\n\n\n## Installation\n\n\u003e npm install jsreport-postgres-store\n\nThen alter jsreport configuration\n```js\n{\n\t\"store\": {\n\t\t\"provider\": \"postgres\"\n\t},\n\t\"extensions\": {\n\t\t\"postgres-store\": {\n\t\t\t\"host\": \"localhost\",\n\t\t\t\"port\": 5433,\n\t\t\t\"database\": \"jsreport\",\n\t\t\t\"user\": \"postgres\",\n\t\t\t\"password\": \"password\"\n\t\t}\n\t}\n}\n```\n\nAfter jsreport initializes you should see tables like `jsreport.TemplateType` and other in `jsreport` database.\n\n## Schema changes\nIf you do changes to the database schema by enabling additional extensions you need to drop the affected tables and let jsreport to reinitialize them.\n\n\n## jsreport-core\nYou can apply this extension also manually to [jsreport-core](https://github.com/jsreport/jsreport-core)\n\n\n```js\nvar jsreport = require('jsreport-core')()\njsreport.use(require('jsreport-postgres-store')({ host: '...'}))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsreport%2Fjsreport-postgres-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsreport%2Fjsreport-postgres-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsreport%2Fjsreport-postgres-store/lists"}