Revision 2803
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
376 | 376 |
|
377 | 377 |
connect = DbConn |
378 | 378 |
|
379 |
##### Querying |
|
380 |
|
|
381 |
def mogrify(db, query, params): |
|
382 |
module = util.root_module(db.db) |
|
383 |
if module == 'psycopg2': return db.db.cursor().mogrify(query, params) |
|
384 |
else: raise NotImplementedError("Can't mogrify query for "+module+ |
|
385 |
' database') |
|
386 |
|
|
387 | 379 |
##### Recoverable querying |
388 | 380 |
|
389 | 381 |
def with_savepoint(db, func): return db.with_savepoint(func) |
Also available in: Unified diff
sql.py: Removed unused mogrify()