package
Version:
v0.0.0-...-95fea5c
Opens a new window with list of versions in this module.
Published: Jul 2, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Returns current database connection if exists,
else creates a new connection and return it.
Initialize database connection
type DBTX interface {
ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
PrepareContext(context.Context, string) (*sql.Stmt, error)
QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.