Closed bergen288 closed 3 years ago
Why do you think those methods should be available? Your class doesn't inherit anything from cx_Oracle so it will only have whatever it has defined itself.
Sorry, it's my fault. I missed (). It should be cursor = conn.cursor(). Now all missing methods are available.
Thanks.
platform.platform: Windows-10-10.0.17763-SP0 sys.maxsize > 2**32: True platform.python_version: 3.8.2 cx_Oracle.version: 8.1.0 cx_Oracle.clientversion: (19, 6, 0, 0, 0)
with OracleDB(ora_config) as conn: cursor = conn.cursor for attr in dir(cursor): print(attr)
Oracle ODBC Connection established: <cx_Oracle.Connection to riskread@jxppoezi-scan.onefiserv.net:2501/pcedidbx_jxppoezi> call class delattr dir doc eq format ge getattribute gt hash init init_subclass le lt module name ne new qualname reduce reduce_ex repr self setattr sizeof str subclasshook __text_signature__
class OracleDB: def init(self, config) -> None: self.configuration = config