Documentation ¶
Index ¶
- type Connection
- func (db *Connection) Close() error
- func (db *Connection) Execute(ctx context.Context, query string, params map[string]interface{}) (result sql.Result, err error)
- func (db *Connection) GetStats() sql.DBStats
- func (db *Connection) Ping() error
- func (db *Connection) Query(ctx context.Context, query string, params map[string]interface{}) (result []map[string]interface{}, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewDBConnection ¶
func NewDBConnection(conf *config.Config) *Connection
func NewDBConnectionFromDB ¶
func NewDBConnectionFromDB(sqldb *sql.DB, driverName string) (*Connection, error)
func (*Connection) Close ¶
func (db *Connection) Close() error
func (*Connection) GetStats ¶
func (db *Connection) GetStats() sql.DBStats
func (*Connection) Ping ¶
func (db *Connection) Ping() error
Click to show internal directories.
Click to hide internal directories.