Skip to content

Commit

Permalink
[Fix] Rename adapter type name and add default value for dbname
Browse files Browse the repository at this point in the history
Signed-off-by: Kent Huang <[email protected]>
  • Loading branch information
kentwelcome committed Sep 6, 2023
1 parent dbd399d commit cc41c8d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions dbt/adapters/piperideradapter/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ class PipeRiderAdapterCredentials(Credentials):
# port: int
# username: str
# password: str
database: str = "main"
schema: str = "main"
host: str = "somewhere"

_ALIASES = {"dbname": "database", "pass": "password", "user": "username"}
_ALIASES = {}

@property
def type(self):
"""Return name of adapter."""
return "piperideradapter"
return "piperider"

@property
def unique_field(self):
Expand All @@ -40,11 +43,11 @@ def _connection_keys(self):
"""
List of keys to display in the `dbt debug` output.
"""
return ("host", "port", "username", "user")
return ()


class PipeRiderAdapterConnectionManager(connection_cls):
TYPE = "piperideradapter"
TYPE = "piperider"

@contextmanager
def exception_handler(self, sql: str):
Expand Down

0 comments on commit cc41c8d

Please sign in to comment.