Skip to main content

dbt adapter for CrateDB 5.x, derived from dbt-postgres

Project description

dbt logo

CI Badge » Unit Tests CI Badge » Integration Tests

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

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbt_cratedb2-0.0.1.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

dbt_cratedb2-0.0.1-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

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

Hashes for dbt_cratedb2-0.0.1.tar.gz
Algorithm Hash digest
SHA256 09f980050ba82723e92df43e3b614a9f5d3071a2e2aa0546d5f8d4b89c4364e6
MD5 06f9b0ff2746cb1e7a77edbdd27ae0d3
BLAKE2b-256 9ef3b6fcd3527448bf373ce7fa573157d4e61354b75322274d385bb0989e16be

See more details on using hashes here.

File details

Details for the file dbt_cratedb2-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dbt_cratedb2-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1b0654c2d65afd730c88b982eff0e7e6759ecc645b87905cb77faf89766d5aa5
MD5 0fb328b2618548af210db74239ff0430
BLAKE2b-256 c145da094defffba587d8137a0fac42f9d12fc681df73f67cd274481698e6b3c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page