mysql

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DateFormatter1 = "%Y-%m-%d %H:%i:%s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteBuilder

type DeleteBuilder interface {
	Table(name string) DeleteBuilder
	Where(query string, args ...any) DeleteBuilder
	Or(query string, args ...any) DeleteBuilder
	ToSql() string
}

func NewDeleteSQL

func NewDeleteSQL() DeleteBuilder

type InsertBuilder

type InsertBuilder interface {
	Table(name string) InsertBuilder
	Columns(col ...string) InsertBuilder
	AppendValues(v ...any) InsertBuilder
	ToSql() string
}

func NewInsertSQL

func NewInsertSQL() InsertBuilder

type SelectBuilder

type SelectBuilder interface {
	Table(query string) SelectBuilder
	Select(column ...string) SelectBuilder
	Joins(query string, args ...any) SelectBuilder
	Where(query string, args ...any) SelectBuilder
	Having(query string, args ...any) SelectBuilder
	Or(query string, args ...any) SelectBuilder
	Group(name string) SelectBuilder
	Order(v string) SelectBuilder
	PageLimit(page, limit int) SelectBuilder
	ToCountSql() string
	ToSql() string
}

func NewSelectSQL

func NewSelectSQL() SelectBuilder

type UpdateBuilder

type UpdateBuilder interface {
	Table(name string) UpdateBuilder
	Where(query string, args ...any) UpdateBuilder
	Or(query string, args ...any) UpdateBuilder
	Update(column string, v any) UpdateBuilder
	ToSql() string
}

func NewUpdateSQL

func NewUpdateSQL() UpdateBuilder

Jump to

Keyboard shortcuts

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