MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _get_version

Function _get_version

test/dialect/oracle/_oracledb_mode.py:6–14  ·  view source on GitHub ↗
(conn)

Source from the content-addressed store, hash-verified

4
5
6def _get_version(conn):
7 # this is the suggested way of finding the mode, from
8 # https://python-oracledb.readthedocs.io/en/latest/user_guide/tracing.html#finding-the-python-oracledb-mode
9 sql = (
10 "SELECT UNIQUE CLIENT_DRIVER "
11 "FROM V$SESSION_CONNECT_INFO "
12 "WHERE SID = SYS_CONTEXT('USERENV', 'SID')"
13 )
14 return conn.exec_driver_sql(sql).scalar()
15
16
17def run_thin_mode(url, queue, **kw):

Callers 2

run_thin_modeFunction · 0.85
run_thick_modeFunction · 0.85

Calls 2

scalarMethod · 0.45
exec_driver_sqlMethod · 0.45

Tested by

no test coverage detected