9 if (!defined($warns)) {
10 print "usage: $0 <project> <warns.txt>\n";
14 my $db = DBI
->connect("dbi:SQLite:smatch_db.sqlite", "", "", {AutoCommit
=> 0});
15 $db->do("PRAGMA synchronous = OFF");
16 $db->do("PRAGMA cache_size = 800000");
17 $db->do("PRAGMA journal_mode = OFF");
18 $db->do("PRAGMA count_changes = OFF");
19 $db->do("PRAGMA temp_store = MEMORY");
20 $db->do("PRAGMA locking = EXCLUSIVE");
24 open(WARNS
, "<$warns");
27 if (!($_ =~ /^.*? [^ ]*\(\) SQL: /)) {
30 ($dummy, $dummy, $sql) = split(/:/, $_, 3);