Documentation ¶
Index ¶
Constants ¶
View Source
const (
MySQLDriver = "mysql"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBConfig ¶
type DBConfig struct { Driver string `json:"driver"` Host string `json:"host"` Port int64 `json:"port"` User string `json:"user"` Password string `json:"password"` Database string `json:"database"` Schema string `json:"schema"` Charset string `json:"charset"` SSLMode string `json:"sslMode"` }
DbConfig - dsn info for mysql database connection
func (*DBConfig) CheckValid ¶
func (*DBConfig) GenerateDSN ¶
DSN - connStr for connect to db
* - postgres: https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
Click to show internal directories.
Click to hide internal directories.