internal

package
v1.51.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 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 added in v1.39.0

type MockDriver struct {
	Prepared []string
	Executed []string
}

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

func (*MockDriver) Open added in v1.39.0

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