mysql

package
v0.0.0-...-2873e01 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// base for our schemas
	SCHEMA = "mysql"
)

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, dsn string) (_ store.Storer, err error)

func DataDefiner

func DataDefiner(dbName string, conn *sqlx.DB) *dataDefiner

func Dialect

func Dialect() *mysqlDialect

func InformationSchema

func InformationSchema(conn *sqlx.DB) *informationSchema

func NewConfig

func NewConfig(in string) (*rdbms.ConnConfig, error)

NewConfig validates given DSN and ensures params are present and correct

If param is missing it sets it to default but returns error in case of incorrect param value

See https://github.com/go-sql-driver/mysql for available dsn params

Types

type TypeTime

type TypeTime struct{ *dal.TypeTime }

func (*TypeTime) Decode

func (t *TypeTime) Decode(raw any) (any, bool, error)

func (*TypeTime) Encode

func (t *TypeTime) Encode(val any) (driver.Value, error)

func (*TypeTime) MakeScanBuffer

func (*TypeTime) MakeScanBuffer() any

Jump to

Keyboard shortcuts

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