Definition at line 30 of file AtlTriggerDBCopy.py.
◆ __init__()
def AtlTriggerDBCopy.DBConnection.__init__ |
( |
|
self, |
|
|
|
dbalias |
|
) |
| |
◆ __enter__()
def AtlTriggerDBCopy.DBConnection.__enter__ |
( |
|
self | ) |
|
Definition at line 36 of file AtlTriggerDBCopy.py.
37 credentials = ConfigDBLoader.getConnectionParameters(self.dbalias)
38 self.connection, self.schema = ConfigDBLoader.getConnection(credentials)
39 print(f
"Opening connection to {self.dbalias}")
◆ __exit__()
def AtlTriggerDBCopy.DBConnection.__exit__ |
( |
|
self, |
|
|
|
type, |
|
|
|
value, |
|
|
|
traceback |
|
) |
| |
Definition at line 42 of file AtlTriggerDBCopy.py.
42 def __exit__(self, type, value, traceback):
43 self.connection.close()
44 print(f
"Closing connection to {self.dbalias}" )
◆ cursor()
def AtlTriggerDBCopy.DBConnection.cursor |
( |
|
self | ) |
|
◆ schema()
def AtlTriggerDBCopy.DBConnection.schema |
( |
|
self | ) |
|
◆ connection
AtlTriggerDBCopy.DBConnection.connection |
◆ dbalias
AtlTriggerDBCopy.DBConnection.dbalias |
◆ schema
AtlTriggerDBCopy.DBConnection.schema |
The documentation for this class was generated from the following file: