Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tag) predicate.Tag
- func Comment(v string) predicate.Tag
- func CommentContains(v string) predicate.Tag
- func CommentContainsFold(v string) predicate.Tag
- func CommentEQ(v string) predicate.Tag
- func CommentEqualFold(v string) predicate.Tag
- func CommentGT(v string) predicate.Tag
- func CommentGTE(v string) predicate.Tag
- func CommentHasPrefix(v string) predicate.Tag
- func CommentHasSuffix(v string) predicate.Tag
- func CommentIn(vs ...string) predicate.Tag
- func CommentIsNil() predicate.Tag
- func CommentLT(v string) predicate.Tag
- func CommentLTE(v string) predicate.Tag
- func CommentNEQ(v string) predicate.Tag
- func CommentNotIn(vs ...string) predicate.Tag
- func CommentNotNil() 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 DeletedAt(v time.Time) predicate.Tag
- func DeletedAtEQ(v time.Time) predicate.Tag
- func DeletedAtGT(v time.Time) predicate.Tag
- func DeletedAtGTE(v time.Time) predicate.Tag
- func DeletedAtIn(vs ...time.Time) predicate.Tag
- func DeletedAtIsNil() predicate.Tag
- func DeletedAtLT(v time.Time) predicate.Tag
- func DeletedAtLTE(v time.Time) predicate.Tag
- func DeletedAtNEQ(v time.Time) predicate.Tag
- func DeletedAtNotIn(vs ...time.Time) predicate.Tag
- func DeletedAtNotNil() predicate.Tag
- func HasBusiness() predicate.Tag
- func HasBusinessWith(preds ...predicate.Business) predicate.Tag
- func HasUser() predicate.Tag
- func HasUserWith(preds ...predicate.User) predicate.Tag
- func ID(id uuid.UUID) predicate.Tag
- func IDEQ(id uuid.UUID) predicate.Tag
- func IDGT(id uuid.UUID) predicate.Tag
- func IDGTE(id uuid.UUID) predicate.Tag
- func IDIn(ids ...uuid.UUID) predicate.Tag
- func IDLT(id uuid.UUID) predicate.Tag
- func IDLTE(id uuid.UUID) predicate.Tag
- func IDNEQ(id uuid.UUID) predicate.Tag
- func IDNotIn(ids ...uuid.UUID) 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
- type OrderOption
- func ByBusiness(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByBusinessCount(opts ...sql.OrderTermOption) OrderOption
- func ByComment(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUser(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUserCount(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" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldComment holds the string denoting the comment field in the database. FieldComment = "comment" // EdgeBusiness holds the string denoting the business edge name in mutations. EdgeBusiness = "business" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the tag in the database. Table = "tags" // BusinessTable is the table that holds the business relation/edge. The primary key declared below. BusinessTable = "business_tags" // BusinessInverseTable is the table name for the Business entity. // It exists in this package in order to avoid circular dependency with the "business" package. BusinessInverseTable = "businesses" // UserTable is the table that holds the user relation/edge. The primary key declared below. UserTable = "user_tags" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" )
Variables ¶
var ( // BusinessPrimaryKey and BusinessColumn2 are the table columns denoting the // primary key for the business relation (M2M). BusinessPrimaryKey = []string{"business_id", "tag_id"} // UserPrimaryKey and UserColumn2 are the table columns denoting the // primary key for the user relation (M2M). UserPrimaryKey = []string{"user_id", "tag_id"} )
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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldName, FieldComment, }
Columns holds all SQL columns for tag fields.
Functions ¶
func Comment ¶
Comment applies equality check predicate on the "comment" field. It's identical to CommentEQ.
func CommentContains ¶
CommentContains applies the Contains predicate on the "comment" field.
func CommentContainsFold ¶
CommentContainsFold applies the ContainsFold predicate on the "comment" field.
func CommentEqualFold ¶
CommentEqualFold applies the EqualFold predicate on the "comment" field.
func CommentGTE ¶
CommentGTE applies the GTE predicate on the "comment" field.
func CommentHasPrefix ¶
CommentHasPrefix applies the HasPrefix predicate on the "comment" field.
func CommentHasSuffix ¶
CommentHasSuffix applies the HasSuffix predicate on the "comment" field.
func CommentIsNil ¶
CommentIsNil applies the IsNil predicate on the "comment" field.
func CommentLTE ¶
CommentLTE applies the LTE predicate on the "comment" field.
func CommentNEQ ¶
CommentNEQ applies the NEQ predicate on the "comment" field.
func CommentNotIn ¶
CommentNotIn applies the NotIn predicate on the "comment" field.
func CommentNotNil ¶
CommentNotNil applies the NotNil predicate on the "comment" field.
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 DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func HasBusiness ¶
HasBusiness applies the HasEdge predicate on the "business" edge.
func HasBusinessWith ¶
HasBusinessWith applies the HasEdge predicate on the "business" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" 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 Tag queries.
func ByBusiness ¶
func ByBusiness(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByBusiness orders the results by business terms.
func ByBusinessCount ¶
func ByBusinessCount(opts ...sql.OrderTermOption) OrderOption
ByBusinessCount orders the results by business count.
func ByComment ¶
func ByComment(opts ...sql.OrderTermOption) OrderOption
ByComment orders the results by the comment field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_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 ByUser ¶
func ByUser(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUser orders the results by user terms.
func ByUserCount ¶
func ByUserCount(opts ...sql.OrderTermOption) OrderOption
ByUserCount orders the results by user count.