Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Groups) predicate.Groups
- func GCreatedAt(v time.Time) predicate.Groups
- func GCreatedAtEQ(v time.Time) predicate.Groups
- func GCreatedAtGT(v time.Time) predicate.Groups
- func GCreatedAtGTE(v time.Time) predicate.Groups
- func GCreatedAtIn(vs ...time.Time) predicate.Groups
- func GCreatedAtIsNil() predicate.Groups
- func GCreatedAtLT(v time.Time) predicate.Groups
- func GCreatedAtLTE(v time.Time) predicate.Groups
- func GCreatedAtNEQ(v time.Time) predicate.Groups
- func GCreatedAtNotIn(vs ...time.Time) predicate.Groups
- func GCreatedAtNotNil() predicate.Groups
- func GIsIntOrg(v bool) predicate.Groups
- func GIsIntOrgEQ(v bool) predicate.Groups
- func GIsIntOrgNEQ(v bool) predicate.Groups
- func GIsSuperAdmin(v bool) predicate.Groups
- func GIsSuperAdminEQ(v bool) predicate.Groups
- func GIsSuperAdminNEQ(v bool) predicate.Groups
- func GName(v string) predicate.Groups
- func GNameContains(v string) predicate.Groups
- func GNameContainsFold(v string) predicate.Groups
- func GNameEQ(v string) predicate.Groups
- func GNameEqualFold(v string) predicate.Groups
- func GNameGT(v string) predicate.Groups
- func GNameGTE(v string) predicate.Groups
- func GNameHasPrefix(v string) predicate.Groups
- func GNameHasSuffix(v string) predicate.Groups
- func GNameIn(vs ...string) predicate.Groups
- func GNameLT(v string) predicate.Groups
- func GNameLTE(v string) predicate.Groups
- func GNameNEQ(v string) predicate.Groups
- func GNameNotIn(vs ...string) predicate.Groups
- func HasUseBandwidth() predicate.Groups
- func HasUseBandwidthWith(preds ...predicate.GroupBandwidth) predicate.Groups
- func HasUsers() predicate.Groups
- func HasUsersWith(preds ...predicate.Users) predicate.Groups
- func ID(id int) predicate.Groups
- func IDEQ(id int) predicate.Groups
- func IDGT(id int) predicate.Groups
- func IDGTE(id int) predicate.Groups
- func IDIn(ids ...int) predicate.Groups
- func IDLT(id int) predicate.Groups
- func IDLTE(id int) predicate.Groups
- func IDNEQ(id int) predicate.Groups
- func IDNotIn(ids ...int) predicate.Groups
- func Not(p predicate.Groups) predicate.Groups
- func Or(predicates ...predicate.Groups) predicate.Groups
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the groups type in the database. Label = "groups" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldGName holds the string denoting the g_name field in the database. FieldGName = "g_name" // FieldGIsIntOrg holds the string denoting the g_is_int_org field in the database. FieldGIsIntOrg = "g_is_int_org" // FieldGIsSuperAdmin holds the string denoting the g_is_super_admin field in the database. FieldGIsSuperAdmin = "g_is_super_admin" // FieldGCreatedAt holds the string denoting the g_created_at field in the database. FieldGCreatedAt = "g_created_at" // EdgeUseBandwidth holds the string denoting the use_bandwidth edge name in mutations. EdgeUseBandwidth = "use_bandwidth" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // Table holds the table name of the groups in the database. Table = "groups" // UseBandwidthTable is the table that holds the use_bandwidth relation/edge. UseBandwidthTable = "groups" // UseBandwidthInverseTable is the table name for the GroupBandwidth entity. // It exists in this package in order to avoid circular dependency with the "groupbandwidth" package. UseBandwidthInverseTable = "group_bandwidths" // UseBandwidthColumn is the table column denoting the use_bandwidth relation/edge. UseBandwidthColumn = "group_bandwidth_groups" // UsersTable is the table that holds the users relation/edge. UsersTable = "users" // UsersInverseTable is the table name for the Users entity. // It exists in this package in order to avoid circular dependency with the "users" package. UsersInverseTable = "users" // UsersColumn is the table column denoting the users relation/edge. UsersColumn = "groups_users" )
Variables ¶
var ( // GNameValidator is a validator for the "g_name" field. It is called by the builders before save. GNameValidator func(string) error // DefaultGIsIntOrg holds the default value on creation for the "g_is_int_org" field. DefaultGIsIntOrg bool // DefaultGIsSuperAdmin holds the default value on creation for the "g_is_super_admin" field. DefaultGIsSuperAdmin bool // DefaultGCreatedAt holds the default value on creation for the "g_created_at" field. DefaultGCreatedAt func() time.Time )
var Columns = []string{ FieldID, FieldGName, FieldGIsIntOrg, FieldGIsSuperAdmin, FieldGCreatedAt, }
Columns holds all SQL columns for groups fields.
var ForeignKeys = []string{
"group_bandwidth_groups",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "groups" table and are not defined as standalone fields in the schema.
Functions ¶
func GCreatedAt ¶
GCreatedAt applies equality check predicate on the "g_created_at" field. It's identical to GCreatedAtEQ.
func GCreatedAtEQ ¶
GCreatedAtEQ applies the EQ predicate on the "g_created_at" field.
func GCreatedAtGT ¶
GCreatedAtGT applies the GT predicate on the "g_created_at" field.
func GCreatedAtGTE ¶
GCreatedAtGTE applies the GTE predicate on the "g_created_at" field.
func GCreatedAtIn ¶
GCreatedAtIn applies the In predicate on the "g_created_at" field.
func GCreatedAtIsNil ¶
GCreatedAtIsNil applies the IsNil predicate on the "g_created_at" field.
func GCreatedAtLT ¶
GCreatedAtLT applies the LT predicate on the "g_created_at" field.
func GCreatedAtLTE ¶
GCreatedAtLTE applies the LTE predicate on the "g_created_at" field.
func GCreatedAtNEQ ¶
GCreatedAtNEQ applies the NEQ predicate on the "g_created_at" field.
func GCreatedAtNotIn ¶
GCreatedAtNotIn applies the NotIn predicate on the "g_created_at" field.
func GCreatedAtNotNil ¶
GCreatedAtNotNil applies the NotNil predicate on the "g_created_at" field.
func GIsIntOrg ¶
GIsIntOrg applies equality check predicate on the "g_is_int_org" field. It's identical to GIsIntOrgEQ.
func GIsIntOrgEQ ¶
GIsIntOrgEQ applies the EQ predicate on the "g_is_int_org" field.
func GIsIntOrgNEQ ¶
GIsIntOrgNEQ applies the NEQ predicate on the "g_is_int_org" field.
func GIsSuperAdmin ¶
GIsSuperAdmin applies equality check predicate on the "g_is_super_admin" field. It's identical to GIsSuperAdminEQ.
func GIsSuperAdminEQ ¶
GIsSuperAdminEQ applies the EQ predicate on the "g_is_super_admin" field.
func GIsSuperAdminNEQ ¶
GIsSuperAdminNEQ applies the NEQ predicate on the "g_is_super_admin" field.
func GName ¶
GName applies equality check predicate on the "g_name" field. It's identical to GNameEQ.
func GNameContains ¶
GNameContains applies the Contains predicate on the "g_name" field.
func GNameContainsFold ¶
GNameContainsFold applies the ContainsFold predicate on the "g_name" field.
func GNameEqualFold ¶
GNameEqualFold applies the EqualFold predicate on the "g_name" field.
func GNameHasPrefix ¶
GNameHasPrefix applies the HasPrefix predicate on the "g_name" field.
func GNameHasSuffix ¶
GNameHasSuffix applies the HasSuffix predicate on the "g_name" field.
func GNameNotIn ¶
GNameNotIn applies the NotIn predicate on the "g_name" field.
func HasUseBandwidth ¶
HasUseBandwidth applies the HasEdge predicate on the "use_bandwidth" edge.
func HasUseBandwidthWith ¶
func HasUseBandwidthWith(preds ...predicate.GroupBandwidth) predicate.Groups
HasUseBandwidthWith applies the HasEdge predicate on the "use_bandwidth" edge with a given conditions (other predicates).
func HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.