mysql

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT, Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DateTimeZero  = "0001-01-01 00:00:00"
	TimeStampZero = "0000-00-00 00:00:00"
)
View Source
const (
	NotDeleted = sqlx.ColumnDeletedAt + " = '" + DateTimeZero + "'"
)
View Source
const ShowTables = `SHOW TABLES`

Variables

This section is empty.

Functions

func MySqlTypeToGoType

func MySqlTypeToGoType(typ string) string

func Now

func Now() string

func ShowColumns

func ShowColumns(table string) string

Types

type OTelCollector added in v1.10.3

type OTelCollector struct {
	VariableNames []string
	// contains filtered or unexported fields
}

func NewOTelCollector added in v1.10.3

func NewOTelCollector(db *sql.DB, meter metric.Meter, variableNames ...string) *OTelCollector

func (*OTelCollector) Close added in v1.10.3

func (c *OTelCollector) Close(context.Context) error

func (*OTelCollector) Init added in v1.10.3

func (c *OTelCollector) Init() error

Jump to

Keyboard shortcuts

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