14 lines
295 B
Python
14 lines
295 B
Python
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
|
|
) |