MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _update_db_opts

Function _update_db_opts

lib/sqlalchemy/dialects/oracle/provision.py:282–288  ·  view source on GitHub ↗

Set database options (db_opts) for a test database that we created.

(db_url, db_opts, options)

Source from the content-addressed store, hash-verified

280
281@update_db_opts.for_db("oracle")
282def _update_db_opts(db_url, db_opts, options):
283 """Set database options (db_opts) for a test database that we created."""
284 if (
285 options.oracledb_thick_mode
286 and sa_url.make_url(db_url).get_driver_name() == "oracledb"
287 ):
288 db_opts["thick_mode"] = True

Callers

nothing calls this directly

Calls 1

get_driver_nameMethod · 0.80

Tested by

no test coverage detected