internal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 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

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

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