-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract ConnectionName into its own module to prevent circular import
- Loading branch information
Showing
5 changed files
with
23 additions
and
26 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
exasol_advanced_analytics_framework/query_handler/context/connection_name.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from exasol_data_science_utils_python.schema.dbobject_name import DBObjectName | ||
from exasol_data_science_utils_python.schema.dbobject_name_impl import DBObjectNameImpl | ||
from typeguard import typechecked | ||
|
||
|
||
class ConnectionName(DBObjectName): | ||
"""A DBObjectName class which represents the name of a connection object""" | ||
|
||
@typechecked | ||
def __init__(self, connection_name: str): | ||
super().__init__(connection_name.upper()) | ||
|
||
|
||
class ConnectionNameImpl(DBObjectNameImpl, ConnectionName): | ||
|
||
@typechecked | ||
def __init__(self, connection_name: str): | ||
super().__init__(connection_name) |
20 changes: 1 addition & 19 deletions
20
exasol_advanced_analytics_framework/query_handler/context/connection_name_proxy.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
exasol_advanced_analytics_framework/query_handler/query/drop_connection_query.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters