Documentation ¶
Index ¶
- func Connect(DBHost string, DBPort int, DBUserName string, DBPassword string, ...) (*gorm.DB, error)
- func SetConnMaxLifetime(conns int) mysqlOption
- func SetMaxIdleConns(conns int) mysqlOption
- func SetMaxOpenConns(conns int) mysqlOption
- func SetNamingStrategy(namingStrategy schema.Namer) mysqlOption
- func SetPrintLog(isenable bool, level logger.LogLevel, latencyThreshold time.Duration) mysqlOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetConnMaxLifetime ¶
func SetConnMaxLifetime(conns int) mysqlOption
func SetMaxIdleConns ¶
func SetMaxIdleConns(conns int) mysqlOption
func SetMaxOpenConns ¶
func SetMaxOpenConns(conns int) mysqlOption
func SetNamingStrategy ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.