Documentation ¶
Overview ¶
Package dbc is (Database Connection) is used for create to represents low level database interfaces in order to have an unified way to access database handler
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DatabaseConnection ¶
func RedisConnection ¶
func RedisConnection() *redis.Client
Types ¶
type SqlDbc ¶
type SqlDbc interface { Exec(query string, args ...interface{}) (sql.Result, error) Prepare(query string) (*sql.Stmt, error) Query(query string, args ...interface{}) (*sql.Rows, error) QueryRow(query string, args ...interface{}) *sql.Row // If you want support transactional Transactioner }
SqlDbc (SQL Database Connection) is a wrapper for SQL Database handler (can be *sql.DB or *sql.Tx)
Click to show internal directories.
Click to hide internal directories.