internal

package
v2.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDSN

func ParseDSN(driverName, dsn string) (meta map[string]string, err error)

ParseDSN parses various supported DSN types into a map of key/value pairs which can be used as valid tags.

Types

type MockDriver

type MockDriver struct {
	Prepared []string
	Executed []string
	// Hook is an optional function to run during a DB operation
	Hook func()
}

MockDriver implements a mock driver that captures and stores prepared and executed statements

func (*MockDriver) Open

func (d *MockDriver) Open(_ string) (driver.Conn, error)

Open implements the Conn interface

Jump to

Keyboard shortcuts

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