Unqdantic

Latest version: v0.2.0

Safety actively analyzes 625786 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.2.0

新特性
- 支持了 `startswith` 和 `endswith` 条件
- 支持了以 getitem 形式构造查询条件

破坏性变更
- 移除 `EmbededDocument`,可直接使用 `Pydantic.BaseModel` 作为嵌套文档

修复
- 文档的集合名继承错误问题

**Full Changelog**: https://github.com/CMHopeSunshine/unqdantic/compare/v0.1.2...v0.2.0

0.1.2

Fix:
- `Collection.filter` 在没有结果时错误地返回了 List,已正确修复为 None
- 修复了某些情况下,数据持久化保存失败的问题
- 修复 `Document.meta.name` 可能为None的问题

**Full Changelog**: https://github.com/CMHopeSunshine/unqdantic/compare/v0.1.1...v0.1.2

0.1.1

Feature:
- `Database.init_models`后,会将对应`db`和`name`赋值给`Document.meta`

Breaking:
- 将 Document 的`__meta__`和`__collection__`重命名为`meta`和`collection`
- `Collection`集合名现在默认使用类名的小写形式

Fix:
- 修复部分typing,以符合Python 3.8版本

Other:
- 更新 README 示例

**Full Changelog**: https://github.com/CMHopeSunshine/unqdantic/compare/v0.1.0...v0.1.1

0.1.0

**Full Changelog**: https://github.com/CMHopeSunshine/unqdantic/commits

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.