Configure SQLite connections with WAL journal mode, a 5-second busy timeout, shared cache, and a max of 1 open connection. SQLite only supports a single writer at a time, so without these settings concurrent API requests (e.g. bulk task creation) would immediately fail with "database is locked" instead of waiting and retrying. |
||
|---|---|---|
| .. | ||
| fixtures | ||
| db.go | ||
| db_path_test.go | ||
| dump.go | ||
| helpers.go | ||
| helpers_test.go | ||
| test.go | ||
| test_fixtures.go | ||