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 Currency(v string) predicate.Group
- func CurrencyContains(v string) predicate.Group
- func CurrencyContainsFold(v string) predicate.Group
- func CurrencyEQ(v string) predicate.Group
- func CurrencyEqualFold(v string) predicate.Group
- func CurrencyGT(v string) predicate.Group
- func CurrencyGTE(v string) predicate.Group
- func CurrencyHasPrefix(v string) predicate.Group
- func CurrencyHasSuffix(v string) predicate.Group
- func CurrencyIn(vs ...string) predicate.Group
- func CurrencyLT(v string) predicate.Group
- func CurrencyLTE(v string) predicate.Group
- func CurrencyNEQ(v string) predicate.Group
- func CurrencyNotIn(vs ...string) predicate.Group
- func HasDocuments() predicate.Group
- func HasDocumentsWith(preds ...predicate.Document) predicate.Group
- func HasInvitationTokens() predicate.Group
- func HasInvitationTokensWith(preds ...predicate.GroupInvitationToken) predicate.Group
- func HasItems() predicate.Group
- func HasItemsWith(preds ...predicate.Item) predicate.Group
- func HasLabels() predicate.Group
- func HasLabelsWith(preds ...predicate.Label) predicate.Group
- func HasLocations() predicate.Group
- func HasLocationsWith(preds ...predicate.Location) predicate.Group
- func HasNotifiers() predicate.Group
- func HasNotifiersWith(preds ...predicate.Notifier) predicate.Group
- func HasUsers() predicate.Group
- func HasUsersWith(preds ...predicate.User) predicate.Group
- func ID(id uuid.UUID) predicate.Group
- func IDEQ(id uuid.UUID) predicate.Group
- func IDGT(id uuid.UUID) predicate.Group
- func IDGTE(id uuid.UUID) predicate.Group
- func IDIn(ids ...uuid.UUID) predicate.Group
- func IDLT(id uuid.UUID) predicate.Group
- func IDLTE(id uuid.UUID) predicate.Group
- func IDNEQ(id uuid.UUID) predicate.Group
- func IDNotIn(ids ...uuid.UUID) 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 ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCurrency(opts ...sql.OrderTermOption) OrderOption
- func ByDocuments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDocumentsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInvitationTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByInvitationTokensCount(opts ...sql.OrderTermOption) OrderOption
- func ByItems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByItemsCount(opts ...sql.OrderTermOption) OrderOption
- func ByLabels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByLabelsCount(opts ...sql.OrderTermOption) OrderOption
- func ByLocations(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByLocationsCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNotifiers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNotifiersCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCurrency holds the string denoting the currency field in the database. FieldCurrency = "currency" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // EdgeLocations holds the string denoting the locations edge name in mutations. EdgeLocations = "locations" // EdgeItems holds the string denoting the items edge name in mutations. EdgeItems = "items" // EdgeLabels holds the string denoting the labels edge name in mutations. EdgeLabels = "labels" // EdgeDocuments holds the string denoting the documents edge name in mutations. EdgeDocuments = "documents" // EdgeInvitationTokens holds the string denoting the invitation_tokens edge name in mutations. EdgeInvitationTokens = "invitation_tokens" // EdgeNotifiers holds the string denoting the notifiers edge name in mutations. EdgeNotifiers = "notifiers" // Table holds the table name of the group in the database. Table = "groups" // UsersTable is the table that holds the users relation/edge. UsersTable = "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" // UsersColumn is the table column denoting the users relation/edge. UsersColumn = "group_users" // LocationsTable is the table that holds the locations relation/edge. LocationsTable = "locations" // LocationsInverseTable is the table name for the Location entity. // It exists in this package in order to avoid circular dependency with the "location" package. LocationsInverseTable = "locations" // LocationsColumn is the table column denoting the locations relation/edge. LocationsColumn = "group_locations" // ItemsTable is the table that holds the items relation/edge. ItemsTable = "items" // ItemsInverseTable is the table name for the Item entity. // It exists in this package in order to avoid circular dependency with the "item" package. ItemsInverseTable = "items" // ItemsColumn is the table column denoting the items relation/edge. ItemsColumn = "group_items" // LabelsTable is the table that holds the labels relation/edge. LabelsTable = "labels" // LabelsInverseTable is the table name for the Label entity. // It exists in this package in order to avoid circular dependency with the "label" package. LabelsInverseTable = "labels" // LabelsColumn is the table column denoting the labels relation/edge. LabelsColumn = "group_labels" // DocumentsTable is the table that holds the documents relation/edge. DocumentsTable = "documents" // DocumentsInverseTable is the table name for the Document entity. // It exists in this package in order to avoid circular dependency with the "document" package. DocumentsInverseTable = "documents" // DocumentsColumn is the table column denoting the documents relation/edge. DocumentsColumn = "group_documents" // InvitationTokensTable is the table that holds the invitation_tokens relation/edge. InvitationTokensTable = "group_invitation_tokens" // InvitationTokensInverseTable is the table name for the GroupInvitationToken entity. // It exists in this package in order to avoid circular dependency with the "groupinvitationtoken" package. InvitationTokensInverseTable = "group_invitation_tokens" // InvitationTokensColumn is the table column denoting the invitation_tokens relation/edge. InvitationTokensColumn = "group_invitation_tokens" // NotifiersTable is the table that holds the notifiers relation/edge. NotifiersTable = "notifiers" // NotifiersInverseTable is the table name for the Notifier entity. // It exists in this package in order to avoid circular dependency with the "notifier" package. NotifiersInverseTable = "notifiers" // NotifiersColumn is the table column denoting the notifiers relation/edge. NotifiersColumn = "group_id" )
Variables ¶
var ( // 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 // DefaultCurrency holds the default value on creation for the "currency" field. DefaultCurrency string // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldCurrency, }
Columns holds all SQL columns for group fields.
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 Currency ¶
Currency applies equality check predicate on the "currency" field. It's identical to CurrencyEQ.
func CurrencyContains ¶
CurrencyContains applies the Contains predicate on the "currency" field.
func CurrencyContainsFold ¶
CurrencyContainsFold applies the ContainsFold predicate on the "currency" field.
func CurrencyEQ ¶
CurrencyEQ applies the EQ predicate on the "currency" field.
func CurrencyEqualFold ¶
CurrencyEqualFold applies the EqualFold predicate on the "currency" field.
func CurrencyGT ¶
CurrencyGT applies the GT predicate on the "currency" field.
func CurrencyGTE ¶
CurrencyGTE applies the GTE predicate on the "currency" field.
func CurrencyHasPrefix ¶
CurrencyHasPrefix applies the HasPrefix predicate on the "currency" field.
func CurrencyHasSuffix ¶
CurrencyHasSuffix applies the HasSuffix predicate on the "currency" field.
func CurrencyIn ¶
CurrencyIn applies the In predicate on the "currency" field.
func CurrencyLT ¶
CurrencyLT applies the LT predicate on the "currency" field.
func CurrencyLTE ¶
CurrencyLTE applies the LTE predicate on the "currency" field.
func CurrencyNEQ ¶
CurrencyNEQ applies the NEQ predicate on the "currency" field.
func CurrencyNotIn ¶
CurrencyNotIn applies the NotIn predicate on the "currency" field.
func HasDocuments ¶
HasDocuments applies the HasEdge predicate on the "documents" edge.
func HasDocumentsWith ¶
HasDocumentsWith applies the HasEdge predicate on the "documents" edge with a given conditions (other predicates).
func HasInvitationTokens ¶
HasInvitationTokens applies the HasEdge predicate on the "invitation_tokens" edge.
func HasInvitationTokensWith ¶
func HasInvitationTokensWith(preds ...predicate.GroupInvitationToken) predicate.Group
HasInvitationTokensWith applies the HasEdge predicate on the "invitation_tokens" edge with a given conditions (other predicates).
func HasItemsWith ¶
HasItemsWith applies the HasEdge predicate on the "items" edge with a given conditions (other predicates).
func HasLabelsWith ¶
HasLabelsWith applies the HasEdge predicate on the "labels" edge with a given conditions (other predicates).
func HasLocations ¶
HasLocations applies the HasEdge predicate on the "locations" edge.
func HasLocationsWith ¶
HasLocationsWith applies the HasEdge predicate on the "locations" edge with a given conditions (other predicates).
func HasNotifiers ¶
HasNotifiers applies the HasEdge predicate on the "notifiers" edge.
func HasNotifiersWith ¶
HasNotifiersWith applies the HasEdge predicate on the "notifiers" 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 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 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 ByCurrency ¶
func ByCurrency(opts ...sql.OrderTermOption) OrderOption
ByCurrency orders the results by the currency field.
func ByDocuments ¶
func ByDocuments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDocuments orders the results by documents terms.
func ByDocumentsCount ¶
func ByDocumentsCount(opts ...sql.OrderTermOption) OrderOption
ByDocumentsCount orders the results by documents count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInvitationTokens ¶
func ByInvitationTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByInvitationTokens orders the results by invitation_tokens terms.
func ByInvitationTokensCount ¶
func ByInvitationTokensCount(opts ...sql.OrderTermOption) OrderOption
ByInvitationTokensCount orders the results by invitation_tokens count.
func ByItems ¶
func ByItems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByItems orders the results by items terms.
func ByItemsCount ¶
func ByItemsCount(opts ...sql.OrderTermOption) OrderOption
ByItemsCount orders the results by items count.
func ByLabels ¶
func ByLabels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByLabels orders the results by labels terms.
func ByLabelsCount ¶
func ByLabelsCount(opts ...sql.OrderTermOption) OrderOption
ByLabelsCount orders the results by labels count.
func ByLocations ¶
func ByLocations(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByLocations orders the results by locations terms.
func ByLocationsCount ¶
func ByLocationsCount(opts ...sql.OrderTermOption) OrderOption
ByLocationsCount orders the results by locations count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByNotifiers ¶
func ByNotifiers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByNotifiers orders the results by notifiers terms.
func ByNotifiersCount ¶
func ByNotifiersCount(opts ...sql.OrderTermOption) OrderOption
ByNotifiersCount orders the results by notifiers count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at 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.