This commit is contained in:
ideaa
2024-08-09 18:52:02 +08:00
parent c522eb468c
commit 5c4cf1b2c0
18 changed files with 23 additions and 35 deletions

View 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
}