Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMysqlGorm ¶
func GetMysqlGorm( ctx context.Context, input GetMysqlGormInput, ) (*gorm.DB, stackerr.Error)
Gets a GORM DB handle for a MySQL database
Types ¶
type GetMysqlGormInput ¶
type GetMysqlGormInput struct { // REQUIRED: Input values for the write dialector WriteDialectorInput dialectors.MysqlDialectorInput // OPTIONAL: Input values for the read dialector ReadDialectorInput dialectors.MysqlDialectorInput // OPTIONAL: A set of GORM options to use for the connections GormOptions []gorm.Option // OPTIONAL: A function that gets the TLS config to use for a // connection based on the given host name GetTlsConfigFunc GetTlsConfigCallback }
The input values for getting a standard MySQL GORM DB handle
Click to show internal directories.
Click to hide internal directories.