package
Version:
v0.0.0-...-3cadddf
Opens a new window with list of versions in this module.
Published: Sep 26, 2020
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Open generate a database client
type Config struct {
User string `json:"user"`
Password string `json:"password"`
Host string `json:"host"`
Port string `json:"port"`
Name string `json:"name"`
Charset string `json:"charset"`
TablePrefix string `json:"tablePrefix"`
}
Database option for configurations
type Database struct {
*gorm.DB
}
Database is wrapped struct of *sql.DB
NewDatabase waper gorm.DB
Source Files
¶
Click to show internal directories.
Click to hide internal directories.