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 HasAccounts() predicate.Tag
- func HasAccountsWith(preds ...predicate.Account) predicate.Tag
- func HasPosts() predicate.Tag
- func HasPostsWith(preds ...predicate.Post) predicate.Tag
- func ID(id xid.ID) predicate.Tag
- func IDEQ(id xid.ID) predicate.Tag
- func IDGT(id xid.ID) predicate.Tag
- func IDGTE(id xid.ID) predicate.Tag
- func IDIn(ids ...xid.ID) predicate.Tag
- func IDLT(id xid.ID) predicate.Tag
- func IDLTE(id xid.ID) predicate.Tag
- func IDNEQ(id xid.ID) predicate.Tag
- func IDNotIn(ids ...xid.ID) 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 ValidColumn(column string) bool
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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgePosts holds the string denoting the posts edge name in mutations. EdgePosts = "posts" // EdgeAccounts holds the string denoting the accounts edge name in mutations. EdgeAccounts = "accounts" // Table holds the table name of the tag in the database. Table = "tags" // PostsTable is the table that holds the posts relation/edge. The primary key declared below. PostsTable = "tag_posts" // PostsInverseTable is the table name for the Post entity. // It exists in this package in order to avoid circular dependency with the "post" package. PostsInverseTable = "posts" // AccountsTable is the table that holds the accounts relation/edge. The primary key declared below. AccountsTable = "account_tags" // AccountsInverseTable is the table name for the Account entity. // It exists in this package in order to avoid circular dependency with the "account" package. AccountsInverseTable = "accounts" )
Variables ¶
var ( // PostsPrimaryKey and PostsColumn2 are the table columns denoting the // primary key for the posts relation (M2M). PostsPrimaryKey = []string{"tag_id", "post_id"} // AccountsPrimaryKey and AccountsColumn2 are the table columns denoting the // primary key for the accounts relation (M2M). AccountsPrimaryKey = []string{"account_id", "tag_id"} )
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() xid.ID // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldName, }
Columns holds all SQL columns for tag 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 HasAccounts ¶
HasAccounts applies the HasEdge predicate on the "accounts" edge.
func HasAccountsWith ¶
HasAccountsWith applies the HasEdge predicate on the "accounts" edge with a given conditions (other predicates).
func HasPostsWith ¶
HasPostsWith applies the HasEdge predicate on the "posts" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.