homebox/backend/internal/sys/config/conf_database.go

12 lines
310 B
Go
Raw Permalink Normal View History

2022-08-30 02:30:36 +00:00
package config
const (
2022-09-04 03:14:19 +00:00
DriverSqlite3 = "sqlite3"
2022-08-30 02:30:36 +00:00
)
type Storage struct {
// Data is the path to the root directory
Data string `yaml:"data" conf:"default:./.data"`
SqliteURL string `yaml:"sqlite-url" conf:"default:./.data/homebox.db?_pragma=busy_timeout=999&_pragma=journal_mode=WAL&_fk=1"`
2022-08-30 02:30:36 +00:00
}