awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目MCP 服务器关于排名机制媒体报道
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
encode avatar

encode/databasesArchived

0
View on GitHub↗
4,002 星标·260 分支·Python·BSD-3-Clause·33 次浏览www.encode.io/databases↗

Databases

该项目是一个 asyncio 数据库抽象层,为在 Python 中执行非阻塞数据库操作提供了通用接口。它作为一个异步数据库驱动包装器和 SQL 表达式构建器,允许从结构化的 Python 对象构建原始 SQL 字符串。

该库包含一个 asyncio 连接池管理器,利用任务本地存储来处理连接生命周期并减少资源开销。它还作为异步数据库事务管理器,将操作包装在原子事务和保存点中以维护数据完整性。

该系统涵盖了广泛的功能,包括用于处理大数据集而不占用大量内存的异步数据流,以及数据库模式管理。此外,它还通过事务回滚隔离测试数据,为自动化数据库测试提供了工具。

Features

  • Database Abstraction Layers - Provides a unified asyncio interface for performing non-blocking database operations across multiple drivers.
  • Database Driver Abstractions - Provides a common abstraction layer that wraps multiple asynchronous database drivers for a consistent API.
  • Asynchronous Database Drivers - Provides non-blocking database operations via asynchronous drivers and structured query expressions.
  • Connection Pooling - Implements an asynchronous connection pooling system to optimize resource efficiency across Python tasks.
  • Connection Pools - Maintains a cache of reusable database connections to improve efficiency across asynchronous tasks.
  • Task-Local - Utilizes task-local storage in its connection pool manager to ensure connection reuse throughout specific asynchronous chains.
  • Connection Pool Managers - Automatically manages the lifecycle of database connections to optimize resource utilization.
  • Database Query Execution - Enables execution of SQL queries for data retrieval and schema modification through a common interface.
  • Database Transaction Management - Manages database transaction boundaries and savepoints to ensure atomic changes and data integrity.
  • Database Transactions - Ensures data consistency by wrapping multiple operations in ACID-compliant transactions and savepoints.
  • SQL Expression Builders - Ships a SQL expression builder that translates structured Python objects into raw SQL strings for execution.
  • Query Result Fetching - Offers asynchronous methods to retrieve single values, individual rows, or complete result sets.
  • Non-Blocking Event Loops - Implements a non-blocking event loop architecture to execute database I/O without pausing the Python main thread.
  • Cursor-Based Result Streamers - Provides asynchronous cursors to stream large database result sets incrementally and minimize memory usage.
  • Nested Transactions - Supports nested transactions and savepoints to group multiple database operations into atomic units.
  • Row-Based Result Streaming - Iterates through database records sequentially using asynchronous cursors to prevent high memory consumption.
  • SQL Query Builders - Offers a programmatic builder to construct raw SQL strings from structured Python objects.
  • Asynchronous Database Result Streams - Processes large database result sets by iterating over rows one by one to avoid high memory usage.
  • Transaction-Based Test Isolation - Provides automated database testing by isolating test data through mandatory transaction rollbacks.
  • Test Data Isolation - Isolates test data by wrapping each test case in a transaction that is rolled back upon completion.
  • Database Clients - Async database support.
  • Database Drivers - Async database access layer for SQLAlchemy core.
  • Query Builders - Async SQL query builder for SQLAlchemy Core.

Star 历史

encode/databases 的 Star 历史图表encode/databases 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Databases 的开源替代方案

相似的开源项目,按与 Databases 的功能重合度排序。
  • codeigniter4/codeigniter4codeigniter4 的头像

    codeigniter4/CodeIgniter4

    5,924在 GitHub 上查看↗

    CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web applications. It provides a lightweight toolkit with minimal configuration, organizing application logic into controllers, models, and views for clean separation of concerns. The framework includes a fluent query builder for constructing SQL statements programmatically, PSR-4 autoloading with namespace mapping, and a service-based dependency injection container for managing shared class instances. The framework distinguishes itself through its comprehensive set of built-in tools

    PHPcodeignitercodeigniter4framework-php
    在 GitHub 上查看↗5,924
  • doctrine/dbaldoctrine 的头像

    doctrine/dbal

    9,699在 GitHub 上查看↗

    This project is a SQL database abstraction layer that provides a consistent object-oriented interface for interacting with multiple relational database systems. It includes a driver wrapper to standardize connections and result sets, a fluent query builder for constructing portable SQL statements, and a type mapper for converting database-specific data types into native application types and vice versa. The library enables programmatic schema management through a schema manager that can introspect database metadata, model structures as objects, and generate the SQL required to migrate between

    PHPdatabaseibm-db2mariadb
    在 GitHub 上查看↗9,699
  • coleifer/peeweecoleifer 的头像

    coleifer/peewee

    11,971在 GitHub 上查看↗

    Peewee is a SQL object-relational mapper and query builder that provides an object-oriented interface for mapping application classes to relational database tables. It functions as a relational database toolkit for managing schemas, executing migrations, and handling complex table relationships. The project distinguishes itself by providing an asyncio database driver for non-blocking database operations, ensuring event loop responsiveness. It also supports semi-structured data storage, allowing the storage and querying of flexible JSON documents within traditional relational database systems.

    Pythonasynciodankfastapi
    在 GitHub 上查看↗11,971
  • magicstack/asyncpgMagicStack 的头像

    MagicStack/asyncpg

    7,953在 GitHub 上查看↗

    asyncpg is an asynchronous database driver and binary protocol client for PostgreSQL. It provides a non-blocking interface for executing SQL statements, streaming result sets, and managing data transfer between an application and a PostgreSQL database. The driver implements the PostgreSQL binary protocol directly to facilitate efficient data transfer and type conversion. It includes a connection pool to maintain and reuse open database connections, reducing the latency associated with repeated handshakes. The project covers a broad range of database integration capabilities, including atomic

    Pythonasync-programmingasync-pythonasyncio
    在 GitHub 上查看↗7,953
查看 Databases 的所有 30 个替代方案→

常见问题解答

encode/databases 是做什么的?

该项目是一个 asyncio 数据库抽象层,为在 Python 中执行非阻塞数据库操作提供了通用接口。它作为一个异步数据库驱动包装器和 SQL 表达式构建器,允许从结构化的 Python 对象构建原始 SQL 字符串。

encode/databases 的主要功能有哪些?

encode/databases 的主要功能包括:Database Abstraction Layers, Database Driver Abstractions, Asynchronous Database Drivers, Connection Pooling, Connection Pools, Task-Local, Connection Pool Managers, Database Query Execution。

encode/databases 有哪些开源替代品?

encode/databases 的开源替代品包括: codeigniter4/codeigniter4 — CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web… doctrine/dbal — This project is a SQL database abstraction layer that provides a consistent object-oriented interface for interacting… coleifer/peewee — Peewee is a SQL object-relational mapper and query builder that provides an object-oriented interface for mapping… magicstack/asyncpg — asyncpg is an asynchronous database driver and binary protocol client for PostgreSQL. It provides a non-blocking… tortoise/tortoise-orm — Tortoise ORM is an asynchronous object-relational mapper for Python that mirrors Django's model and queryset API while… sqlalchemy/sqlalchemy — SQLAlchemy is a comprehensive Python SQL toolkit and object-relational mapper that provides a full suite of tools for…