Lines Matching refs:db
58 $db = $sqlite->getAdapter()->getPdo();
60 // $db->beginTransaction(); // translation already started
62 $res = $db->query($query);
64 $err = $db->errorInfo();
66 $db->rollBack();
70 // $db->commit(); // commit will be done inside SQLiteDB
91 $db = $sqlite->getAdapter()->getPdo();
93 // $db->beginTransaction(); // translation already started
95 $res = $db->query($query);
97 $err = $db->errorInfo();
99 $db->rollBack();
103 // $db->commit(); // commit will be done inside SQLiteDB
132 $db = $sqlite->getAdapter()->getPdo();
134 // $db->beginTransaction(); // translation already started
136 $res = $db->query($query);
138 $err = $db->errorInfo();
140 $db->rollBack();
147 // $db->commit(); // commit will be done inside SQLiteDB
154 $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
290 throw new Exception($db->errorInfo());
359 throw new Exception($db->errorInfo());
428 // $db->commit(); // commit will be done inside SQLiteDB
437 $db = $sqlite->getAdapter()->getPdo();
438 $db->commit(); // stop current transatction
439 $db->query('PRAGMA journal_mode=WAL');
440 $db->beginTransaction(); // recreate transaction