mysql

package
v0.0.0-...-270e5d0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: MIT Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(ctx context.Context, label string, path string)

Types

type MySQL

type MySQL struct {
	*sql.DB
	// contains filtered or unexported fields
}

func (MySQL) Close

func (h MySQL) Close(q *query.QueryHandle) error

func (MySQL) CloseTx

func (h MySQL) CloseTx(bs []*mut.Mutations)

func (MySQL) Ctx

func (h MySQL) Ctx() context.Context

func (MySQL) Execute

func (h MySQL) Execute(ctx context.Context, bs []*mut.Mutations, tag string, api db.API, prepare bool, opt ...db.Option) error

Execute manipulates data. See ExecuteQuery()

func (MySQL) ExecuteQuery

func (h MySQL) ExecuteQuery(ctx context.Context, q *query.QueryHandle, o ...db.Option) error

func (MySQL) GetTableMeta

func (h MySQL) GetTableMeta(ctx context.Context, table string) (*key.TabMeta, error)

func (MySQL) RetryOp

func (h MySQL) RetryOp(e error) bool

func (MySQL) String

func (h MySQL) String() string

Jump to

Keyboard shortcuts

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