This commit is contained in:
NatureFreshMilk 2019-01-24 10:09:31 +01:00
parent e7b74187c5
commit 81188f68a7

View File

@ -70,6 +70,8 @@ func (db *Sqlite3Accessor) RemoveTile(pos *coords.TileCoords) error {
func NewSqliteAccessor(filename string) (*Sqlite3Accessor, error) {
//TODO: flag/config for unsafe db access
db, err := sql.Open("sqlite3", filename+"?_timeout=500&_journal_mode=MEMORY&_synchronous=OFF")
db.SetMaxOpenConns(1)
if err != nil {
return nil, err
}