CockroachDB adapter for SQLAlchemy
Project description
CockroachDB dialect for SQLAlchemy
Prerequisites
You must install either:
-
psycopg2, which has some prerequisites of its own.
The binary package is a practical choice for development and testing but in production it is advised to use the package built from sources.
Install and usage
Use pip
to install the latest version.
pip install sqlalchemy-cockroachdb
Use a cockroachdb
connection string when creating the Engine
. For example,
to connect to an insecure, local CockroachDB cluster:
from sqlalchemy import create_engine
engine = create_engine('cockroachdb://root@localhost:26257/defaultdb?sslmode=disable')
Changelog
See CHANGES.md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sqlalchemy-cockroachdb-1.3.3.tar.gz
.
File metadata
- Download URL: sqlalchemy-cockroachdb-1.3.3.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f11d151f3a4f6798cd0e0da50e9c5fa7c1597195d08fd1eba93308ed5fa0cae |
|
MD5 | 1d51a89e1f01b2f09b50fc04e2924844 |
|
BLAKE2b-256 | fe5713bb1ce751bc29b3b9a1b5ab0df74b4031b4c3cd84322ac8d2d23aec243a |
File details
Details for the file sqlalchemy_cockroachdb-1.3.3-py3-none-any.whl
.
File metadata
- Download URL: sqlalchemy_cockroachdb-1.3.3-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78a3e898002ca7b307ec34633c925dd0e28bf4fc246713848069822d88c4f5c8 |
|
MD5 | 714e12430cbfc127f643a4a629281863 |
|
BLAKE2b-256 | 3fc04b07f83feec6a7ea9005380668edfc26b06d50097bfbd15a2374028d1da4 |