package test
import "zgo.at/zdb/drivers/test"
Index ¶
- func Use() func()
- type TestConn
- func (TestConn) Begin() (driver.Tx, error)
- func (TestConn) Close() error
- func (TestConn) Prepare(query string) (driver.Stmt, error)
- type TestResult
- type TestRows
- func (TestRows) Close() error
- func (t TestRows) Columns() []string
- func (t TestRows) Next(dest []driver.Value) error
- type TestStmt
- func (TestStmt) Close() error
- func (TestStmt) Exec(args []driver.Value) (driver.Result, error)
- func (TestStmt) NumInput() int
- func (s TestStmt) Query(args []driver.Value) (driver.Rows, error)
- type TestTx
Functions ¶
func Use ¶
func Use() func()
Types ¶
type TestConn ¶
type TestConn struct{}
func (TestConn) Begin ¶
func (TestConn) Close ¶
func (TestConn) Prepare ¶
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) Columns ¶
func (TestRows) Next ¶
type TestStmt ¶
type TestStmt struct {
// contains filtered or unexported fields
}
func (TestStmt) Close ¶
func (TestStmt) Exec ¶
func (TestStmt) NumInput ¶
func (TestStmt) Query ¶
type TestTx ¶
type TestTx struct{}
func (TestTx) Commit ¶
func (TestTx) Rollback ¶
Source Files ¶
test.go
- Version
- v0.0.0-20240906135127-bdb601c11690 (latest)
- Published
- Sep 6, 2024
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 3 days ago –
Tools for package owners.