mirror of
https://github.com/navidrome/navidrome.git
synced 2026-05-03 06:51:16 +00:00
21 lines
791 B
Go
21 lines
791 B
Go
package conf
|
|
|
|
// sqliteOptions configures SQLite database behavior
|
|
type sqliteOptions struct {
|
|
// JournalMode sets the SQLite journal mode (WAL, DELETE, etc)
|
|
// Default: WAL - provides better concurrency but may not work on network filesystems
|
|
JournalMode string `json:",omitzero"`
|
|
|
|
// BusyTimeout sets how long SQLite should wait for locks to clear (milliseconds)
|
|
// Default: 5000 - waits up to 5 seconds before returning "database is locked"
|
|
BusyTimeout int `json:",omitzero"`
|
|
|
|
// SyncMode controls how aggressively SQLite writes to disk
|
|
// Default: NORMAL - good balance of safety and performance
|
|
SyncMode string `json:",omitzero"`
|
|
|
|
// MaxConnections limits concurrent database connections
|
|
// Default: 0 (uses max(4, runtime.NumCPU()))
|
|
MaxConnections int `json:",omitzero"`
|
|
}
|