mock

package
v4.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDriver

func RegisterDriver(name string, handler DBHandler) *mockDriver

Types

type DBHandler

type DBHandler interface {
	Ping(ctx context.Context) error
	Query(args []driver.Value) (driver.Rows, error)
	Columns() []string
	Next(dest []driver.Value) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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