Discover Packages
git.kldmp.com/Golang/gobase
storage
package
Version:
v0.0.0-...-91c7ab2
Opens a new window with list of versions in this module.
Published: Mar 27, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const (
DB_TYPE_MYSQL = "mysql"
DB_TYPE_SQLITE = "sqlite"
)
type Database struct {
Type string `toml:"type"`
Sqlite Sqlite `toml:"sqlite"`
Mysql Mysql `toml:"mysql"`
MaxOpenConns int `toml:"max_open_conns"`
MaxIdleConns int `toml:"max_idle_conns"`
MaxLiftTime int64 `toml:"max_lift_time"`
}
type Mysql struct {
UserName string `toml:"username"`
Password string `toml:"passwd"`
Address string `toml:"address"`
Port int64 `toml:"port"`
DataBase string `toml:"database"`
}
type Sqlite struct {
DbFile string `toml:"db_file"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.