mockSQLDriver

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Calls = CallLog{}

Functions

This section is empty.

Types

type Call

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

type CallLog

type CallLog []Call

func (CallLog) Append

func (c CallLog) Append(args interface{})

func (CallLog) Contains

func (c CallLog) Contains(name string, args interface{}) bool

func (CallLog) Print

func (c CallLog) Print()

func (*CallLog) Reset

func (c *CallLog) Reset()

type MockConn

type MockConn struct{}

func (MockConn) Begin

func (c MockConn) Begin() (driver.Tx, error)

func (MockConn) Close

func (c MockConn) Close() error

func (MockConn) Prepare

func (c MockConn) Prepare(query string) (driver.Stmt, error)

type MockDriver

type MockDriver struct{}

func (*MockDriver) Open

func (d *MockDriver) Open(Name string) (driver.Conn, error)

type MockRows

type MockRows struct{}

func (MockRows) Close

func (r MockRows) Close() error

func (MockRows) Columns

func (r MockRows) Columns() []string

func (MockRows) Next

func (r MockRows) Next(dest []driver.Value) error

type MockStmt

type MockStmt struct{}

func (MockStmt) Close

func (s MockStmt) Close() error

func (MockStmt) Exec

func (s MockStmt) Exec(args []driver.Value) (driver.Result, error)

func (MockStmt) NumInput

func (s MockStmt) NumInput() int

func (MockStmt) Query

func (s MockStmt) Query(args []driver.Value) (driver.Rows, error)

type MockTx

type MockTx struct{}

func (MockTx) Commit

func (t MockTx) Commit() error

func (MockTx) Rollback

func (t MockTx) Rollback() error

Jump to

Keyboard shortcuts

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