-
Notifications
You must be signed in to change notification settings - Fork 960
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add information about database adapter
dbt-cratedb2
- Loading branch information
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
website/docs/docs/core/connect-data-platform/cratedb-setup.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- | ||
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'; | ||
|
||
<SetUpPages meta={frontMatter.meta}/> | ||
|
||
|
||
[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. | ||
|
||
<File name='~/.dbt/profiles.yml'> | ||
|
||
```yaml | ||
cratedb_analytics: | ||
target: dev | ||
outputs: | ||
dev: | ||
type: cratedb | ||
host: [clustername].aks1.westeurope.azure.cratedb.net | ||
port: 5432 | ||
user: [username] | ||
pass: [password] | ||
dbname: crate # CrateDB's only catalog is `crate`. | ||
schema: doc # Define schema. `doc` is the default. | ||
search_path: doc # Use the same value like `schema` by default. | ||
``` | ||
</File> | ||
[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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters