insecure db options

This commit is contained in:
NatureFreshMilk 2019-01-23 16:11:58 +01:00
parent 3383c492c4
commit fb734c30f9

View File

@ -68,7 +68,7 @@ func (db *Sqlite3Accessor) RemoveTile(pos *coords.TileCoords) error {
}
func NewSqliteAccessor(filename string) (*Sqlite3Accessor, error) {
db, err := sql.Open("sqlite3", filename+"?_timeout=500")
db, err := sql.Open("sqlite3", filename+"?_timeout=500&_journal_mode=MEMORY&_synchronous=OFF")
if err != nil {
return nil, err
}