【文件属性】:
文件名称:levelize:更好的leveldb使用
文件大小:39KB
文件格式:ZIP
更新时间:2021-02-03 11:38:31
level database nosql leveldb scratchese
:wrapped_gift: 平整
像mongo一样使用leveldb。
开源!
安装
$ npm i --save @amazingandyyy/levelize
# or
$ yarn add @amazingandyyy/levelize
用法
const process = require ( 'process' )
const level = require ( 'level' )
const Levelize = require ( '@amazingandyyy/levelize' )
const levelize = new Levelize ( level )
levelize . connect ( 'levelize-demo-2019' , {
location : process . cwd ( )
} )
const UserShema = levelize . schema ( {
username : String ,
password : String ,
email : String
} )
const userModel = le
【文件预览】:
levelize-master
----.circleci()
--------config.yml(965B)
----.gitignore(1KB)
----README.md(1KB)
----util.js(554B)
----LICENSE(1KB)
----package.json(1KB)
----index.js(2KB)
----package-lock.json(107KB)
----demo()
--------basic()