Help us shape the future of Go! Take the 2026 Go Developer Survey

driver

package
v0.0.0-...-24627df Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector interface {
	driver.Connector
}

type Driver

type Driver interface {
	driver.Driver
	driver.DriverContext
	DriverParseSql
}

func NewDriver

func NewDriver(dvrctx driver.DriverContext, dvr driver.Driver, dvrparssql DriverParseSql) Driver

type DriverContextFunc

type DriverContextFunc func(name string) (driver.Connector, error)

func (DriverContextFunc) OpenConnector

func (dvrctxfnc DriverContextFunc) OpenConnector(name string) (driver.Connector, error)

type DriverParseSql

type DriverParseSql interface {
	ParseSqlParam(name string, idx int) (stmntname, uniqname string)
}

type DriverParseSqlFunc

type DriverParseSqlFunc func(name string, idx int) (stmntname, uniqname string)

func (DriverParseSqlFunc) ParseSqlParam

func (dpsfnc DriverParseSqlFunc) ParseSqlParam(name string, idx int) (stmntname, uniqname string)

type GoConnectorContext

type GoConnectorContext interface {
	Connect(context.Context) (driver.Conn, error)
	Driver() driver.Driver
}

func GoConnector

func GoConnector(datasource string, dvr driver.Driver) GoConnectorContext

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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