Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Antivirus) predicate.Antivirus
- func HasOwner() predicate.Antivirus
- func HasOwnerWith(preds ...predicate.Agent) predicate.Antivirus
- func ID(id int) predicate.Antivirus
- func IDEQ(id int) predicate.Antivirus
- func IDGT(id int) predicate.Antivirus
- func IDGTE(id int) predicate.Antivirus
- func IDIn(ids ...int) predicate.Antivirus
- func IDLT(id int) predicate.Antivirus
- func IDLTE(id int) predicate.Antivirus
- func IDNEQ(id int) predicate.Antivirus
- func IDNotIn(ids ...int) predicate.Antivirus
- func IsActive(v bool) predicate.Antivirus
- func IsActiveEQ(v bool) predicate.Antivirus
- func IsActiveNEQ(v bool) predicate.Antivirus
- func IsUpdated(v bool) predicate.Antivirus
- func IsUpdatedEQ(v bool) predicate.Antivirus
- func IsUpdatedNEQ(v bool) predicate.Antivirus
- func Name(v string) predicate.Antivirus
- func NameContains(v string) predicate.Antivirus
- func NameContainsFold(v string) predicate.Antivirus
- func NameEQ(v string) predicate.Antivirus
- func NameEqualFold(v string) predicate.Antivirus
- func NameGT(v string) predicate.Antivirus
- func NameGTE(v string) predicate.Antivirus
- func NameHasPrefix(v string) predicate.Antivirus
- func NameHasSuffix(v string) predicate.Antivirus
- func NameIn(vs ...string) predicate.Antivirus
- func NameLT(v string) predicate.Antivirus
- func NameLTE(v string) predicate.Antivirus
- func NameNEQ(v string) predicate.Antivirus
- func NameNotIn(vs ...string) predicate.Antivirus
- func Not(p predicate.Antivirus) predicate.Antivirus
- func Or(predicates ...predicate.Antivirus) predicate.Antivirus
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the antivirus type in the database. Label = "antivirus" // 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" // FieldIsActive holds the string denoting the is_active field in the database. FieldIsActive = "is_active" // FieldIsUpdated holds the string denoting the is_updated field in the database. FieldIsUpdated = "is_updated" // 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 antivirus in the database. Table = "antiviri" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "antiviri" // 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_antivirus" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldIsActive, FieldIsUpdated, }
Columns holds all SQL columns for antivirus fields.
var ForeignKeys = []string{
"agent_antivirus",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "antiviri" 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 IsActive ¶
IsActive applies equality check predicate on the "is_active" field. It's identical to IsActiveEQ.
func IsActiveEQ ¶
IsActiveEQ applies the EQ predicate on the "is_active" field.
func IsActiveNEQ ¶
IsActiveNEQ applies the NEQ predicate on the "is_active" field.
func IsUpdated ¶
IsUpdated applies equality check predicate on the "is_updated" field. It's identical to IsUpdatedEQ.
func IsUpdatedEQ ¶
IsUpdatedEQ applies the EQ predicate on the "is_updated" field.
func IsUpdatedNEQ ¶
IsUpdatedNEQ applies the NEQ predicate on the "is_updated" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Antivirus queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsActive ¶
func ByIsActive(opts ...sql.OrderTermOption) OrderOption
ByIsActive orders the results by the is_active field.
func ByIsUpdated ¶
func ByIsUpdated(opts ...sql.OrderTermOption) OrderOption
ByIsUpdated orders the results by the is_updated 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.