t_mysql

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: BSD-3-Clause Imports: 1 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Host            string
	Port            int
	Username        string
	Password        string
	Database        string
	MaxOpenConns    int
	MaxIdleConns    int
	ConnMaxLifetime time.Duration
	ConnParams      map[string]string
}

type CountParams

type CountParams struct {
	TableName string
	Where     interface{}
}

type OrderByType

type OrderByType struct {
	Col   string
	Order OrderType
}

type OrderType

type OrderType string
const (
	OrderType_ASC  OrderType = "asc"
	OrderType_DESC OrderType = "desc"
)

type SelectByIdParams

type SelectByIdParams struct {
	TableName string
	Select    string
	Id        uint64
}

type SelectParams

type SelectParams struct {
	TableName string
	Select    string
	Where     interface{}
	OrderBy   *OrderByType
	Limit     uint64
}

type SumParams

type SumParams struct {
	TableName string
	SumTarget string
	Where     interface{}
}

type UpdateParams

type UpdateParams struct {
	TableName string
	Update    interface{}
	Where     interface{}
}

Jump to

Keyboard shortcuts

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