【文件属性】:
文件名称:jsreport-postgres-store:jsreport的postgres商店
文件大小:31KB
文件格式:ZIP
更新时间:2021-05-06 09:37:48
postgresql jsreport JavaScript
jsreport-postgres-store
模板存储扩展允许将数据持久存储在数据库中
安装
npm安装jsreport-postgres-store
然后更改jsreport配置
{
"store" : {
"provider" : "postgres"
} ,
"extensions" : {
"postgres-store" : {
"host" : "localhost" ,
"port" : 5433 ,
"database" : "jsreport" ,
"user" : "postgres" ,
"password" : "password"
}
}
}
在jsreport初始化之后,您应该在jsreport数据库中看到jsreport.TemplateType表。
模式变更
如果通过启用其他扩展来更改数据库模式,则需
【文件预览】:
jsreport-postgres-store-master
----.eslintrc(83B)
----lib()
--------main.js(3KB)
----.travis.yml(130B)
----jsreport.config.js(592B)
----test()
--------test.js(2KB)
----README.md(1KB)
----.gitignore(618B)
----index.js(230B)
----package-lock.json(99KB)
----package.json(947B)