groups

package
v0.0.0-...-dba37e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for groups fields.

View Source
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 And

func And(predicates ...predicate.Groups) predicate.Groups

And groups predicates with the AND operator between them.

func GCreatedAt

func GCreatedAt(v time.Time) predicate.Groups

GCreatedAt applies equality check predicate on the "g_created_at" field. It's identical to GCreatedAtEQ.

func GCreatedAtEQ

func GCreatedAtEQ(v time.Time) predicate.Groups

GCreatedAtEQ applies the EQ predicate on the "g_created_at" field.

func GCreatedAtGT

func GCreatedAtGT(v time.Time) predicate.Groups

GCreatedAtGT applies the GT predicate on the "g_created_at" field.

func GCreatedAtGTE

func GCreatedAtGTE(v time.Time) predicate.Groups

GCreatedAtGTE applies the GTE predicate on the "g_created_at" field.

func GCreatedAtIn

func GCreatedAtIn(vs ...time.Time) predicate.Groups

GCreatedAtIn applies the In predicate on the "g_created_at" field.

func GCreatedAtIsNil

func GCreatedAtIsNil() predicate.Groups

GCreatedAtIsNil applies the IsNil predicate on the "g_created_at" field.

func GCreatedAtLT

func GCreatedAtLT(v time.Time) predicate.Groups

GCreatedAtLT applies the LT predicate on the "g_created_at" field.

func GCreatedAtLTE

func GCreatedAtLTE(v time.Time) predicate.Groups

GCreatedAtLTE applies the LTE predicate on the "g_created_at" field.

func GCreatedAtNEQ

func GCreatedAtNEQ(v time.Time) predicate.Groups

GCreatedAtNEQ applies the NEQ predicate on the "g_created_at" field.

func GCreatedAtNotIn

func GCreatedAtNotIn(vs ...time.Time) predicate.Groups

GCreatedAtNotIn applies the NotIn predicate on the "g_created_at" field.

func GCreatedAtNotNil

func GCreatedAtNotNil() predicate.Groups

GCreatedAtNotNil applies the NotNil predicate on the "g_created_at" field.

func GIsIntOrg

func GIsIntOrg(v bool) predicate.Groups

GIsIntOrg applies equality check predicate on the "g_is_int_org" field. It's identical to GIsIntOrgEQ.

func GIsIntOrgEQ

func GIsIntOrgEQ(v bool) predicate.Groups

GIsIntOrgEQ applies the EQ predicate on the "g_is_int_org" field.

func GIsIntOrgNEQ

func GIsIntOrgNEQ(v bool) predicate.Groups

GIsIntOrgNEQ applies the NEQ predicate on the "g_is_int_org" field.

func GIsSuperAdmin

func GIsSuperAdmin(v bool) predicate.Groups

GIsSuperAdmin applies equality check predicate on the "g_is_super_admin" field. It's identical to GIsSuperAdminEQ.

func GIsSuperAdminEQ

func GIsSuperAdminEQ(v bool) predicate.Groups

GIsSuperAdminEQ applies the EQ predicate on the "g_is_super_admin" field.

func GIsSuperAdminNEQ

func GIsSuperAdminNEQ(v bool) predicate.Groups

GIsSuperAdminNEQ applies the NEQ predicate on the "g_is_super_admin" field.

func GName

func GName(v string) predicate.Groups

GName applies equality check predicate on the "g_name" field. It's identical to GNameEQ.

func GNameContains

func GNameContains(v string) predicate.Groups

GNameContains applies the Contains predicate on the "g_name" field.

func GNameContainsFold

func GNameContainsFold(v string) predicate.Groups

GNameContainsFold applies the ContainsFold predicate on the "g_name" field.

func GNameEQ

func GNameEQ(v string) predicate.Groups

GNameEQ applies the EQ predicate on the "g_name" field.

func GNameEqualFold

func GNameEqualFold(v string) predicate.Groups

GNameEqualFold applies the EqualFold predicate on the "g_name" field.

func GNameGT

func GNameGT(v string) predicate.Groups

GNameGT applies the GT predicate on the "g_name" field.

func GNameGTE

func GNameGTE(v string) predicate.Groups

GNameGTE applies the GTE predicate on the "g_name" field.

func GNameHasPrefix

func GNameHasPrefix(v string) predicate.Groups

GNameHasPrefix applies the HasPrefix predicate on the "g_name" field.

func GNameHasSuffix

func GNameHasSuffix(v string) predicate.Groups

GNameHasSuffix applies the HasSuffix predicate on the "g_name" field.

func GNameIn

func GNameIn(vs ...string) predicate.Groups

GNameIn applies the In predicate on the "g_name" field.

func GNameLT

func GNameLT(v string) predicate.Groups

GNameLT applies the LT predicate on the "g_name" field.

func GNameLTE

func GNameLTE(v string) predicate.Groups

GNameLTE applies the LTE predicate on the "g_name" field.

func GNameNEQ

func GNameNEQ(v string) predicate.Groups

GNameNEQ applies the NEQ predicate on the "g_name" field.

func GNameNotIn

func GNameNotIn(vs ...string) predicate.Groups

GNameNotIn applies the NotIn predicate on the "g_name" field.

func HasUseBandwidth

func HasUseBandwidth() predicate.Groups

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 HasUsers

func HasUsers() predicate.Groups

HasUsers applies the HasEdge predicate on the "users" edge.

func HasUsersWith

func HasUsersWith(preds ...predicate.Users) predicate.Groups

HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Groups

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Groups

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Groups

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Groups

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Groups

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Groups

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Groups

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Groups

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Groups

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Groups) predicate.Groups

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL