MCPcopy Index your code
hub / github.com/webpy/webpy / __init__

Method __init__

web/db.py:1391–1405  ·  view source on GitHub ↗
(self, **keywords)

Source from the content-addressed store, hash-verified

1389
1390class OracleDB(DB):
1391 def __init__(self, **keywords):
1392 import cx_Oracle as db
1393
1394 if "pw" in keywords:
1395 keywords["password"] = keywords.pop("pw")
1396
1397 # @@ TODO: use db.makedsn if host, port is specified
1398 keywords["dsn"] = keywords.pop("db")
1399 self.dbname = "oracle"
1400 db.paramstyle = "numeric"
1401 self.paramstyle = db.paramstyle
1402
1403 # oracle doesn't support pooling
1404 keywords.pop("pooling", None)
1405 DB.__init__(self, db, keywords)
1406
1407 def _process_insert_query(self, query, tablename, seqname):
1408 if seqname is None:

Callers

nothing calls this directly

Calls 2

popMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected