dbt adapter for CrateDB 5.x, derived from dbt-postgres
Project description
dbt-cratedb2
The dbt-cratedb2
package contains all the code enabling dbt to work with a
CrateDB database.
Because CrateDB is PostgreSQL-compatible, dbt-cratedb2 heavily builds upon the canonical dbt-postgres adapter. For more information on using dbt with CrateDB, consult the docs.
About dbt
dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications.
dbt is the T in ELT. Organize, cleanse, denormalize, filter, rename, and pre-aggregate the raw data in your warehouse so that it's ready for analysis.
Getting started
- Install dbt
- Read the introduction and viewpoint
Installation
Install dbt-cratedb2.
pip install 'dbt-cratedb2 @ git+https://github.com/crate-workbench/dbt-cratedb2.git'
psycopg2-binary
vs. psycopg2
By default, dbt-cratedb2
installs psycopg2-binary
. This is great for development, and even testing, as it does not require any OS dependencies; it's a pre-built wheel. However, building psycopg2
from source will grant performance improvements that are desired in a production environment. In order to install psycopg2
, use the following steps:
if [[ $(pip show psycopg2-binary) ]]; then
PSYCOPG2_VERSION=$(pip show psycopg2-binary | grep Version | cut -d " " -f 2)
pip uninstall -y psycopg2-binary
pip install psycopg2==$PSYCOPG2_VERSION
fi
This ensures the version of psycopg2
will match that of psycopg2-binary
.
Contribute
- Want to report a bug or request a feature? Let us know by opening an issue
- Want to help us build dbt-cratedb2? Check out the contributing guide
- Join the community on the CrateDB Community Discourse
Code of Conduct
Everyone interacting with Crate.io's codebases, issue trackers, chat rooms, and mailing lists, please follow the CrateDB Code of Conduct.
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 dbt_cratedb2-0.0.1.tar.gz
.
File metadata
- Download URL: dbt_cratedb2-0.0.1.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09f980050ba82723e92df43e3b614a9f5d3071a2e2aa0546d5f8d4b89c4364e6 |
|
MD5 | 06f9b0ff2746cb1e7a77edbdd27ae0d3 |
|
BLAKE2b-256 | 9ef3b6fcd3527448bf373ce7fa573157d4e61354b75322274d385bb0989e16be |
File details
Details for the file dbt_cratedb2-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: dbt_cratedb2-0.0.1-py3-none-any.whl
- Upload date:
- Size: 21.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b0654c2d65afd730c88b982eff0e7e6759ecc645b87905cb77faf89766d5aa5 |
|
MD5 | 0fb328b2618548af210db74239ff0430 |
|
BLAKE2b-256 | c145da094defffba587d8137a0fac42f9d12fc681df73f67cd274481698e6b3c |