mysql

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 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

MySqlTypeToGoType returns the result.

func Now

func Now() string

Now returns the result.

func ShowColumns

func ShowColumns(table string) string

ShowColumns returns the result.

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

NewOTelCollector creates and returns a new instance.

func (*OTelCollector) Close added in v1.10.3

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

Close closes and releases resources.

func (*OTelCollector) Init added in v1.10.3

func (c *OTelCollector) Init() error

Init performs the operation.

Jump to

Keyboard shortcuts

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