Metadata-Version: 2.4
Name: vertebra-duckdb
Version: 0.5.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Rust
Classifier: Topic :: Database
Classifier: Typing :: Typed
Requires-Dist: vertebra-core==0.5.0
Summary: Native Rust DuckDB client extension for Vertebra.
License: MIT
Requires-Python: >=3.12
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Changelog, https://cofin.github.io/vertebra/changelog/
Project-URL: Documentation, https://cofin.github.io/vertebra/
Project-URL: Homepage, https://cofin.github.io/vertebra/
Project-URL: Issues, https://github.com/cofin/vertebra/issues
Project-URL: Source, https://github.com/cofin/vertebra/tree/main/src/rs/vertebra-duckdb

# vertebra-duckdb

DuckDB client extension for [Vertebra](https://cofin.github.io/vertebra/).

This package contains the compiled `vertebra._duckdb` module that Vertebra's DuckDB drivers run on. You don't import it directly. Install it through the `vertebra-core` extra so both packages stay on the same version:

```bash
pip install "vertebra-core[duckdb]"
uv add "vertebra-core[duckdb]"
```

Without it, the DuckDB drivers raise `MissingDependencyError`.

## Features

- Embedded DuckDB with single-writer, multi-reader access and savepoints.
- Zero-copy Arrow results over shared memory, plus the DuckDB `Appender` for bulk loads.
- Query pipelines and rotating GCS bearer secrets for `httpfs`.
- Add `vertebra-core[sqlalchemy-duckdb]` for SQLAlchemy `duckdb+vtb://` URLs.

## Usage

| | |
| --- | --- |
| SQLSpec configs (`vertebra.extensions.sqlspec`) | `DuckDBSyncConfig`, `DuckDBAsyncConfig` |
| Native config (`vertebra.db.adapters.duckdb`) | `DuckDBConfig` |
| Drivers | `SyncDuckDBDriver`, `AsyncDuckDBDriver` |

## Compatibility

- Python 3.12 to 3.15, including free-threaded builds.
- Prebuilt wheels for Linux (x86_64, aarch64; glibc 2.28+), macOS (x86_64, arm64), and Windows (x64).

## Links

- [Documentation](https://cofin.github.io/vertebra/)
- [Databases guide](https://cofin.github.io/vertebra/usage/databases/)
- [Source](https://github.com/cofin/vertebra/tree/main/src/rs/vertebra-duckdb)
- [Issues](https://github.com/cofin/vertebra/issues)
- [Changelog](https://cofin.github.io/vertebra/changelog/)

