Skip to content

Commit

Permalink
Update database.md to fix a link and clarify the Redshift specific co…
Browse files Browse the repository at this point in the history
…nsideration
  • Loading branch information
alison985 authored Jul 20, 2023
1 parent 40d8da0 commit dd64a6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/reference/resource-configs/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This is a work in progress document. While this configuration applies to multipl

## Definition

Optionally specify a custom database for a [model](docs/build/models) or [seed](/docs/build/seeds). (To specify a database for a [snapshot](/docs/build/snapshots), use the [`target_database` config](/reference/resource-configs/target_database)).
Optionally specify a custom database for a [model](/docs/build/sql-models) or [seed](/docs/build/seeds). (To specify a database for a [snapshot](/docs/build/snapshots), use the [`target_database` config](/reference/resource-configs/target_database)).

When dbt creates a relation (<Term id="table" />/<Term id="view" />) in a database, it creates it as: `{{ database }}.{{ schema }}.{{ identifier }}`, e.g. `analytics.finance.payments`

Expand Down Expand Up @@ -43,4 +43,4 @@ seeds:

## Warehouse specific information
* BigQuery: `project` and `database` are interchangeable
* Redshift: Cross-database queries are not possible in Redshift. As such, dbt will return a Database Error if you use this configuration.
* Redshift: Cross-database queries are not possible in Redshift. As such, dbt will return a Database Error if you use 'Database A' for a seed file and try to `{{ ref() }}` that seed file(or its database object) in a model using 'Database B'. This error would only be found at runtime.

0 comments on commit dd64a6e

Please sign in to comment.