11 $project =~ s/.*=(.*)/$1/;
21 $db = DBI
->connect("dbi:SQLite:$name", "", "", {AutoCommit
=> 0});
23 $db->do("PRAGMA cache_size = 800000");
24 $db->do("PRAGMA journal_mode = OFF");
25 $db->do("PRAGMA count_changes = OFF");
26 $db->do("PRAGMA temp_store = MEMORY");
27 $db->do("PRAGMA locking = EXCLUSIVE");
30 sub load_manual_constraints
($$)
32 my $full_path = shift;
34 my $dir = dirname
($full_path);
35 my ($data, $op, $limit);
37 open(FILE
, "$dir/$project.constraints_required");
39 ($data, $op, $limit) = split(/,/);
43 $db->do("insert into constraints_required values (?, ?, ?);", undef, $data, $op, $limit);
50 connect_to_db
($db_file);
51 load_manual_constraints
($0, $project);