query

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter map[string][]string

func (*Filter) AddWhere

func (f *Filter) AddWhere(sql string, args ...any) (string, []any)

type Limit added in v0.9.0

type Limit struct {
	Limit  int64
	Offset int64
}

func (*Limit) AddLimit added in v0.9.0

func (l *Limit) AddLimit(sql string) string

type OrderBy

type OrderBy []OrderClause

func (*OrderBy) AddOrderBy

func (o *OrderBy) AddOrderBy(sql string) string

type OrderByDirection

type OrderByDirection = string
var (
	OrderByAscending  OrderByDirection = "ASC"
	OrderByDescending OrderByDirection = "DESC"
)

type OrderClause

type OrderClause struct {
	Column    string
	Direction OrderByDirection
}

Jump to

Keyboard shortcuts

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