mocksql

package
v1.10.56 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

copy from core/stores/sqlx/orm.go

copy from core/stores/sqlx/sqlconn.go

copy from core/stores/sqlx/utils.go

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotMatchDestination  = errors.New("not matching destination to scan")
	ErrNotReadableValue     = errors.New("value not addressable or interfaceable")
	ErrNotSettable          = errors.New("passed in variable is not settable")
	ErrUnsupportedValueType = errors.New("unsupported unmarshal type")
)
View Source
var ErrNotFound = sql.ErrNoRows

Functions

This section is empty.

Types

type MockConn

type MockConn struct {
	// contains filtered or unexported fields
}

func NewMockConn

func NewMockConn(db *sql.DB) *MockConn

func (*MockConn) Exec

func (conn *MockConn) Exec(query string, args ...interface{}) (sql.Result, error)

func (*MockConn) Prepare

func (conn *MockConn) Prepare(query string) (sqlx.StmtSession, error)

func (*MockConn) QueryRow

func (conn *MockConn) QueryRow(v interface{}, q string, args ...interface{}) error

func (*MockConn) QueryRowPartial

func (conn *MockConn) QueryRowPartial(v interface{}, q string, args ...interface{}) error

func (*MockConn) QueryRows

func (conn *MockConn) QueryRows(v interface{}, q string, args ...interface{}) error

func (*MockConn) QueryRowsPartial

func (conn *MockConn) QueryRowsPartial(v interface{}, q string, args ...interface{}) error

func (*MockConn) Transact

func (conn *MockConn) Transact(func(session sqlx.Session) error) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL