Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Attachment) predicate.Attachment
- func Contents(v string) predicate.Attachment
- func ContentsContains(v string) predicate.Attachment
- func ContentsContainsFold(v string) predicate.Attachment
- func ContentsEQ(v string) predicate.Attachment
- func ContentsEqualFold(v string) predicate.Attachment
- func ContentsGT(v string) predicate.Attachment
- func ContentsGTE(v string) predicate.Attachment
- func ContentsHasPrefix(v string) predicate.Attachment
- func ContentsHasSuffix(v string) predicate.Attachment
- func ContentsIn(vs ...string) predicate.Attachment
- func ContentsLT(v string) predicate.Attachment
- func ContentsLTE(v string) predicate.Attachment
- func ContentsNEQ(v string) predicate.Attachment
- func ContentsNotIn(vs ...string) predicate.Attachment
- func ID(id string) predicate.Attachment
- func IDContainsFold(id string) predicate.Attachment
- func IDEQ(id string) predicate.Attachment
- func IDEqualFold(id string) predicate.Attachment
- func IDGT(id string) predicate.Attachment
- func IDGTE(id string) predicate.Attachment
- func IDIn(ids ...string) predicate.Attachment
- func IDLT(id string) predicate.Attachment
- func IDLTE(id string) predicate.Attachment
- func IDNEQ(id string) predicate.Attachment
- func IDNotIn(ids ...string) predicate.Attachment
- func Not(p predicate.Attachment) predicate.Attachment
- func Or(predicates ...predicate.Attachment) predicate.Attachment
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the attachment type in the database. Label = "attachment" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldContents holds the string denoting the contents field in the database. FieldContents = "contents" // Table holds the table name of the attachment in the database. Table = "attachments" )
Variables ¶
var Columns = []string{ FieldID, FieldContents, }
Columns holds all SQL columns for attachment fields.
Functions ¶
func And ¶
func And(predicates ...predicate.Attachment) predicate.Attachment
And groups predicates with the AND operator between them.
func Contents ¶
func Contents(v string) predicate.Attachment
Contents applies equality check predicate on the "contents" field. It's identical to ContentsEQ.
func ContentsContains ¶
func ContentsContains(v string) predicate.Attachment
ContentsContains applies the Contains predicate on the "contents" field.
func ContentsContainsFold ¶
func ContentsContainsFold(v string) predicate.Attachment
ContentsContainsFold applies the ContainsFold predicate on the "contents" field.
func ContentsEQ ¶
func ContentsEQ(v string) predicate.Attachment
ContentsEQ applies the EQ predicate on the "contents" field.
func ContentsEqualFold ¶
func ContentsEqualFold(v string) predicate.Attachment
ContentsEqualFold applies the EqualFold predicate on the "contents" field.
func ContentsGT ¶
func ContentsGT(v string) predicate.Attachment
ContentsGT applies the GT predicate on the "contents" field.
func ContentsGTE ¶
func ContentsGTE(v string) predicate.Attachment
ContentsGTE applies the GTE predicate on the "contents" field.
func ContentsHasPrefix ¶
func ContentsHasPrefix(v string) predicate.Attachment
ContentsHasPrefix applies the HasPrefix predicate on the "contents" field.
func ContentsHasSuffix ¶
func ContentsHasSuffix(v string) predicate.Attachment
ContentsHasSuffix applies the HasSuffix predicate on the "contents" field.
func ContentsIn ¶
func ContentsIn(vs ...string) predicate.Attachment
ContentsIn applies the In predicate on the "contents" field.
func ContentsLT ¶
func ContentsLT(v string) predicate.Attachment
ContentsLT applies the LT predicate on the "contents" field.
func ContentsLTE ¶
func ContentsLTE(v string) predicate.Attachment
ContentsLTE applies the LTE predicate on the "contents" field.
func ContentsNEQ ¶
func ContentsNEQ(v string) predicate.Attachment
ContentsNEQ applies the NEQ predicate on the "contents" field.
func ContentsNotIn ¶
func ContentsNotIn(vs ...string) predicate.Attachment
ContentsNotIn applies the NotIn predicate on the "contents" field.
func IDContainsFold ¶
func IDContainsFold(id string) predicate.Attachment
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.Attachment
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.Attachment
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.Attachment
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.Attachment
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.Attachment
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.Attachment
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.Attachment
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.Attachment
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.Attachment
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Attachment) predicate.Attachment
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Attachment) predicate.Attachment
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 Attachment queries.
func ByContents ¶
func ByContents(opts ...sql.OrderTermOption) OrderOption
ByContents orders the results by the contents field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.