You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Incremental materializations](https://docs.getdbt.com/docs/build/incremental-models) (with `incremental_strategy='delete+insert'` and without involving [OBJECT](https://crate.io/docs/crate/reference/en/5.4/general/ddl/data-types.html#objects) columns)
84
-
85
-
We hope you find this useful. CrateDB is continuously adding new features and we will endeavor to come back and update this article if there are any developments and some of these overrides require changes or become obsolete.
86
-
63
+
At [cratedb-examples » framework/dbt], you can explore a few ready-to-run dbt
64
+
projects that demonstrate usage with CrateDB.
87
65
88
66
## Appendix
89
67
90
68
A few notes about advanced configuration options and general usage
91
69
information.
92
70
93
-
### CrateDB's Differences
94
-
- CrateDB’s fixed catalog name is `crate`, the default schema name is `doc`.
95
-
- CrateDB does not implement the notion of a database, however tables can be created in different [schemas](https://cratedb.com/docs/crate/reference/en/latest/general/ddl/create-table.html#ddl-create-table-schemas).
96
-
- When asked for a database name, specifying a schema name (any), or the fixed catalog name `crate` may be applicable.
97
-
- If a database-/schema-name is omitted while connecting, the PostgreSQL drivers may default to the “username”.
98
-
- The predefined [superuser](https://cratedb.com/docs/crate/reference/en/latest/admin/user-management.html#administration-user-management) on an unconfigured CrateDB cluster is called `crate`, defined without a password.
99
-
- For authenticating properly, please learn about the available [authentication](https://cratedb.com/docs/crate/reference/en/latest/admin/auth/index.html#admin-auth) options.
dbname: crate # CrateDB's only catalog is `crate`.
117
-
schema: doc # You can define any schema. `doc` is the default.
118
-
threads: [optional, 1 or more]
119
-
[keepalives_idle](#keepalives_idle): 0 # default 0, indicating the system default. See below
120
-
connect_timeout: 10# default 10 seconds
121
-
[retries](#retries): 1 # default 1 retry on error/timeout when opening connections
122
-
[search_path](#search_path): [optional, override the default postgres search_path]
123
-
[role](#role): [optional, set the role dbt assumes when executing queries]
124
-
[sslmode](#sslmode): [optional, set the sslmode used to connect to the database]
125
-
[sslcert](#sslcert): [optional, set the sslcert to control the certifcate file location]
126
-
[sslkey](#sslkey): [optional, set the sslkey to control the location of the private key]
127
-
[sslrootcert](#sslrootcert): [optional, set the sslrootcert config value to a new file path in order to customize the file location that contain root certificates]
128
-
```
129
-
130
71
### Search Path
131
72
The `search_path` config controls the CrateDB "search path" that dbt configures
132
73
when opening new connections to the database. By default, the CrateDB search
@@ -154,7 +95,78 @@ the name generation according to your needs.
154
95
{%- endmacro %}
155
96
```
156
97
98
+
### Full Connection Options
99
+
CrateDB targets should be set up using the following **dbt profile configuration** in
100
+
your [`profiles.yml`] file, which is identical to the [setup options of dbt-postgres].
dbname: crate # CrateDB's only catalog is `crate`.
112
+
schema: doc # You can define any schema. `doc` is the default.
113
+
threads: [optional, 1 or more]
114
+
[keepalives_idle]: 0# default 0, indicating the system default.
115
+
connect_timeout: 10# default 10 seconds
116
+
[retries]: 1# default 1 retry on error/timeout when opening connections
117
+
[search_path]: # optional, override the default postgres `search_path`
118
+
[role]: # optional, set the role dbt assumes when executing queries
119
+
[sslmode]: # optional, set the `sslmode` used to connect to the database
120
+
[sslcert]: # optional, set the `sslcert` to control the certificate file location
121
+
[sslkey]: # optional, set the `sslkey` to control the location of the private key
122
+
[sslrootcert]: # optional, set the `sslrootcert` config value to a new file path
123
+
# in order to customize the file location that contain root certificates
124
+
```
125
+
126
+
127
+
## Notes
128
+
129
+
### CrateDB's Differences
130
+
- CrateDB’s fixed catalog name is `crate`, the default schema name is `doc`.
131
+
- CrateDB does not implement the notion of a database, however tables can be created in different [schemas](https://cratedb.com/docs/crate/reference/en/latest/general/ddl/create-table.html#ddl-create-table-schemas).
132
+
- When asked for a database name, specifying a schema name (any), or the fixed catalog name `crate` may be applicable.
133
+
- If a database-/schema-name is omitted while connecting, the PostgreSQL drivers may default to the “username”.
134
+
- The predefined [superuser](https://cratedb.com/docs/crate/reference/en/latest/admin/user-management.html#administration-user-management) on an unconfigured CrateDB cluster is called `crate`, defined without a password.
135
+
- For authenticating properly, please learn about the available [authentication](https://cratedb.com/docs/crate/reference/en/latest/admin/auth/index.html#admin-auth) options.
136
+
137
+
### Feature Coverage
138
+
Those dbt features have been tested successfully with CrateDB.
0 commit comments