//
pkg.gl
Category
go.nhat.io/otelsql
internal
test
sqlmock
package
0.13.0
Repository:
https://github.com/nhatthm/otelsql.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
7
Dependents
1
Files
97 SLOC
#
Functions
DriverContext
DriverContext creates a new driver.DriverContext.
Register
Register creates a new sqlmock instance and returns the dsn to connect to it.
#
Variables
New
New creates sqlmock database connection and a mock to manage expectations.
NewResult
NewResult creates a new sql driver Result for Exec based query mocks.
NewRows
NewRows allows Rows to be created from a sql driver.Value slice or from the CSV string and to be used as sql driver.Rows.
#
Type aliases
Sqlmock
Sqlmock interface.
Sqlmocker
Sqlmocker mocks and returns a sqlmock instance.