zdbzgo.at/zdb/drivers/test Index | Files

package test

import "zgo.at/zdb/drivers/test"

Index

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

Source Files

test.go

Version
v0.0.0-20231215032724-5a11cacffebe (latest)
Published
Dec 15, 2023
Platform
linux/amd64
Imports
7 packages
Last checked
1 month ago

Tools for package owners.