Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Printer) predicate.Printer
- func HasOwner() predicate.Printer
- func HasOwnerWith(preds ...predicate.Agent) predicate.Printer
- func ID(id int) predicate.Printer
- func IDEQ(id int) predicate.Printer
- func IDGT(id int) predicate.Printer
- func IDGTE(id int) predicate.Printer
- func IDIn(ids ...int) predicate.Printer
- func IDLT(id int) predicate.Printer
- func IDLTE(id int) predicate.Printer
- func IDNEQ(id int) predicate.Printer
- func IDNotIn(ids ...int) predicate.Printer
- func IsDefault(v bool) predicate.Printer
- func IsDefaultEQ(v bool) predicate.Printer
- func IsDefaultIsNil() predicate.Printer
- func IsDefaultNEQ(v bool) predicate.Printer
- func IsDefaultNotNil() predicate.Printer
- func IsNetwork(v bool) predicate.Printer
- func IsNetworkEQ(v bool) predicate.Printer
- func IsNetworkIsNil() predicate.Printer
- func IsNetworkNEQ(v bool) predicate.Printer
- func IsNetworkNotNil() predicate.Printer
- func Name(v string) predicate.Printer
- func NameContains(v string) predicate.Printer
- func NameContainsFold(v string) predicate.Printer
- func NameEQ(v string) predicate.Printer
- func NameEqualFold(v string) predicate.Printer
- func NameGT(v string) predicate.Printer
- func NameGTE(v string) predicate.Printer
- func NameHasPrefix(v string) predicate.Printer
- func NameHasSuffix(v string) predicate.Printer
- func NameIn(vs ...string) predicate.Printer
- func NameLT(v string) predicate.Printer
- func NameLTE(v string) predicate.Printer
- func NameNEQ(v string) predicate.Printer
- func NameNotIn(vs ...string) predicate.Printer
- func Not(p predicate.Printer) predicate.Printer
- func Or(predicates ...predicate.Printer) predicate.Printer
- func Port(v string) predicate.Printer
- func PortContains(v string) predicate.Printer
- func PortContainsFold(v string) predicate.Printer
- func PortEQ(v string) predicate.Printer
- func PortEqualFold(v string) predicate.Printer
- func PortGT(v string) predicate.Printer
- func PortGTE(v string) predicate.Printer
- func PortHasPrefix(v string) predicate.Printer
- func PortHasSuffix(v string) predicate.Printer
- func PortIn(vs ...string) predicate.Printer
- func PortIsNil() predicate.Printer
- func PortLT(v string) predicate.Printer
- func PortLTE(v string) predicate.Printer
- func PortNEQ(v string) predicate.Printer
- func PortNotIn(vs ...string) predicate.Printer
- func PortNotNil() predicate.Printer
- func ValidColumn(column string) bool
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsDefault(opts ...sql.OrderTermOption) OrderOption
- func ByIsNetwork(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPort(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the printer type in the database. Label = "printer" // 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" // FieldPort holds the string denoting the port field in the database. FieldPort = "port" // FieldIsDefault holds the string denoting the is_default field in the database. FieldIsDefault = "is_default" // FieldIsNetwork holds the string denoting the is_network field in the database. FieldIsNetwork = "is_network" // 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 printer in the database. Table = "printers" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "printers" // 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_printers" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldPort, FieldIsDefault, FieldIsNetwork, }
Columns holds all SQL columns for printer fields.
var ForeignKeys = []string{
"agent_printers",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "printers" 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 IsDefault ¶
IsDefault applies equality check predicate on the "is_default" field. It's identical to IsDefaultEQ.
func IsDefaultEQ ¶
IsDefaultEQ applies the EQ predicate on the "is_default" field.
func IsDefaultIsNil ¶
IsDefaultIsNil applies the IsNil predicate on the "is_default" field.
func IsDefaultNEQ ¶
IsDefaultNEQ applies the NEQ predicate on the "is_default" field.
func IsDefaultNotNil ¶
IsDefaultNotNil applies the NotNil predicate on the "is_default" field.
func IsNetwork ¶
IsNetwork applies equality check predicate on the "is_network" field. It's identical to IsNetworkEQ.
func IsNetworkEQ ¶
IsNetworkEQ applies the EQ predicate on the "is_network" field.
func IsNetworkIsNil ¶
IsNetworkIsNil applies the IsNil predicate on the "is_network" field.
func IsNetworkNEQ ¶
IsNetworkNEQ applies the NEQ predicate on the "is_network" field.
func IsNetworkNotNil ¶
IsNetworkNotNil applies the NotNil predicate on the "is_network" 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 PortContains ¶
PortContains applies the Contains predicate on the "port" field.
func PortContainsFold ¶
PortContainsFold applies the ContainsFold predicate on the "port" field.
func PortEqualFold ¶
PortEqualFold applies the EqualFold predicate on the "port" field.
func PortHasPrefix ¶
PortHasPrefix applies the HasPrefix predicate on the "port" field.
func PortHasSuffix ¶
PortHasSuffix applies the HasSuffix predicate on the "port" field.
func PortNotNil ¶
PortNotNil applies the NotNil predicate on the "port" 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 Printer queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsDefault ¶
func ByIsDefault(opts ...sql.OrderTermOption) OrderOption
ByIsDefault orders the results by the is_default field.
func ByIsNetwork ¶
func ByIsNetwork(opts ...sql.OrderTermOption) OrderOption
ByIsNetwork orders the results by the is_network 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 ByPort ¶
func ByPort(opts ...sql.OrderTermOption) OrderOption
ByPort orders the results by the port field.