vertebra-spanner
Google Cloud Spanner client extension for Vertebra.
This package contains the compiled vertebra._spanner module that Vertebra's Google Cloud Spanner drivers run on. You don't import it directly. Install it through the vertebra-core extra so both packages stay on the same version:
pip install "vertebra-core[spanner]"
uv add "vertebra-core[spanner]"
Without it, the Google Cloud Spanner drivers raise MissingDependencyError.
Features
- GoogleSQL and PostgreSQL-dialect databases, built on the official
google-cloud-spanner Rust client.
- Multiplexed sessions, automatic retry of aborted transactions, and
BatchWrite.
- Data Boost partitioned reads into Arrow with
select_to_arrow.
- Change stream sources and support for the Spanner Emulator.
Usage
|
|
SQLSpec configs (vertebra.extensions.sqlspec) |
SpannerSyncConfig, SpannerAsyncConfig, SpangresSyncConfig, SpangresAsyncConfig |
Native config (vertebra.db.adapters.spanner) |
SpannerConfig |
| Drivers |
SyncSpannerDriver, AsyncSpannerDriver |
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