test

package
v0.0.0-...-bf49d33 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Use

func Use() func()

Types

type TestConn

type TestConn struct{}

func (TestConn) Begin

func (TestConn) Begin() (driver.Tx, error)

func (TestConn) Close

func (TestConn) Close() error

func (TestConn) Prepare

func (TestConn) Prepare(query string) (driver.Stmt, error)

type TestResult

type TestResult struct{}

func (TestResult) LastInsertId

func (TestResult) LastInsertId() (int64, error)

func (TestResult) RowsAffected

func (TestResult) RowsAffected() (int64, error)

type TestRows

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

func (TestRows) Close

func (TestRows) Close() error

func (TestRows) Columns

func (t TestRows) Columns() []string

func (TestRows) Next

func (t TestRows) Next(dest []driver.Value) error

type TestStmt

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

func (TestStmt) Close

func (TestStmt) Close() error

func (TestStmt) Exec

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

func (TestStmt) NumInput

func (TestStmt) NumInput() int

func (TestStmt) Query

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

type TestTx

type TestTx struct{}

func (TestTx) Commit

func (TestTx) Commit() error

func (TestTx) Rollback

func (TestTx) Rollback() error

Jump to

Keyboard shortcuts

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