NoSQLite:在SQLite之上的NoSQL

时间:2024-02-23 13:06:55
【文件属性】:

文件名称:NoSQLite:在SQLite之上的NoSQL

文件大小:8KB

文件格式:ZIP

更新时间:2024-02-23 13:06:55

python database nosql storage sqlite

NoSQLite 受启发,以Python编写SQLite之上的超简单NoSQL样式数据存储 >>> from nosqlite import init, Document, Field >>> init(':memory:') >>> from nosqlite.view import view >>> class Movie(Document): ... indexes = ["director"] ... name = Field() ... director = Field() ... ... @view ... def count_by_director(self, docs, previous_result=None, is_new=False, deleted=False): ... """View funcs are called on save and on delete""" ... if is_new: ... if not previous_result: ...


【文件预览】:
NoSQLite-master
----nosqlite()
--------view.py(2KB)
--------db.py(1KB)
--------__init__.py(93B)
--------index.py(1KB)
--------tests.py(5KB)
--------document.py(7KB)
----requirements.txt(0B)
----.gitignore(218B)
----README.md(3KB)

网友评论