Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Group) predicate.Group
- func CreatedAt(v time.Time) predicate.Group
- func CreatedAtEQ(v time.Time) predicate.Group
- func CreatedAtGT(v time.Time) predicate.Group
- func CreatedAtGTE(v time.Time) predicate.Group
- func CreatedAtIn(vs ...time.Time) predicate.Group
- func CreatedAtLT(v time.Time) predicate.Group
- func CreatedAtLTE(v time.Time) predicate.Group
- func CreatedAtNEQ(v time.Time) predicate.Group
- func CreatedAtNotIn(vs ...time.Time) predicate.Group
- func CreatedBy(v string) predicate.Group
- func CreatedByContains(v string) predicate.Group
- func CreatedByContainsFold(v string) predicate.Group
- func CreatedByEQ(v string) predicate.Group
- func CreatedByEqualFold(v string) predicate.Group
- func CreatedByGT(v string) predicate.Group
- func CreatedByGTE(v string) predicate.Group
- func CreatedByHasPrefix(v string) predicate.Group
- func CreatedByHasSuffix(v string) predicate.Group
- func CreatedByIn(vs ...string) predicate.Group
- func CreatedByIsNil() predicate.Group
- func CreatedByLT(v string) predicate.Group
- func CreatedByLTE(v string) predicate.Group
- func CreatedByNEQ(v string) predicate.Group
- func CreatedByNotIn(vs ...string) predicate.Group
- func CreatedByNotNil() predicate.Group
- func Description(v string) predicate.Group
- func DescriptionContains(v string) predicate.Group
- func DescriptionContainsFold(v string) predicate.Group
- func DescriptionEQ(v string) predicate.Group
- func DescriptionEqualFold(v string) predicate.Group
- func DescriptionGT(v string) predicate.Group
- func DescriptionGTE(v string) predicate.Group
- func DescriptionHasPrefix(v string) predicate.Group
- func DescriptionHasSuffix(v string) predicate.Group
- func DescriptionIn(vs ...string) predicate.Group
- func DescriptionLT(v string) predicate.Group
- func DescriptionLTE(v string) predicate.Group
- func DescriptionNEQ(v string) predicate.Group
- func DescriptionNotIn(vs ...string) predicate.Group
- func DisplayName(v string) predicate.Group
- func DisplayNameContains(v string) predicate.Group
- func DisplayNameContainsFold(v string) predicate.Group
- func DisplayNameEQ(v string) predicate.Group
- func DisplayNameEqualFold(v string) predicate.Group
- func DisplayNameGT(v string) predicate.Group
- func DisplayNameGTE(v string) predicate.Group
- func DisplayNameHasPrefix(v string) predicate.Group
- func DisplayNameHasSuffix(v string) predicate.Group
- func DisplayNameIn(vs ...string) predicate.Group
- func DisplayNameLT(v string) predicate.Group
- func DisplayNameLTE(v string) predicate.Group
- func DisplayNameNEQ(v string) predicate.Group
- func DisplayNameNotIn(vs ...string) predicate.Group
- func HasOwner() predicate.Group
- func HasOwnerWith(preds ...predicate.Organization) predicate.Group
- func HasSetting() predicate.Group
- func HasSettingWith(preds ...predicate.GroupSettings) predicate.Group
- func HasUsers() predicate.Group
- func HasUsersWith(preds ...predicate.User) predicate.Group
- func ID(id string) predicate.Group
- func IDContainsFold(id string) predicate.Group
- func IDEQ(id string) predicate.Group
- func IDEqualFold(id string) predicate.Group
- func IDGT(id string) predicate.Group
- func IDGTE(id string) predicate.Group
- func IDIn(ids ...string) predicate.Group
- func IDLT(id string) predicate.Group
- func IDLTE(id string) predicate.Group
- func IDNEQ(id string) predicate.Group
- func IDNotIn(ids ...string) predicate.Group
- func LogoURL(v string) predicate.Group
- func LogoURLContains(v string) predicate.Group
- func LogoURLContainsFold(v string) predicate.Group
- func LogoURLEQ(v string) predicate.Group
- func LogoURLEqualFold(v string) predicate.Group
- func LogoURLGT(v string) predicate.Group
- func LogoURLGTE(v string) predicate.Group
- func LogoURLHasPrefix(v string) predicate.Group
- func LogoURLHasSuffix(v string) predicate.Group
- func LogoURLIn(vs ...string) predicate.Group
- func LogoURLLT(v string) predicate.Group
- func LogoURLLTE(v string) predicate.Group
- func LogoURLNEQ(v string) predicate.Group
- func LogoURLNotIn(vs ...string) 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 UpdatedAt(v time.Time) predicate.Group
- func UpdatedAtEQ(v time.Time) predicate.Group
- func UpdatedAtGT(v time.Time) predicate.Group
- func UpdatedAtGTE(v time.Time) predicate.Group
- func UpdatedAtIn(vs ...time.Time) predicate.Group
- func UpdatedAtLT(v time.Time) predicate.Group
- func UpdatedAtLTE(v time.Time) predicate.Group
- func UpdatedAtNEQ(v time.Time) predicate.Group
- func UpdatedAtNotIn(vs ...time.Time) predicate.Group
- func UpdatedBy(v string) predicate.Group
- func UpdatedByContains(v string) predicate.Group
- func UpdatedByContainsFold(v string) predicate.Group
- func UpdatedByEQ(v string) predicate.Group
- func UpdatedByEqualFold(v string) predicate.Group
- func UpdatedByGT(v string) predicate.Group
- func UpdatedByGTE(v string) predicate.Group
- func UpdatedByHasPrefix(v string) predicate.Group
- func UpdatedByHasSuffix(v string) predicate.Group
- func UpdatedByIn(vs ...string) predicate.Group
- func UpdatedByIsNil() predicate.Group
- func UpdatedByLT(v string) predicate.Group
- func UpdatedByLTE(v string) predicate.Group
- func UpdatedByNEQ(v string) predicate.Group
- func UpdatedByNotIn(vs ...string) predicate.Group
- func UpdatedByNotNil() predicate.Group
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLogoURL(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func BySettingField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUsersCount(opts ...sql.OrderTermOption) OrderOption
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" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldLogoURL holds the string denoting the logo_url field in the database. FieldLogoURL = "logo_url" // FieldDisplayName holds the string denoting the display_name field in the database. FieldDisplayName = "display_name" // EdgeSetting holds the string denoting the setting edge name in mutations. EdgeSetting = "setting" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the group in the database. Table = "groups" // SettingTable is the table that holds the setting relation/edge. SettingTable = "group_settings" // SettingInverseTable is the table name for the GroupSettings entity. // It exists in this package in order to avoid circular dependency with the "groupsettings" package. SettingInverseTable = "group_settings" // SettingColumn is the table column denoting the setting relation/edge. SettingColumn = "group_setting" // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "group_users" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UsersInverseTable = "users" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "groups" // OwnerInverseTable is the table name for the Organization entity. // It exists in this package in order to avoid circular dependency with the "organization" package. OwnerInverseTable = "organizations" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "organization_groups" )
Variables ¶
var ( Hooks [2]ent.Hook Policy ent.Policy // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultDescription holds the default value on creation for the "description" field. DefaultDescription string // LogoURLValidator is a validator for the "logo_url" field. It is called by the builders before save. LogoURLValidator func(string) error // DefaultDisplayName holds the default value on creation for the "display_name" field. DefaultDisplayName string // DisplayNameValidator is a validator for the "display_name" field. It is called by the builders before save. DisplayNameValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/datumforge/datum/internal/ent/generated/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldName, FieldDescription, FieldLogoURL, FieldDisplayName, }
Columns holds all SQL columns for group fields.
var ForeignKeys = []string{
"organization_groups",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "groups" table and are not defined as standalone fields in the schema.
var ( // UsersPrimaryKey and UsersColumn2 are the table columns denoting the // primary key for the users relation (M2M). UsersPrimaryKey = []string{"group_id", "user_id"} )
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DisplayName ¶
DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.
func DisplayNameContains ¶
DisplayNameContains applies the Contains predicate on the "display_name" field.
func DisplayNameContainsFold ¶
DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.
func DisplayNameEQ ¶
DisplayNameEQ applies the EQ predicate on the "display_name" field.
func DisplayNameEqualFold ¶
DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.
func DisplayNameGT ¶
DisplayNameGT applies the GT predicate on the "display_name" field.
func DisplayNameGTE ¶
DisplayNameGTE applies the GTE predicate on the "display_name" field.
func DisplayNameHasPrefix ¶
DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.
func DisplayNameHasSuffix ¶
DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.
func DisplayNameIn ¶
DisplayNameIn applies the In predicate on the "display_name" field.
func DisplayNameLT ¶
DisplayNameLT applies the LT predicate on the "display_name" field.
func DisplayNameLTE ¶
DisplayNameLTE applies the LTE predicate on the "display_name" field.
func DisplayNameNEQ ¶
DisplayNameNEQ applies the NEQ predicate on the "display_name" field.
func DisplayNameNotIn ¶
DisplayNameNotIn applies the NotIn predicate on the "display_name" field.
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.Organization) predicate.Group
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasSetting ¶
HasSetting applies the HasEdge predicate on the "setting" edge.
func HasSettingWith ¶
func HasSettingWith(preds ...predicate.GroupSettings) predicate.Group
HasSettingWith applies the HasEdge predicate on the "setting" 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 IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func LogoURL ¶
LogoURL applies equality check predicate on the "logo_url" field. It's identical to LogoURLEQ.
func LogoURLContains ¶
LogoURLContains applies the Contains predicate on the "logo_url" field.
func LogoURLContainsFold ¶
LogoURLContainsFold applies the ContainsFold predicate on the "logo_url" field.
func LogoURLEqualFold ¶
LogoURLEqualFold applies the EqualFold predicate on the "logo_url" field.
func LogoURLGTE ¶
LogoURLGTE applies the GTE predicate on the "logo_url" field.
func LogoURLHasPrefix ¶
LogoURLHasPrefix applies the HasPrefix predicate on the "logo_url" field.
func LogoURLHasSuffix ¶
LogoURLHasSuffix applies the HasSuffix predicate on the "logo_url" field.
func LogoURLLTE ¶
LogoURLLTE applies the LTE predicate on the "logo_url" field.
func LogoURLNEQ ¶
LogoURLNEQ applies the NEQ predicate on the "logo_url" field.
func LogoURLNotIn ¶
LogoURLNotIn applies the NotIn predicate on the "logo_url" 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 UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" 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 Group queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedBy ¶
func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
ByCreatedBy orders the results by the created_by field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByDisplayName ¶
func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
ByDisplayName orders the results by the display_name field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLogoURL ¶
func ByLogoURL(opts ...sql.OrderTermOption) OrderOption
ByLogoURL orders the results by the logo_url 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 BySettingField ¶
func BySettingField(field string, opts ...sql.OrderTermOption) OrderOption
BySettingField orders the results by setting field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedBy ¶
func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
ByUpdatedBy orders the results by the updated_by field.
func ByUsers ¶
func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUsers orders the results by users terms.
func ByUsersCount ¶
func ByUsersCount(opts ...sql.OrderTermOption) OrderOption
ByUsersCount orders the results by users count.