gsql

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var All = common.All
View Source
var Raw = common.Raw
View Source
var Sql = common.Sql

Functions

func As

func As(exp, alias string) string

func Avg

func Avg(field string) string

func Between

func Between(field string, val1, val2 any) *sqlWhereBuilder

func Count

func Count(field string) string

func Eq

func Eq(field string, val any) *sqlWhereBuilder

func Group

func Group(sql ToSql) *sqlWhereBuilder

func Gt

func Gt(field string, val any) *sqlWhereBuilder

func GtEq

func GtEq(field string, val any) *sqlWhereBuilder

func In

func In(field string, vals ...any) *sqlWhereBuilder

func Insert

func Insert(table string) *insertSqlBuilder

func IsNotNull

func IsNotNull(field string) *sqlWhereBuilder

func IsNull

func IsNull(field string) *sqlWhereBuilder

func Le

func Le(field string, val any) *sqlWhereBuilder

func LeEq

func LeEq(field string, val any) *sqlWhereBuilder

func Limit

func Limit(limit1 int, limit2 ...int) *sqlLimit

func NotEq

func NotEq(field string, val any) *sqlWhereBuilder

func NotIn

func NotIn(field string, vals ...any) *sqlWhereBuilder

func Select

func Select(fields ...string) *selectSqlBuilder

func Sum

func Sum(field string) string

func Update

func Update(table string) *updateSqlBuilder

Types

type Field

type Field = common.Field

type SetInfo

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

type ToSql

type ToSql = common.ToSql

Jump to

Keyboard shortcuts

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