Repository Details
Shared by
HelloGitHub Rating
0 ratings
TinyDB 是使用纯 Python 编写的 NoSQL 数据库,使用 json 文件存储数据
Past 7 days Received 2 stars ✨
Use arrow keys to explore dates, Home and End for the first and last date, Escape to dismiss.| Date | Star | Daily change |
|---|---|---|
| 周二 | 7,579 | — |
| 周三 | 7,580 | +1 |
| 周四 | 7,580 | 0 |
| 周五 | 7,579 | -1 |
| 周六 | 7,579 | 0 |
| 周日 | 7,580 | +1 |
| 周一 | 7,581 | +1 |
7.6k
Stars
No
Chinese
Python
Language
Yes
Active
103
Contributors
9
Issues
No
Organization
None
Latest
651
Forks
MIT
License

TinyDB 是使用纯 Python 编写的 NoSQL 数据库,使用 json 文件存储数据。它区别于 SQLite 的关系性数据库。同样的小、不需要依赖外部服务器。适用于桌面程序、客户端,不适用于 Web 应用、高性能的数据查询。友好的 API,示例代码:
```python
>>> from tinydb import TinyDB, Query
>>> db = TinyDB('path/to/db.json')
>>> User = Query()
>>> db.insert({'name': 'John', 'age': 22})
>>> db.search(User.name == 'John')
[{'name': 'John', 'age': 22}]
```
Included in:
Vol.29
Comments
Rating:
No comments yet