https://github.com/anentropic/adbc-poolhouse
Connection pooling for ADBC drivers from typed warehouse configs.
https://github.com/anentropic/adbc-poolhouse
adbc connection-pool python
Last synced: 3 months ago
JSON representation
Connection pooling for ADBC drivers from typed warehouse configs.
- Host: GitHub
- URL: https://github.com/anentropic/adbc-poolhouse
- Owner: anentropic
- License: mit
- Created: 2026-02-23T16:42:17.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-02-28T00:31:48.000Z (3 months ago)
- Last Synced: 2026-02-28T03:34:04.570Z (3 months ago)
- Topics: adbc, connection-pool, python
- Language: Python
- Homepage: https://anentropic.github.io/adbc-poolhouse/
- Size: 569 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Agents: AGENTS.md
Awesome Lists containing this project
README
# adbc-poolhouse
[ [Docs](https://anentropic.github.io/adbc-poolhouse/) ]
Connection pooling for ADBC drivers from typed warehouse configs.
One config in, one pool out — `create_pool(SnowflakeConfig(...))` returns a ready-to-use SQLAlchemy QueuePool.
## Installation
```bash
pip install adbc-poolhouse
```
Driver extras are available for each supported warehouse (DuckDB, Snowflake, BigQuery, PostgreSQL, FlightSQL). See the [documentation](https://anentropic.github.io/adbc-poolhouse/) for the full list.
## Quick example
The example below uses DuckDB — no credentials or running server required.
```python
from adbc_poolhouse import DuckDBConfig, create_pool, close_pool
# File-backed database (connections share the same file)
config = DuckDBConfig(database="/tmp/warehouse.db")
pool = create_pool(config)
with pool.connect() as conn:
cursor = conn.cursor()
cursor.execute("SELECT 42 AS answer")
row = cursor.fetchone()
print(row) # (42,)
close_pool(pool)
```
`pool.connect()` checks out a connection from the pool and returns it when the `with` block exits. `close_pool(pool)` drains the pool and closes the underlying ADBC source connection.
## Supported warehouses
- DuckDB
- Snowflake
- BigQuery
- PostgreSQL
- FlightSQL
- Databricks
- Redshift
- Trino
- MSSQL / Azure SQL / Fabric
## Links
- [Documentation](https://anentropic.github.io/adbc-poolhouse/)
- [Changelog](https://anentropic.github.io/adbc-poolhouse/changelog/)
- [Source](https://github.com/anentropic/adbc-poolhouse)
- [PyPI](https://pypi.org/project/adbc-poolhouse/)
## License
MIT