Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { DB *sqlx.DB // You can supply either an sql.DB object or config of the database connection, but not both (mutually exclusive) Host *string Port *uint Name *string Username *string Password *string SslMode *bool // SSLMode is the ssl mode of the database connection, default is disable ReplicaDB *sqlx.DB // ReplicaDB is the database connection for replication, it's optional, if it's not provided, then it will use the same connection as the main database ReplicaHost *string ReplicaPort *uint ReplicaName *string ReplicaUsername *string ReplicaPassword *string ReplicaSslMode *bool }
Click to show internal directories.
Click to hide internal directories.