1 个仓库
Scoped blocks of code that temporarily redirect database operations to specific targets.
Distinct from Runtime Database Switching: Distinct from Runtime Database Switching: focuses on scoped context management (Python context managers) rather than general runtime switching of database files.
Explore 1 awesome GitHub repository matching data & databases · Database Context Managers. Refine with filters or upvote what's useful.
MongoEngine 是一个 Python 对象文档映射器(ODM),它将数据库记录转换为对象,从而为数据持久化提供面向对象的接口。它作为 MongoDB 的文档管理器和模式验证器,将类映射到文档以强制执行数据类型和验证规则。 该项目提供了一个延迟加载的 QuerySet 系统,用于使用 Pythonic 语法过滤、排序和聚合集合。它通过文档继承、递归嵌入式文档处理和基于引用的对象链接等功能管理复杂数据结构。 该库涵盖了广泛的功能,包括模式迁移、全文搜索以及通过 GridFS 文件系统管理大二进制文件。它还包括用于数据库索引优化、查询性能分析和基于信号的生命周期钩子的工具,以在文档事件期间自动化逻辑。
Provides a context manager to reroute document operations to different databases or collections.