| 1389 | |
| 1390 | class 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: |