aqi/config/config_sqlite.go

15 lines
592 B
Go
Raw Permalink Normal View History

2024-06-18 18:08:39 +08:00
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
}