internal

package
v0.0.0-...-4aa9c25 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: 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 (currently mysql and postgres) 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(name 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