internal

package
v1.70.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 14 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