Lines Matching refs:db
22 my $db = DBI->connect("dbi:SQLite:$db_file", "", "",);
23 $db->do('attach "smatch_db.sqlite" as old_db');
24 $db->do('insert into constraints select * from old_db.constraints');
25 $db->disconnect();
28 my $db;
34 $db = DBI->connect("dbi:SQLite:$name", "", "", {AutoCommit => 0});
36 $db->do("PRAGMA cache_size = 800000");
37 $db->do("PRAGMA journal_mode = OFF");
38 $db->do("PRAGMA count_changes = OFF");
39 $db->do("PRAGMA temp_store = MEMORY");
40 $db->do("PRAGMA locking = EXCLUSIVE");
56 $db->do("insert or ignore into constraints (str) values ('$_')");
69 $db->do("insert or ignore into constraints (str) values ('$limit')");
74 $db->commit();
82 $db->commit();
83 $db->disconnect();