You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
357 B
Go
13 lines
357 B
Go
5 years ago
|
package store
|
||
|
|
||
|
// DBConfig represents the configuration of the underlying SQLite database.
|
||
|
type DBConfig struct {
|
||
|
DSN string // Any custom DSN
|
||
|
Memory bool // Whether the database is in-memory only.
|
||
|
}
|
||
|
|
||
|
// NewDBConfig returns a new DB config instance.
|
||
|
func NewDBConfig(dsn string, memory bool) *DBConfig {
|
||
|
return &DBConfig{DSN: dsn, Memory: memory}
|
||
|
}
|