mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-02 03:39:03 +00:00
fix(ingest): add db name to postgres URNs (#2401)
This commit is contained in:
parent
2af4603e49
commit
9c2a30c3a1
@ -15,6 +15,12 @@ class PostgresConfig(BasicSQLAlchemyConfig):
|
||||
# defaults
|
||||
scheme = "postgresql+psycopg2"
|
||||
|
||||
def get_identifier(self, schema: str, table: str) -> str:
|
||||
regular = f"{schema}.{table}"
|
||||
if self.database:
|
||||
return f"{self.database}.{regular}"
|
||||
return regular
|
||||
|
||||
|
||||
class PostgresSource(SQLAlchemySource):
|
||||
def __init__(self, config, ctx):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user