From 9b288ca6fcfbc8ab38ba5c5dc37ea34ef45bdee8 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Tue, 26 Nov 2024 21:42:27 +0100 Subject: [PATCH] Add information about database adapter `dbt-cratedb2` --- .../connect-data-platform/cratedb-setup.md | 60 +++++++++++++++++++ website/sidebars.js | 1 + 2 files changed, 61 insertions(+) create mode 100644 website/docs/docs/core/connect-data-platform/cratedb-setup.md diff --git a/website/docs/docs/core/connect-data-platform/cratedb-setup.md b/website/docs/docs/core/connect-data-platform/cratedb-setup.md new file mode 100644 index 00000000000..b936f061350 --- /dev/null +++ b/website/docs/docs/core/connect-data-platform/cratedb-setup.md @@ -0,0 +1,60 @@ +--- +title: "CrateDB setup" +description: "Read this guide to learn about the CrateDB warehouse setup in dbt." +id: "cratedb-setup" +meta: + maintained_by: Crate.io, Inc. + authors: 'CrateDB maintainers' + github_repo: 'crate/dbt-cratedb2' + pypi_package: 'dbt-cratedb2' + min_core_version: 'v1.0.0' + cloud_support: Supported + min_supported_version: 'n/a' + slack_channel_name: 'n/a' + slack_channel_link: 'https://community.cratedb.com/' + platform_name: 'CrateDB' + config_page: '/reference/resource-configs/postgres-configs' +--- + +import SetUpPages from '/snippets/_setup-pages-intro.md'; + + + + +[CrateDB] is compatible with PostgreSQL, so its dbt adapter strongly depends on +dbt-postgres, documented at [Postgres profile setup]. + +CrateDB targets are configured exactly the same way, with just a few things to +consider which are special to CrateDB. Relevant details are outlined at [using +dbt with CrateDB], which also includes up-to-date information. + + +## Profile Configuration + +CrateDB targets should be set up using a configuration like this minimal sample +of settings in your [`profiles.yml`] file. + + + +```yaml +company-name: + target: dev + outputs: + dev: + type: cratedb + host: [clustername].aks1.westeurope.azure.cratedb.net + user: [username] + password: [password] + port: 5432 + dbname: crate # CrateDB's only catalog is `crate`. + schema: doc # You can define any schema. `doc` is the default. +``` + + + + + +[CrateDB]: https://cratedb.com/database +[Postgres profile setup]: /docs/core/connect-data-platform/postgres-setup +[`profiles.yml`]: https://docs.getdbt.com/docs/core/connect-data-platform/profiles.yml +[using dbt with CrateDB]: https://cratedb.com/docs/guide/integrate/dbt/ diff --git a/website/sidebars.js b/website/sidebars.js index 04afb7c0c99..83739af9e6e 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -221,6 +221,7 @@ const sidebarSettings = { "docs/core/connect-data-platform/athena-setup", "docs/core/connect-data-platform/glue-setup", "docs/core/connect-data-platform/clickhouse-setup", + "docs/core/connect-data-platform/cratedb-setup", "docs/core/connect-data-platform/databend-setup", "docs/core/connect-data-platform/decodable-setup", "docs/core/connect-data-platform/doris-setup",