Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Group) predicate.Group
- func Desc(v string) predicate.Group
- func DescContains(v string) predicate.Group
- func DescContainsFold(v string) predicate.Group
- func DescEQ(v string) predicate.Group
- func DescEqualFold(v string) predicate.Group
- func DescGT(v string) predicate.Group
- func DescGTE(v string) predicate.Group
- func DescHasPrefix(v string) predicate.Group
- func DescHasSuffix(v string) predicate.Group
- func DescIn(vs ...string) predicate.Group
- func DescLT(v string) predicate.Group
- func DescLTE(v string) predicate.Group
- func DescNEQ(v string) predicate.Group
- func DescNotIn(vs ...string) predicate.Group
- func HasMembers() predicate.Group
- func HasMembersWith(preds ...predicate.Host) predicate.Group
- func ID(id int) predicate.Group
- func IDEQ(id int) predicate.Group
- func IDGT(id int) predicate.Group
- func IDGTE(id int) predicate.Group
- func IDIn(ids ...int) predicate.Group
- func IDLT(id int) predicate.Group
- func IDLTE(id int) predicate.Group
- func IDNEQ(id int) predicate.Group
- func IDNotIn(ids ...int) predicate.Group
- func Name(v string) predicate.Group
- func NameContains(v string) predicate.Group
- func NameContainsFold(v string) predicate.Group
- func NameEQ(v string) predicate.Group
- func NameEqualFold(v string) predicate.Group
- func NameGT(v string) predicate.Group
- func NameGTE(v string) predicate.Group
- func NameHasPrefix(v string) predicate.Group
- func NameHasSuffix(v string) predicate.Group
- func NameIn(vs ...string) predicate.Group
- func NameLT(v string) predicate.Group
- func NameLTE(v string) predicate.Group
- func NameNEQ(v string) predicate.Group
- func NameNotIn(vs ...string) predicate.Group
- func Not(p predicate.Group) predicate.Group
- func Or(predicates ...predicate.Group) predicate.Group
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the group type in the database. Label = "group" // 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" // FieldDesc holds the string denoting the desc field in the database. FieldDesc = "desc" // EdgeMembers holds the string denoting the members edge name in mutations. EdgeMembers = "members" // Table holds the table name of the group in the database. Table = "groups" // MembersTable is the table the holds the members relation/edge. The primary key declared below. MembersTable = "group_members" // MembersInverseTable is the table name for the Host entity. // It exists in this package in order to avoid circular dependency with the "host" package. MembersInverseTable = "hosts" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldDesc, }
Columns holds all SQL columns for group fields.
var ( // MembersPrimaryKey and MembersColumn2 are the table columns denoting the // primary key for the members relation (M2M). MembersPrimaryKey = []string{"group_id", "host_id"} )
Functions ¶
func DescContains ¶
DescContains applies the Contains predicate on the "desc" field.
func DescContainsFold ¶
DescContainsFold applies the ContainsFold predicate on the "desc" field.
func DescEqualFold ¶
DescEqualFold applies the EqualFold predicate on the "desc" field.
func DescHasPrefix ¶
DescHasPrefix applies the HasPrefix predicate on the "desc" field.
func DescHasSuffix ¶
DescHasSuffix applies the HasSuffix predicate on the "desc" field.
func HasMembers ¶
HasMembers applies the HasEdge predicate on the "members" edge.
func HasMembersWith ¶
HasMembersWith applies the HasEdge predicate on the "members" edge with a given conditions (other predicates).
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 ¶
This section is empty.