recorder

package
v0.0.0-...-e3b2d30 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: replace with different types on conn for each set of implemented interfaces
	// by original connection.
	ErrIsNotImplemented = errors.New("is not implemented")
)

Functions

func Open

func Open(orig driver.Driver, dataSourceName string, imports ImportList, code io.Writer, mock sqlmock.Sqlmock) (*sql.DB, error)

Types

type Driver

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

Driver wraps the database driver.

func (*Driver) Open

func (d *Driver) Open(name string) (driver.Conn, error)

Open opens a new connection to the database. name is a connection string.

type ImportList

type ImportList map[string]struct{}

Jump to

Keyboard shortcuts

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