mysql

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UseMySql

func UseMySql()

Types

type Config added in v0.8.0

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

func NewMySQLConfig added in v0.8.0

func NewMySQLConfig(cfg *mysql.Config) *Config

func (*Config) DataSourceName added in v0.8.0

func (c *Config) DataSourceName() string

func (*Config) DriverName added in v0.8.0

func (c *Config) DriverName() string

func (*Config) SetDialect added in v0.8.0

func (c *Config) SetDialect()

type MySQL

type MySQL struct{}

func (*MySQL) AutoIncrement added in v0.5.2

func (*MySQL) AutoIncrement() string

func (*MySQL) Binding

func (*MySQL) Binding() string

func (*MySQL) CurrentTime

func (*MySQL) CurrentTime() string

func (*MySQL) DataType

func (*MySQL) DataType(t dialects.DataType) string

func (*MySQL) Escape

func (s *MySQL) Escape(v any) string

func (*MySQL) Identifier

func (*MySQL) Identifier(s string) string

type SimpleConfig added in v0.8.0

type SimpleConfig struct {
	Username string
	Password string
	Address  string
	Database string
}

func (*SimpleConfig) DataSourceName added in v0.8.0

func (c *SimpleConfig) DataSourceName() string

func (*SimpleConfig) DriverName added in v0.8.0

func (c *SimpleConfig) DriverName() string

func (*SimpleConfig) SetDialect added in v0.8.0

func (c *SimpleConfig) SetDialect()

Jump to

Keyboard shortcuts

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