Skip to content

Commit

Permalink
chore: get connection and target
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhammehra4 committed Nov 15, 2024
1 parent 5af2167 commit 7031251
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ def __init__(
self.io = io_handler
self.fast_mode = fast_mode

def get_connection_and_target(self) -> Tuple[str, str]:
return self.client.get_connection_and_target()

def get_qualified_name(self, table: str) -> str:
"""Returns the fully qualified name of the table"""
return f"{self.db}.{self.schema}.{table}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def run(self, client: BaseClient):
new_table_names = self.upload_sample_data()
relevant_tables = self.find_relevant_tables(new_table_names)

conn_name, target = client.get_connection_and_target()
conn_name, target = self.db_manager.get_connection_and_target()
self.display_about_project_files(conn_name)
# pb_project.yaml
entity_name, id_types, id_graph_model = self.generate_pb_project(conn_name)
Expand Down

0 comments on commit 7031251

Please sign in to comment.