mysql

package
v0.0.0-...-d4bf905 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func (*Driver) Close

func (driver *Driver) Close(_ context.Context) error

func (*Driver) GetDB

func (driver *Driver) GetDB() *sql.DB

GetDB gets the database.

func (*Driver) GetType

func (driver *Driver) GetType() v1pb.Engine

GetType returns the database type.

func (*Driver) Open

func (driver *Driver) Open(_ context.Context, dbType v1pb.Engine, connCfg db.ConnectionConfig) (db.Driver,
	error)

func (*Driver) Ping

func (driver *Driver) Ping(ctx context.Context) error

func (*Driver) QueryConn

func (driver *Driver) QueryConn(ctx context.Context, conn *sql.Conn, statement string,
	queryContext *db.QueryContext) ([]*v1pb.QueryResult, error)

Jump to

Keyboard shortcuts

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