Skip to content

Commit 5047fa4

Browse files
committed
Refactor 'con' attribute to 'connexion' for clarity and consistency.
1 parent 3820cfb commit 5047fa4

File tree

1 file changed

+5
-5
lines changed
  • python/lsst/consdb/transformed_efd/dao

1 file changed

+5
-5
lines changed

python/lsst/consdb/transformed_efd/dao/base.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ class DBBase:
3939
Attributes
4040
----------
4141
engine (Engine): The database engine.
42-
con: The database connection.
42+
connexion: The database connection.
4343
dialect: The database dialect.
4444
db_uri (str): The URI of the database.
4545
4646
"""
4747

4848
engine: Engine = None
49-
con = None
49+
connexion = None
5050
dialect = None
5151
db_uri: str
5252

@@ -102,11 +102,11 @@ def get_con(self):
102102
The database connection.
103103
104104
"""
105-
if self.con is None:
105+
if self.connexion is None:
106106
engine = self.get_db_engine()
107-
self.con = engine.connect()
107+
self.connexion = engine.connect()
108108

109-
return self.con
109+
return self.connexion
110110

111111
def get_table(self, tablename, schema=None) -> Table:
112112
"""Retrieve a table object from the database.

0 commit comments

Comments
 (0)