Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMysqlGorm ¶
Types ¶
type ConnectionParameters ¶ added in v0.3.1
type ConnectionParameters struct {
DialectorInput dialectors.MysqlDialectorInput
// OPTIONAL: A function that gets the TLS config to use for a
// connection based on the given host name
GetTlsConfigFunc GetTlsConfigCallback
AuthSettings authenticators.AuthenticationSettings
}
type GetMysqlGormInput ¶
type GetMysqlGormInput struct {
// Input values for write connections
WriteConnectionParameters []*ConnectionParameters
// Input values for read connections
ReadConnectionParameters []*ConnectionParameters
// OPTIONAL: A set of GORM options to use for all connections
GormOptions []gorm.Option
// OPTIONAL: The policy to use for connecting to read replicas.
// If not provided, the Random policy will be used.
ReplicaPolicy dbresolver.Policy
}
The input values for getting a standard MySQL GORM DB handle
Click to show internal directories.
Click to hide internal directories.