Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RWDatabasePool ¶
type RWDatabasePool struct {
// contains filtered or unexported fields
}
RWDatabasePool represents the read-write database pool.
func Init ¶
func Init(write, read []*sql.DB) *RWDatabasePool
Init creates a RWDatabasePool using a write and a read pool.
func (*RWDatabasePool) Read ¶
func (dbp *RWDatabasePool) Read() *sql.DB
func (*RWDatabasePool) Write ¶
func (dbp *RWDatabasePool) Write() *sql.DB
Click to show internal directories.
Click to hide internal directories.