add ErrorFileNotFound util function

This commit is contained in:
2013-08-13 23:12:08 -04:00
parent bdd8032f29
commit f3b4294b23
3 changed files with 11 additions and 9 deletions

View File

@ -15,7 +15,7 @@ type AsinkDB struct {
func GetAndInitDB() (*AsinkDB, error) {
dbLocation := "asink-server.db" //TODO make me configurable
db, err := sql.Open("sqlite3", dbLocation)
db, err := sql.Open("sqlite3", "file:"+dbLocation+"?cache=shared&mode=rwc")
if err != nil {
return nil, err
}