criteria

package
v0.51.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package criteria implements a Criteria API based on Masterminds/squirrel

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type After

type After squirrel.Gt

func (After) MarshalJSON

func (af After) MarshalJSON() ([]byte, error)

func (After) ToSql

func (af After) ToSql() (sql string, args []interface{}, err error)

type All

type All squirrel.And

func (All) MarshalJSON

func (all All) MarshalJSON() ([]byte, error)

func (All) ToSql

func (all All) ToSql() (sql string, args []interface{}, err error)

type And

type And = All

type Any

type Any squirrel.Or

func (Any) MarshalJSON

func (any Any) MarshalJSON() ([]byte, error)

func (Any) ToSql

func (any Any) ToSql() (sql string, args []interface{}, err error)

type Before

type Before squirrel.Lt

func (Before) MarshalJSON

func (bf Before) MarshalJSON() ([]byte, error)

func (Before) ToSql

func (bf Before) ToSql() (sql string, args []interface{}, err error)

type Contains

type Contains map[string]interface{}

func (Contains) MarshalJSON

func (ct Contains) MarshalJSON() ([]byte, error)

func (Contains) ToSql

func (ct Contains) ToSql() (sql string, args []interface{}, err error)

type Criteria

type Criteria struct {
	Expression
	Sort   string
	Order  string
	Limit  int
	Offset int
}

func (Criteria) MarshalJSON

func (c Criteria) MarshalJSON() ([]byte, error)

func (Criteria) OrderBy

func (c Criteria) OrderBy() string

func (Criteria) ToSql

func (c Criteria) ToSql() (sql string, args []interface{}, err error)

func (*Criteria) UnmarshalJSON

func (c *Criteria) UnmarshalJSON(data []byte) error

type EndsWith

type EndsWith map[string]interface{}

func (EndsWith) MarshalJSON

func (sw EndsWith) MarshalJSON() ([]byte, error)

func (EndsWith) ToSql

func (sw EndsWith) ToSql() (sql string, args []interface{}, err error)

type Eq

type Eq = Is

type Expression

type Expression = squirrel.Sqlizer

type Gt

type Gt squirrel.Gt

func (Gt) MarshalJSON

func (gt Gt) MarshalJSON() ([]byte, error)

func (Gt) ToSql

func (gt Gt) ToSql() (sql string, args []interface{}, err error)

type InPlaylist added in v0.51.0

type InPlaylist map[string]interface{}

func (InPlaylist) MarshalJSON added in v0.51.0

func (ipl InPlaylist) MarshalJSON() ([]byte, error)

func (InPlaylist) ToSql added in v0.51.0

func (ipl InPlaylist) ToSql() (sql string, args []interface{}, err error)

type InTheLast

type InTheLast map[string]interface{}

func (InTheLast) MarshalJSON

func (itl InTheLast) MarshalJSON() ([]byte, error)

func (InTheLast) ToSql

func (itl InTheLast) ToSql() (sql string, args []interface{}, err error)

type InTheRange

type InTheRange map[string]interface{}

func (InTheRange) MarshalJSON

func (itr InTheRange) MarshalJSON() ([]byte, error)

func (InTheRange) ToSql

func (itr InTheRange) ToSql() (sql string, args []interface{}, err error)

type Is

type Is squirrel.Eq

func (Is) MarshalJSON

func (is Is) MarshalJSON() ([]byte, error)

func (Is) ToSql

func (is Is) ToSql() (sql string, args []interface{}, err error)

type IsNot

type IsNot squirrel.NotEq

func (IsNot) MarshalJSON

func (in IsNot) MarshalJSON() ([]byte, error)

func (IsNot) ToSql

func (in IsNot) ToSql() (sql string, args []interface{}, err error)

type Lt

type Lt squirrel.Lt

func (Lt) MarshalJSON

func (lt Lt) MarshalJSON() ([]byte, error)

func (Lt) ToSql

func (lt Lt) ToSql() (sql string, args []interface{}, err error)

type NotContains

type NotContains map[string]interface{}

func (NotContains) MarshalJSON

func (nct NotContains) MarshalJSON() ([]byte, error)

func (NotContains) ToSql

func (nct NotContains) ToSql() (sql string, args []interface{}, err error)

type NotInPlaylist added in v0.51.0

type NotInPlaylist map[string]interface{}

func (NotInPlaylist) MarshalJSON added in v0.51.0

func (ipl NotInPlaylist) MarshalJSON() ([]byte, error)

func (NotInPlaylist) ToSql added in v0.51.0

func (ipl NotInPlaylist) ToSql() (sql string, args []interface{}, err error)

type NotInTheLast

type NotInTheLast map[string]interface{}

func (NotInTheLast) MarshalJSON

func (nitl NotInTheLast) MarshalJSON() ([]byte, error)

func (NotInTheLast) ToSql

func (nitl NotInTheLast) ToSql() (sql string, args []interface{}, err error)

type Or

type Or = Any

type StartsWith

type StartsWith map[string]interface{}

func (StartsWith) MarshalJSON

func (sw StartsWith) MarshalJSON() ([]byte, error)

func (StartsWith) ToSql

func (sw StartsWith) ToSql() (sql string, args []interface{}, err error)

Jump to

Keyboard shortcuts

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