Documentation
¶
Index ¶
- Variables
- func EchoAllParams[T any](c echo.Context, fn func(string) (T, error), params ...string) ([]T, error)
- func NewEchoPgxHTTPError(err error) *echo.HTTPError
- func ParseUint32(s string) (uint32, error)
- func ParseUint8(s string) (uint8, error)
- func SQLParam(num int) string
- func SQLParams(nums []int) []string
- func Unique[T comparable](s []T) []T
- func UnixZero() time.Time
- type SQLBuilder
- type SQLOp
- type Set
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SQLOpAND = simpleOp("AND") SQLOpOR = simpleOp("OR") SQLBinOpEQ = simpleOp("=") SQLBinOpNEQ = simpleOp("!=") SQLBinOpGT = simpleOp(">") SQLBinOpGTE = simpleOp(">=") SQLBinOpLT = simpleOp("<") SQLBinOpLTE = simpleOp("<=") SQLBinOpContains = simpleOp("&&") SQLBinOpNotContains = SQLBinOpContains.Neg() )
Functions ¶
func EchoAllParams ¶
func NewEchoPgxHTTPError ¶
func ParseUint32 ¶
func ParseUint8 ¶
func Unique ¶
func Unique[T comparable](s []T) []T
Types ¶
type SQLBuilder ¶
type SQLBuilder struct {
// contains filtered or unexported fields
}
func NewSQLBuilder ¶
func NewSQLBuilder(offset int) *SQLBuilder
func (*SQLBuilder) Get ¶
func (b *SQLBuilder) Get() ([]string, []any)
type Set ¶
type Set[T comparable] map[T]struct{}
func NewSet ¶
func NewSet[T comparable](values ...T) Set[T]
func (Set[T]) ContainsAll ¶
Click to show internal directories.
Click to hide internal directories.