Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.MessageWithStrings) predicate.MessageWithStrings
- func ID(id int) predicate.MessageWithStrings
- func IDEQ(id int) predicate.MessageWithStrings
- func IDGT(id int) predicate.MessageWithStrings
- func IDGTE(id int) predicate.MessageWithStrings
- func IDIn(ids ...int) predicate.MessageWithStrings
- func IDLT(id int) predicate.MessageWithStrings
- func IDLTE(id int) predicate.MessageWithStrings
- func IDNEQ(id int) predicate.MessageWithStrings
- func IDNotIn(ids ...int) predicate.MessageWithStrings
- func Not(p predicate.MessageWithStrings) predicate.MessageWithStrings
- func Or(predicates ...predicate.MessageWithStrings) predicate.MessageWithStrings
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the messagewithstrings type in the database. Label = "message_with_strings" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldStrings holds the string denoting the strings field in the database. FieldStrings = "strings" // Table holds the table name of the messagewithstrings in the database. Table = "message_with_strings" )
Variables ¶
var Columns = []string{ FieldID, FieldStrings, }
Columns holds all SQL columns for messagewithstrings fields.
Functions ¶
func And ¶
func And(predicates ...predicate.MessageWithStrings) predicate.MessageWithStrings
And groups predicates with the AND operator between them.
func IDEQ ¶
func IDEQ(id int) predicate.MessageWithStrings
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.MessageWithStrings
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.MessageWithStrings
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.MessageWithStrings
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.MessageWithStrings
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.MessageWithStrings
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.MessageWithStrings
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.MessageWithStrings
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.MessageWithStrings) predicate.MessageWithStrings
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.MessageWithStrings) predicate.MessageWithStrings
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 ¶ added in v0.4.1
OrderOption defines the ordering options for the MessageWithStrings queries.
func ByID ¶ added in v0.4.0
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.