Files
aqi/internal/config/config_sqlite.go
ideaa 5c4cf1b2c0 *
2024-08-09 19:03:21 +08:00

15 lines
592 B
Go

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
}