@@ 29,7 29,7 @@ type DB struct {
}
func openDB(filename string) (*DB, error) {
- sqlDB, err := sql.Open("sqlite3", filename+"?cache=shared")
+ sqlDB, err := sql.Open("sqlite3", filename+"?cache=shared&_foreign_keys=1")
if err != nil {
return nil, err
}