package
Version:
v0.0.0-...-84f9aa2
Opens a new window with list of versions in this module.
Published: Feb 19, 2023
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
InitMasterDB initializes master database connection
InitReadDB initializes read (slave) database connection
type ClientDB struct {
Master *sql.DB
Read *sql.DB
}
ClientDB contains database clients
GetClient initializes database connections and
returns a ClientDB pointer
Exec a CREATE/UPDATE/DELETE command on master
MakeCSV creates a CSV string from a list of IDs resulting from a query
Source Files
¶
Click to show internal directories.
Click to hide internal directories.