Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Daemon) predicate.Daemon
- func Enable(v bool) predicate.Daemon
- func EnableEQ(v bool) predicate.Daemon
- func EnableNEQ(v bool) predicate.Daemon
- func HasUser() predicate.Daemon
- func HasUserWith(preds ...predicate.User) predicate.Daemon
- func ID(id int) predicate.Daemon
- func IDEQ(id int) predicate.Daemon
- func IDGT(id int) predicate.Daemon
- func IDGTE(id int) predicate.Daemon
- func IDIn(ids ...int) predicate.Daemon
- func IDLT(id int) predicate.Daemon
- func IDLTE(id int) predicate.Daemon
- func IDNEQ(id int) predicate.Daemon
- func IDNotIn(ids ...int) predicate.Daemon
- func Not(p predicate.Daemon) predicate.Daemon
- func Or(predicates ...predicate.Daemon) predicate.Daemon
- func Path(v string) predicate.Daemon
- func PathContains(v string) predicate.Daemon
- func PathContainsFold(v string) predicate.Daemon
- func PathEQ(v string) predicate.Daemon
- func PathEqualFold(v string) predicate.Daemon
- func PathGT(v string) predicate.Daemon
- func PathGTE(v string) predicate.Daemon
- func PathHasPrefix(v string) predicate.Daemon
- func PathHasSuffix(v string) predicate.Daemon
- func PathIn(vs ...string) predicate.Daemon
- func PathLT(v string) predicate.Daemon
- func PathLTE(v string) predicate.Daemon
- func PathNEQ(v string) predicate.Daemon
- func PathNotIn(vs ...string) predicate.Daemon
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the daemon type in the database. Label = "daemon" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPath holds the string denoting the path field in the database. FieldPath = "path" // FieldEnable holds the string denoting the enable field in the database. FieldEnable = "enable" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the daemon in the database. Table = "daemons" // UserTable is the table that holds the user relation/edge. UserTable = "users" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "daemon_user" )
Variables ¶
var Columns = []string{ FieldID, FieldPath, FieldEnable, }
Columns holds all SQL columns for daemon fields.
var ( // DefaultEnable holds the default value on creation for the "enable" field. DefaultEnable bool )
Functions ¶
func Enable ¶
Enable applies equality check predicate on the "enable" field. It's identical to EnableEQ.
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func PathContains ¶
PathContains applies the Contains predicate on the "path" field.
func PathContainsFold ¶
PathContainsFold applies the ContainsFold predicate on the "path" field.
func PathEqualFold ¶
PathEqualFold applies the EqualFold predicate on the "path" field.
func PathHasPrefix ¶
PathHasPrefix applies the HasPrefix predicate on the "path" field.
func PathHasSuffix ¶
PathHasSuffix applies the HasSuffix predicate on the "path" 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 Daemon queries.
func ByEnable ¶
func ByEnable(opts ...sql.OrderTermOption) OrderOption
ByEnable orders the results by the enable field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPath ¶
func ByPath(opts ...sql.OrderTermOption) OrderOption
ByPath orders the results by the path field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.