relational-pouch:将关系数据存储在PouchDBCouchDB中

时间:2021-05-02 13:04:44
【文件属性】:
文件名称:relational-pouch:将关系数据存储在PouchDBCouchDB中
文件大小:129KB
文件格式:ZIP
更新时间:2021-05-02 13:04:44
TypeScript 关系袋 var db = new PouchDB ( 'mydb' ) ; db . setSchema ( [ { singular : 'author' , plural : 'authors' , relations : { books : { hasMany : 'book' } } } , { singular : 'book' , plural : 'books' , relations : { author : { belongsTo : 'author' } } } ] ) ; db . rel . save ( 'author' , { name : 'George R. R. Martin' , id : 1 , books : [ 6 , 7 ] } ) . then ( function ( ) { return db . rel . save (
【文件预览】:
relational-pouch-master
----.gitignore(98B)
----webpack.test.node.config.js(2KB)
----package.json(3KB)
----package-lock.json(375KB)
----src()
--------uuid.ts(2KB)
--------browser.ts(49B)
--------index.ts(14KB)
----webpack.config.js(3KB)
----bin()
--------run-test.sh(549B)
--------run-couchdb-on-travis.sh(579B)
--------dev-server.js(4KB)
--------test-browser.js(4KB)
----.travis.yml(228B)
----LICENSE(11KB)
----tsconfig.json(425B)
----.eslintrc.js(799B)
----README.md(31KB)
----test.tsconfig.json(73B)
----.npmignore(63B)
----bower.json(555B)
----test()
--------test.ts(61KB)
--------bind-polyfill.js(921B)
--------index.html(523B)
--------webrunner.js(595B)

网友评论