Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Audiobooks) predicate.Audiobooks
- func ID(id int) predicate.Audiobooks
- func IDEQ(id int) predicate.Audiobooks
- func IDGT(id int) predicate.Audiobooks
- func IDGTE(id int) predicate.Audiobooks
- func IDIn(ids ...int) predicate.Audiobooks
- func IDLT(id int) predicate.Audiobooks
- func IDLTE(id int) predicate.Audiobooks
- func IDNEQ(id int) predicate.Audiobooks
- func IDNotIn(ids ...int) predicate.Audiobooks
- func Not(p predicate.Audiobooks) predicate.Audiobooks
- func Or(predicates ...predicate.Audiobooks) predicate.Audiobooks
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
View Source
const ( // Label holds the string label denoting the audiobooks type in the database. Label = "audiobooks" // FieldID holds the string denoting the id field in the database. FieldID = "id" // Table holds the table name of the audiobooks in the database. Table = "audiobooks" )
Variables ¶
View Source
var Columns = []string{ FieldID, }
Columns holds all SQL columns for audiobooks fields.
Functions ¶
func And ¶
func And(predicates ...predicate.Audiobooks) predicate.Audiobooks
And groups predicates with the AND operator between them.
func IDGTE ¶
func IDGTE(id int) predicate.Audiobooks
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Audiobooks
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Audiobooks
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Audiobooks
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Audiobooks
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Audiobooks) predicate.Audiobooks
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Audiobooks) predicate.Audiobooks
Or groups predicates with the OR operator between them.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Audiobooks queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
Click to show internal directories.
Click to hide internal directories.