Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tag) predicate.Tag
- func CreatedAt(v time.Time) predicate.Tag
- func CreatedAtEQ(v time.Time) predicate.Tag
- func CreatedAtGT(v time.Time) predicate.Tag
- func CreatedAtGTE(v time.Time) predicate.Tag
- func CreatedAtIn(vs ...time.Time) predicate.Tag
- func CreatedAtLT(v time.Time) predicate.Tag
- func CreatedAtLTE(v time.Time) predicate.Tag
- func CreatedAtNEQ(v time.Time) predicate.Tag
- func CreatedAtNotIn(vs ...time.Time) predicate.Tag
- func HasContactTags() predicate.Tag
- func HasContactTagsWith(preds ...predicate.ContactTag) predicate.Tag
- func HasContacts() predicate.Tag
- func HasContactsWith(preds ...predicate.Contact) predicate.Tag
- func HasWorkspace() predicate.Tag
- func HasWorkspaceWith(preds ...predicate.Workspace) predicate.Tag
- func ID(id int64) predicate.Tag
- func IDEQ(id int64) predicate.Tag
- func IDGT(id int64) predicate.Tag
- func IDGTE(id int64) predicate.Tag
- func IDIn(ids ...int64) predicate.Tag
- func IDLT(id int64) predicate.Tag
- func IDLTE(id int64) predicate.Tag
- func IDNEQ(id int64) predicate.Tag
- func IDNotIn(ids ...int64) predicate.Tag
- func Name(v string) predicate.Tag
- func NameContains(v string) predicate.Tag
- func NameContainsFold(v string) predicate.Tag
- func NameEQ(v string) predicate.Tag
- func NameEqualFold(v string) predicate.Tag
- func NameGT(v string) predicate.Tag
- func NameGTE(v string) predicate.Tag
- func NameHasPrefix(v string) predicate.Tag
- func NameHasSuffix(v string) predicate.Tag
- func NameIn(vs ...string) predicate.Tag
- func NameLT(v string) predicate.Tag
- func NameLTE(v string) predicate.Tag
- func NameNEQ(v string) predicate.Tag
- func NameNotIn(vs ...string) predicate.Tag
- func Not(p predicate.Tag) predicate.Tag
- func Or(predicates ...predicate.Tag) predicate.Tag
- func UpdatedAt(v time.Time) predicate.Tag
- func UpdatedAtEQ(v time.Time) predicate.Tag
- func UpdatedAtGT(v time.Time) predicate.Tag
- func UpdatedAtGTE(v time.Time) predicate.Tag
- func UpdatedAtIn(vs ...time.Time) predicate.Tag
- func UpdatedAtLT(v time.Time) predicate.Tag
- func UpdatedAtLTE(v time.Time) predicate.Tag
- func UpdatedAtNEQ(v time.Time) predicate.Tag
- func UpdatedAtNotIn(vs ...time.Time) predicate.Tag
- func ValidColumn(column string) bool
- func WorkspaceID(v int64) predicate.Tag
- func WorkspaceIDEQ(v int64) predicate.Tag
- func WorkspaceIDIn(vs ...int64) predicate.Tag
- func WorkspaceIDNEQ(v int64) predicate.Tag
- func WorkspaceIDNotIn(vs ...int64) predicate.Tag
- type OrderOption
- func ByContactTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByContactTagsCount(opts ...sql.OrderTermOption) OrderOption
- func ByContacts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByContactsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByWorkspaceID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the tag type in the database. Label = "tag" // 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" // FieldWorkspaceID holds the string denoting the workspace_id field in the database. FieldWorkspaceID = "workspace_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgeWorkspace holds the string denoting the workspace edge name in mutations. EdgeWorkspace = "workspace" // EdgeContacts holds the string denoting the contacts edge name in mutations. EdgeContacts = "contacts" // EdgeContactTags holds the string denoting the contact_tags edge name in mutations. EdgeContactTags = "contact_tags" // Table holds the table name of the tag in the database. Table = "tags" // WorkspaceTable is the table that holds the workspace relation/edge. WorkspaceTable = "tags" // WorkspaceInverseTable is the table name for the Workspace entity. // It exists in this package in order to avoid circular dependency with the "workspace" package. WorkspaceInverseTable = "workspaces" // WorkspaceColumn is the table column denoting the workspace relation/edge. WorkspaceColumn = "workspace_id" // ContactsTable is the table that holds the contacts relation/edge. The primary key declared below. ContactsTable = "contact_tags" // ContactsInverseTable is the table name for the Contact entity. // It exists in this package in order to avoid circular dependency with the "contact" package. ContactsInverseTable = "contacts" // ContactTagsTable is the table that holds the contact_tags relation/edge. ContactTagsTable = "contact_tags" // ContactTagsInverseTable is the table name for the ContactTag entity. // It exists in this package in order to avoid circular dependency with the "contacttag" package. ContactTagsInverseTable = "contact_tags" // ContactTagsColumn is the table column denoting the contact_tags relation/edge. ContactTagsColumn = "tag_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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldWorkspaceID, FieldName, }
Columns holds all SQL columns for tag fields.
var ( // ContactsPrimaryKey and ContactsColumn2 are the table columns denoting the // primary key for the contacts relation (M2M). ContactsPrimaryKey = []string{"contact_id", "tag_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 HasContactTags ¶
HasContactTags applies the HasEdge predicate on the "contact_tags" edge.
func HasContactTagsWith ¶
func HasContactTagsWith(preds ...predicate.ContactTag) predicate.Tag
HasContactTagsWith applies the HasEdge predicate on the "contact_tags" edge with a given conditions (other predicates).
func HasContacts ¶
HasContacts applies the HasEdge predicate on the "contacts" edge.
func HasContactsWith ¶
HasContactsWith applies the HasEdge predicate on the "contacts" edge with a given conditions (other predicates).
func HasWorkspace ¶
HasWorkspace applies the HasEdge predicate on the "workspace" edge.
func HasWorkspaceWith ¶
HasWorkspaceWith applies the HasEdge predicate on the "workspace" 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).
func WorkspaceID ¶
WorkspaceID applies equality check predicate on the "workspace_id" field. It's identical to WorkspaceIDEQ.
func WorkspaceIDEQ ¶
WorkspaceIDEQ applies the EQ predicate on the "workspace_id" field.
func WorkspaceIDIn ¶
WorkspaceIDIn applies the In predicate on the "workspace_id" field.
func WorkspaceIDNEQ ¶
WorkspaceIDNEQ applies the NEQ predicate on the "workspace_id" field.
func WorkspaceIDNotIn ¶
WorkspaceIDNotIn applies the NotIn predicate on the "workspace_id" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Tag queries.
func ByContactTags ¶
func ByContactTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByContactTags orders the results by contact_tags terms.
func ByContactTagsCount ¶
func ByContactTagsCount(opts ...sql.OrderTermOption) OrderOption
ByContactTagsCount orders the results by contact_tags count.
func ByContacts ¶
func ByContacts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByContacts orders the results by contacts terms.
func ByContactsCount ¶
func ByContactsCount(opts ...sql.OrderTermOption) OrderOption
ByContactsCount orders the results by contacts count.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByWorkspaceField ¶
func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption
ByWorkspaceField orders the results by workspace field.
func ByWorkspaceID ¶
func ByWorkspaceID(opts ...sql.OrderTermOption) OrderOption
ByWorkspaceID orders the results by the workspace_id field.