Have an async connection pool in FastApi application. Using python-oracledb async connection pool (thin mode).
Trying to call Connection.gettype(name)
(await (await session.connection()).get_raw_connection()).cursor() have no attribute connection
await session.connection() and await (await session.connection()).get_raw_connection() have no attribute gettype
So how can I get user defined DbObjectType
In cx_Oracle connection's cursor I call this
# cursor: Connection cursor
# data: list):
my_type = cursor.get_connection().gettype('MY_SCHEMA.MY_TYPE_ARRAY').newobject()
my_type.extend(data)