Skip to content

Commit

Permalink
Make database/schema mandatory for all credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Beck committed Aug 6, 2019
1 parent 4faa633 commit 60f66fc
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 2 additions & 0 deletions core/dbt/adapters/base/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class Credentials(
Replaceable,
metaclass=abc.ABCMeta
):
database: str
schema: str
_ALIASES: ClassVar[Dict[str, str]] = field(default={}, init=False)

@abc.abstractproperty
Expand Down
2 changes: 0 additions & 2 deletions plugins/bigquery/dbt/adapters/bigquery/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ class BigQueryConnectionMethod(StrEnum):
@dataclass
class BigQueryCredentials(Credentials):
method: BigQueryConnectionMethod
database: str
schema: str
keyfile: Optional[str] = None
keyfile_json: Optional[Dict[str, Any]] = None
timeout_seconds: Optional[int] = 300
Expand Down
2 changes: 0 additions & 2 deletions plugins/postgres/dbt/adapters/postgres/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@

@dataclass
class PostgresCredentials(Credentials):
database: str
host: str
user: str
password: str
port: Port
schema: str
search_path: Optional[str]
keepalives_idle: Optional[int] = 0 # 0 means to use the default value

Expand Down
2 changes: 0 additions & 2 deletions plugins/snowflake/dbt/adapters/snowflake/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
class SnowflakeCredentials(Credentials):
account: str
user: str
database: str
schema: str
warehouse: Optional[str]
role: Optional[str]
password: Optional[str]
Expand Down

0 comments on commit 60f66fc

Please sign in to comment.