Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.App) predicate.App
- func HasOwner() predicate.App
- func HasOwnerWith(preds ...predicate.Agent) predicate.App
- func ID(id int) predicate.App
- func IDEQ(id int) predicate.App
- func IDGT(id int) predicate.App
- func IDGTE(id int) predicate.App
- func IDIn(ids ...int) predicate.App
- func IDLT(id int) predicate.App
- func IDLTE(id int) predicate.App
- func IDNEQ(id int) predicate.App
- func IDNotIn(ids ...int) predicate.App
- func InstallDate(v string) predicate.App
- func InstallDateContains(v string) predicate.App
- func InstallDateContainsFold(v string) predicate.App
- func InstallDateEQ(v string) predicate.App
- func InstallDateEqualFold(v string) predicate.App
- func InstallDateGT(v string) predicate.App
- func InstallDateGTE(v string) predicate.App
- func InstallDateHasPrefix(v string) predicate.App
- func InstallDateHasSuffix(v string) predicate.App
- func InstallDateIn(vs ...string) predicate.App
- func InstallDateIsNil() predicate.App
- func InstallDateLT(v string) predicate.App
- func InstallDateLTE(v string) predicate.App
- func InstallDateNEQ(v string) predicate.App
- func InstallDateNotIn(vs ...string) predicate.App
- func InstallDateNotNil() predicate.App
- func Name(v string) predicate.App
- func NameContains(v string) predicate.App
- func NameContainsFold(v string) predicate.App
- func NameEQ(v string) predicate.App
- func NameEqualFold(v string) predicate.App
- func NameGT(v string) predicate.App
- func NameGTE(v string) predicate.App
- func NameHasPrefix(v string) predicate.App
- func NameHasSuffix(v string) predicate.App
- func NameIn(vs ...string) predicate.App
- func NameLT(v string) predicate.App
- func NameLTE(v string) predicate.App
- func NameNEQ(v string) predicate.App
- func NameNotIn(vs ...string) predicate.App
- func Not(p predicate.App) predicate.App
- func Or(predicates ...predicate.App) predicate.App
- func Publisher(v string) predicate.App
- func PublisherContains(v string) predicate.App
- func PublisherContainsFold(v string) predicate.App
- func PublisherEQ(v string) predicate.App
- func PublisherEqualFold(v string) predicate.App
- func PublisherGT(v string) predicate.App
- func PublisherGTE(v string) predicate.App
- func PublisherHasPrefix(v string) predicate.App
- func PublisherHasSuffix(v string) predicate.App
- func PublisherIn(vs ...string) predicate.App
- func PublisherIsNil() predicate.App
- func PublisherLT(v string) predicate.App
- func PublisherLTE(v string) predicate.App
- func PublisherNEQ(v string) predicate.App
- func PublisherNotIn(vs ...string) predicate.App
- func PublisherNotNil() predicate.App
- func ValidColumn(column string) bool
- func Version(v string) predicate.App
- func VersionContains(v string) predicate.App
- func VersionContainsFold(v string) predicate.App
- func VersionEQ(v string) predicate.App
- func VersionEqualFold(v string) predicate.App
- func VersionGT(v string) predicate.App
- func VersionGTE(v string) predicate.App
- func VersionHasPrefix(v string) predicate.App
- func VersionHasSuffix(v string) predicate.App
- func VersionIn(vs ...string) predicate.App
- func VersionLT(v string) predicate.App
- func VersionLTE(v string) predicate.App
- func VersionNEQ(v string) predicate.App
- func VersionNotIn(vs ...string) predicate.App
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInstallDate(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPublisher(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the app type in the database. Label = "app" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldPublisher holds the string denoting the publisher field in the database. FieldPublisher = "publisher" // FieldInstallDate holds the string denoting the install_date field in the database. FieldInstallDate = "install_date" // 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 app in the database. Table = "apps" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "apps" // 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_apps" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldVersion, FieldPublisher, FieldInstallDate, }
Columns holds all SQL columns for app fields.
var ForeignKeys = []string{
"agent_apps",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "apps" 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 InstallDate ¶
InstallDate applies equality check predicate on the "install_date" field. It's identical to InstallDateEQ.
func InstallDateContains ¶
InstallDateContains applies the Contains predicate on the "install_date" field.
func InstallDateContainsFold ¶
InstallDateContainsFold applies the ContainsFold predicate on the "install_date" field.
func InstallDateEQ ¶
InstallDateEQ applies the EQ predicate on the "install_date" field.
func InstallDateEqualFold ¶
InstallDateEqualFold applies the EqualFold predicate on the "install_date" field.
func InstallDateGT ¶
InstallDateGT applies the GT predicate on the "install_date" field.
func InstallDateGTE ¶
InstallDateGTE applies the GTE predicate on the "install_date" field.
func InstallDateHasPrefix ¶
InstallDateHasPrefix applies the HasPrefix predicate on the "install_date" field.
func InstallDateHasSuffix ¶
InstallDateHasSuffix applies the HasSuffix predicate on the "install_date" field.
func InstallDateIn ¶
InstallDateIn applies the In predicate on the "install_date" field.
func InstallDateIsNil ¶
InstallDateIsNil applies the IsNil predicate on the "install_date" field.
func InstallDateLT ¶
InstallDateLT applies the LT predicate on the "install_date" field.
func InstallDateLTE ¶
InstallDateLTE applies the LTE predicate on the "install_date" field.
func InstallDateNEQ ¶
InstallDateNEQ applies the NEQ predicate on the "install_date" field.
func InstallDateNotIn ¶
InstallDateNotIn applies the NotIn predicate on the "install_date" field.
func InstallDateNotNil ¶
InstallDateNotNil applies the NotNil predicate on the "install_date" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Publisher ¶
Publisher applies equality check predicate on the "publisher" field. It's identical to PublisherEQ.
func PublisherContains ¶
PublisherContains applies the Contains predicate on the "publisher" field.
func PublisherContainsFold ¶
PublisherContainsFold applies the ContainsFold predicate on the "publisher" field.
func PublisherEQ ¶
PublisherEQ applies the EQ predicate on the "publisher" field.
func PublisherEqualFold ¶
PublisherEqualFold applies the EqualFold predicate on the "publisher" field.
func PublisherGT ¶
PublisherGT applies the GT predicate on the "publisher" field.
func PublisherGTE ¶
PublisherGTE applies the GTE predicate on the "publisher" field.
func PublisherHasPrefix ¶
PublisherHasPrefix applies the HasPrefix predicate on the "publisher" field.
func PublisherHasSuffix ¶
PublisherHasSuffix applies the HasSuffix predicate on the "publisher" field.
func PublisherIn ¶
PublisherIn applies the In predicate on the "publisher" field.
func PublisherIsNil ¶
PublisherIsNil applies the IsNil predicate on the "publisher" field.
func PublisherLT ¶
PublisherLT applies the LT predicate on the "publisher" field.
func PublisherLTE ¶
PublisherLTE applies the LTE predicate on the "publisher" field.
func PublisherNEQ ¶
PublisherNEQ applies the NEQ predicate on the "publisher" field.
func PublisherNotIn ¶
PublisherNotIn applies the NotIn predicate on the "publisher" field.
func PublisherNotNil ¶
PublisherNotNil applies the NotNil predicate on the "publisher" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionContains ¶
VersionContains applies the Contains predicate on the "version" field.
func VersionContainsFold ¶
VersionContainsFold applies the ContainsFold predicate on the "version" field.
func VersionEqualFold ¶
VersionEqualFold applies the EqualFold predicate on the "version" field.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionHasPrefix ¶
VersionHasPrefix applies the HasPrefix predicate on the "version" field.
func VersionHasSuffix ¶
VersionHasSuffix applies the HasSuffix predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the App queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInstallDate ¶
func ByInstallDate(opts ...sql.OrderTermOption) OrderOption
ByInstallDate orders the results by the install_date field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByPublisher ¶
func ByPublisher(opts ...sql.OrderTermOption) OrderOption
ByPublisher orders the results by the publisher field.
func ByVersion ¶
func ByVersion(opts ...sql.OrderTermOption) OrderOption
ByVersion orders the results by the version field.