Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Update) predicate.Update
- func Date(v time.Time) predicate.Update
- func DateEQ(v time.Time) predicate.Update
- func DateGT(v time.Time) predicate.Update
- func DateGTE(v time.Time) predicate.Update
- func DateIn(vs ...time.Time) predicate.Update
- func DateLT(v time.Time) predicate.Update
- func DateLTE(v time.Time) predicate.Update
- func DateNEQ(v time.Time) predicate.Update
- func DateNotIn(vs ...time.Time) predicate.Update
- func HasOwner() predicate.Update
- func HasOwnerWith(preds ...predicate.Agent) predicate.Update
- func ID(id int) predicate.Update
- func IDEQ(id int) predicate.Update
- func IDGT(id int) predicate.Update
- func IDGTE(id int) predicate.Update
- func IDIn(ids ...int) predicate.Update
- func IDLT(id int) predicate.Update
- func IDLTE(id int) predicate.Update
- func IDNEQ(id int) predicate.Update
- func IDNotIn(ids ...int) predicate.Update
- func Not(p predicate.Update) predicate.Update
- func Or(predicates ...predicate.Update) predicate.Update
- func SupportURL(v string) predicate.Update
- func SupportURLContains(v string) predicate.Update
- func SupportURLContainsFold(v string) predicate.Update
- func SupportURLEQ(v string) predicate.Update
- func SupportURLEqualFold(v string) predicate.Update
- func SupportURLGT(v string) predicate.Update
- func SupportURLGTE(v string) predicate.Update
- func SupportURLHasPrefix(v string) predicate.Update
- func SupportURLHasSuffix(v string) predicate.Update
- func SupportURLIn(vs ...string) predicate.Update
- func SupportURLIsNil() predicate.Update
- func SupportURLLT(v string) predicate.Update
- func SupportURLLTE(v string) predicate.Update
- func SupportURLNEQ(v string) predicate.Update
- func SupportURLNotIn(vs ...string) predicate.Update
- func SupportURLNotNil() predicate.Update
- func Title(v string) predicate.Update
- func TitleContains(v string) predicate.Update
- func TitleContainsFold(v string) predicate.Update
- func TitleEQ(v string) predicate.Update
- func TitleEqualFold(v string) predicate.Update
- func TitleGT(v string) predicate.Update
- func TitleGTE(v string) predicate.Update
- func TitleHasPrefix(v string) predicate.Update
- func TitleHasSuffix(v string) predicate.Update
- func TitleIn(vs ...string) predicate.Update
- func TitleLT(v string) predicate.Update
- func TitleLTE(v string) predicate.Update
- func TitleNEQ(v string) predicate.Update
- func TitleNotIn(vs ...string) predicate.Update
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the update type in the database. Label = "update" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldDate holds the string denoting the date field in the database. FieldDate = "date" // FieldSupportURL holds the string denoting the support_url field in the database. FieldSupportURL = "support_url" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // AgentFieldID holds the string denoting the ID field of the Agent. AgentFieldID = "oid" // Table holds the table name of the update in the database. Table = "updates" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "updates" // OwnerInverseTable is the table name for the Agent entity. // It exists in this package in order to avoid circular dependency with the "agent" package. OwnerInverseTable = "agents" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "agent_updates" )
Variables ¶
var Columns = []string{ FieldID, FieldTitle, FieldDate, FieldSupportURL, }
Columns holds all SQL columns for update fields.
var ForeignKeys = []string{
"agent_updates",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "updates" table and are not defined as standalone fields in the schema.
Functions ¶
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func SupportURL ¶
SupportURL applies equality check predicate on the "support_url" field. It's identical to SupportURLEQ.
func SupportURLContains ¶
SupportURLContains applies the Contains predicate on the "support_url" field.
func SupportURLContainsFold ¶
SupportURLContainsFold applies the ContainsFold predicate on the "support_url" field.
func SupportURLEQ ¶
SupportURLEQ applies the EQ predicate on the "support_url" field.
func SupportURLEqualFold ¶
SupportURLEqualFold applies the EqualFold predicate on the "support_url" field.
func SupportURLGT ¶
SupportURLGT applies the GT predicate on the "support_url" field.
func SupportURLGTE ¶
SupportURLGTE applies the GTE predicate on the "support_url" field.
func SupportURLHasPrefix ¶
SupportURLHasPrefix applies the HasPrefix predicate on the "support_url" field.
func SupportURLHasSuffix ¶
SupportURLHasSuffix applies the HasSuffix predicate on the "support_url" field.
func SupportURLIn ¶
SupportURLIn applies the In predicate on the "support_url" field.
func SupportURLIsNil ¶
SupportURLIsNil applies the IsNil predicate on the "support_url" field.
func SupportURLLT ¶
SupportURLLT applies the LT predicate on the "support_url" field.
func SupportURLLTE ¶
SupportURLLTE applies the LTE predicate on the "support_url" field.
func SupportURLNEQ ¶
SupportURLNEQ applies the NEQ predicate on the "support_url" field.
func SupportURLNotIn ¶
SupportURLNotIn applies the NotIn predicate on the "support_url" field.
func SupportURLNotNil ¶
SupportURLNotNil applies the NotNil predicate on the "support_url" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
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 Update queries.
func ByDate ¶
func ByDate(opts ...sql.OrderTermOption) OrderOption
ByDate orders the results by the date field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func BySupportURL ¶
func BySupportURL(opts ...sql.OrderTermOption) OrderOption
BySupportURL orders the results by the support_url field.
func ByTitle ¶
func ByTitle(opts ...sql.OrderTermOption) OrderOption
ByTitle orders the results by the title field.