first commit
This commit is contained in:
1 parent
1e35cf91f7
commit
bae26c43d0
9 files changed
+311
No files matched your search
@@ -0,0 +1,7 @@
|
||||
class OracleDB:
|
||||
|
||||
def __init__(self, connector):
|
||||
self.connector = connector
|
||||
|
||||
def get_connection(self):
|
||||
return self.connector.get_connection()
|
||||
@@ -0,0 +1,14 @@
|
||||
import oracledb
|
||||
|
||||
|
||||
class OracleConnector:
|
||||
|
||||
def __init__(self, config):
|
||||
self.config = config
|
||||
|
||||
def get_connection(self):
|
||||
return oracledb.connect(
|
||||
user=self.config.db_user,
|
||||
password=self.config.db_password,
|
||||
dsn=self.config.db_dsn
|
||||
)
|
||||
Reference in new issue
Block a user