mirror of
https://github.com/wonli/aqi.git
synced 2025-12-24 10:40:58 +08:00
*
This commit is contained in:
14
internal/config/config_sqlite.go
Normal file
14
internal/config/config_sqlite.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Sqlite struct {
|
||||
Database string `yaml:"database"` // Path to the database file
|
||||
Prefix string `yaml:"prefix"` // Table prefix
|
||||
MaxIdleConns int `yaml:"maxIdleConns"` // Maximum number of idle connections in the pool
|
||||
MaxOpenConns int `yaml:"maxOpenConns"` // Maximum number of open connections to the database
|
||||
LogLevel int `yaml:"logLevel"` // Log level
|
||||
ConnMaxLifetime time.Duration `yaml:"connMaxLifetime"` // Maximum lifetime of connections
|
||||
}
|
||||
Reference in New Issue
Block a user