Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Topic) predicate.Topic
- func Content(v string) predicate.Topic
- func ContentContains(v string) predicate.Topic
- func ContentContainsFold(v string) predicate.Topic
- func ContentEQ(v string) predicate.Topic
- func ContentEqualFold(v string) predicate.Topic
- func ContentGT(v string) predicate.Topic
- func ContentGTE(v string) predicate.Topic
- func ContentHTML(v string) predicate.Topic
- func ContentHTMLContains(v string) predicate.Topic
- func ContentHTMLContainsFold(v string) predicate.Topic
- func ContentHTMLEQ(v string) predicate.Topic
- func ContentHTMLEqualFold(v string) predicate.Topic
- func ContentHTMLGT(v string) predicate.Topic
- func ContentHTMLGTE(v string) predicate.Topic
- func ContentHTMLHasPrefix(v string) predicate.Topic
- func ContentHTMLHasSuffix(v string) predicate.Topic
- func ContentHTMLIn(vs ...string) predicate.Topic
- func ContentHTMLLT(v string) predicate.Topic
- func ContentHTMLLTE(v string) predicate.Topic
- func ContentHTMLNEQ(v string) predicate.Topic
- func ContentHTMLNotIn(vs ...string) predicate.Topic
- func ContentHasPrefix(v string) predicate.Topic
- func ContentHasSuffix(v string) predicate.Topic
- func ContentIn(vs ...string) predicate.Topic
- func ContentLT(v string) predicate.Topic
- func ContentLTE(v string) predicate.Topic
- func ContentNEQ(v string) predicate.Topic
- func ContentNotIn(vs ...string) predicate.Topic
- func CreatedAt(v time.Time) predicate.Topic
- func CreatedAtEQ(v time.Time) predicate.Topic
- func CreatedAtGT(v time.Time) predicate.Topic
- func CreatedAtGTE(v time.Time) predicate.Topic
- func CreatedAtIn(vs ...time.Time) predicate.Topic
- func CreatedAtLT(v time.Time) predicate.Topic
- func CreatedAtLTE(v time.Time) predicate.Topic
- func CreatedAtNEQ(v time.Time) predicate.Topic
- func CreatedAtNotIn(vs ...time.Time) predicate.Topic
- func DeletedAt(v time.Time) predicate.Topic
- func DeletedAtEQ(v time.Time) predicate.Topic
- func DeletedAtGT(v time.Time) predicate.Topic
- func DeletedAtGTE(v time.Time) predicate.Topic
- func DeletedAtIn(vs ...time.Time) predicate.Topic
- func DeletedAtIsNil() predicate.Topic
- func DeletedAtLT(v time.Time) predicate.Topic
- func DeletedAtLTE(v time.Time) predicate.Topic
- func DeletedAtNEQ(v time.Time) predicate.Topic
- func DeletedAtNotIn(vs ...time.Time) predicate.Topic
- func DeletedAtNotNil() predicate.Topic
- func Description(v string) predicate.Topic
- func DescriptionContains(v string) predicate.Topic
- func DescriptionContainsFold(v string) predicate.Topic
- func DescriptionEQ(v string) predicate.Topic
- func DescriptionEqualFold(v string) predicate.Topic
- func DescriptionGT(v string) predicate.Topic
- func DescriptionGTE(v string) predicate.Topic
- func DescriptionHasPrefix(v string) predicate.Topic
- func DescriptionHasSuffix(v string) predicate.Topic
- func DescriptionIn(vs ...string) predicate.Topic
- func DescriptionIsNil() predicate.Topic
- func DescriptionLT(v string) predicate.Topic
- func DescriptionLTE(v string) predicate.Topic
- func DescriptionNEQ(v string) predicate.Topic
- func DescriptionNotIn(vs ...string) predicate.Topic
- func DescriptionNotNil() predicate.Topic
- func HasChildren() predicate.Topic
- func HasChildrenWith(preds ...predicate.Topic) predicate.Topic
- func HasParent() predicate.Topic
- func HasParentWith(preds ...predicate.Topic) predicate.Topic
- func HasPosts() predicate.Topic
- func HasPostsWith(preds ...predicate.Post) predicate.Topic
- func ID(id int) predicate.Topic
- func IDEQ(id int) predicate.Topic
- func IDGT(id int) predicate.Topic
- func IDGTE(id int) predicate.Topic
- func IDIn(ids ...int) predicate.Topic
- func IDLT(id int) predicate.Topic
- func IDLTE(id int) predicate.Topic
- func IDNEQ(id int) predicate.Topic
- func IDNotIn(ids ...int) predicate.Topic
- func Name(v string) predicate.Topic
- func NameContains(v string) predicate.Topic
- func NameContainsFold(v string) predicate.Topic
- func NameEQ(v string) predicate.Topic
- func NameEqualFold(v string) predicate.Topic
- func NameGT(v string) predicate.Topic
- func NameGTE(v string) predicate.Topic
- func NameHasPrefix(v string) predicate.Topic
- func NameHasSuffix(v string) predicate.Topic
- func NameIn(vs ...string) predicate.Topic
- func NameLT(v string) predicate.Topic
- func NameLTE(v string) predicate.Topic
- func NameNEQ(v string) predicate.Topic
- func NameNotIn(vs ...string) predicate.Topic
- func Not(p predicate.Topic) predicate.Topic
- func Or(predicates ...predicate.Topic) predicate.Topic
- func ParentID(v int) predicate.Topic
- func ParentIDEQ(v int) predicate.Topic
- func ParentIDIn(vs ...int) predicate.Topic
- func ParentIDIsNil() predicate.Topic
- func ParentIDNEQ(v int) predicate.Topic
- func ParentIDNotIn(vs ...int) predicate.Topic
- func ParentIDNotNil() predicate.Topic
- func Slug(v string) predicate.Topic
- func SlugContains(v string) predicate.Topic
- func SlugContainsFold(v string) predicate.Topic
- func SlugEQ(v string) predicate.Topic
- func SlugEqualFold(v string) predicate.Topic
- func SlugGT(v string) predicate.Topic
- func SlugGTE(v string) predicate.Topic
- func SlugHasPrefix(v string) predicate.Topic
- func SlugHasSuffix(v string) predicate.Topic
- func SlugIn(vs ...string) predicate.Topic
- func SlugLT(v string) predicate.Topic
- func SlugLTE(v string) predicate.Topic
- func SlugNEQ(v string) predicate.Topic
- func SlugNotIn(vs ...string) predicate.Topic
- func UpdatedAt(v time.Time) predicate.Topic
- func UpdatedAtEQ(v time.Time) predicate.Topic
- func UpdatedAtGT(v time.Time) predicate.Topic
- func UpdatedAtGTE(v time.Time) predicate.Topic
- func UpdatedAtIn(vs ...time.Time) predicate.Topic
- func UpdatedAtLT(v time.Time) predicate.Topic
- func UpdatedAtLTE(v time.Time) predicate.Topic
- func UpdatedAtNEQ(v time.Time) predicate.Topic
- func UpdatedAtNotIn(vs ...time.Time) predicate.Topic
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the topic type in the database. Label = "topic" // 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" // FieldSlug holds the string denoting the slug field in the database. FieldSlug = "slug" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // FieldContentHTML holds the string denoting the content_html field in the database. FieldContentHTML = "content_html" // FieldParentID holds the string denoting the parent_id field in the database. FieldParentID = "parent_id" // EdgePosts holds the string denoting the posts edge name in mutations. EdgePosts = "posts" // EdgeChildren holds the string denoting the children edge name in mutations. EdgeChildren = "children" // EdgeParent holds the string denoting the parent edge name in mutations. EdgeParent = "parent" // Table holds the table name of the topic in the database. Table = "topics" // PostsTable is the table that holds the posts relation/edge. The primary key declared below. PostsTable = "topic_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" // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "topics" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "parent_id" // ParentTable is the table that holds the parent relation/edge. ParentTable = "topics" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "parent_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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldName, FieldSlug, FieldDescription, FieldContent, FieldContentHTML, FieldParentID, }
Columns holds all SQL columns for topic fields.
var ( // PostsPrimaryKey and PostsColumn2 are the table columns denoting the // primary key for the posts relation (M2M). PostsPrimaryKey = []string{"topic_id", "post_id"} )
Functions ¶
func Content ¶
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEqualFold ¶
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "content" field.
func ContentHTML ¶
ContentHTML applies equality check predicate on the "content_html" field. It's identical to ContentHTMLEQ.
func ContentHTMLContains ¶
ContentHTMLContains applies the Contains predicate on the "content_html" field.
func ContentHTMLContainsFold ¶
ContentHTMLContainsFold applies the ContainsFold predicate on the "content_html" field.
func ContentHTMLEQ ¶
ContentHTMLEQ applies the EQ predicate on the "content_html" field.
func ContentHTMLEqualFold ¶
ContentHTMLEqualFold applies the EqualFold predicate on the "content_html" field.
func ContentHTMLGT ¶
ContentHTMLGT applies the GT predicate on the "content_html" field.
func ContentHTMLGTE ¶
ContentHTMLGTE applies the GTE predicate on the "content_html" field.
func ContentHTMLHasPrefix ¶
ContentHTMLHasPrefix applies the HasPrefix predicate on the "content_html" field.
func ContentHTMLHasSuffix ¶
ContentHTMLHasSuffix applies the HasSuffix predicate on the "content_html" field.
func ContentHTMLIn ¶
ContentHTMLIn applies the In predicate on the "content_html" field.
func ContentHTMLLT ¶
ContentHTMLLT applies the LT predicate on the "content_html" field.
func ContentHTMLLTE ¶
ContentHTMLLTE applies the LTE predicate on the "content_html" field.
func ContentHTMLNEQ ¶
ContentHTMLNEQ applies the NEQ predicate on the "content_html" field.
func ContentHTMLNotIn ¶
ContentHTMLNotIn applies the NotIn predicate on the "content_html" field.
func ContentHasPrefix ¶
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "content" 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 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 DescriptionIsNil ¶
DescriptionIsNil applies the IsNil 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 DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasChildren ¶
HasChildren applies the HasEdge predicate on the "children" edge.
func HasChildrenWith ¶
HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).
func HasParentWith ¶
HasParentWith applies the HasEdge predicate on the "parent" 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 ParentID ¶
ParentID applies equality check predicate on the "parent_id" field. It's identical to ParentIDEQ.
func ParentIDEQ ¶
ParentIDEQ applies the EQ predicate on the "parent_id" field.
func ParentIDIn ¶
ParentIDIn applies the In predicate on the "parent_id" field.
func ParentIDIsNil ¶
ParentIDIsNil applies the IsNil predicate on the "parent_id" field.
func ParentIDNEQ ¶
ParentIDNEQ applies the NEQ predicate on the "parent_id" field.
func ParentIDNotIn ¶
ParentIDNotIn applies the NotIn predicate on the "parent_id" field.
func ParentIDNotNil ¶
ParentIDNotNil applies the NotNil predicate on the "parent_id" field.
func SlugContains ¶
SlugContains applies the Contains predicate on the "slug" field.
func SlugContainsFold ¶
SlugContainsFold applies the ContainsFold predicate on the "slug" field.
func SlugEqualFold ¶
SlugEqualFold applies the EqualFold predicate on the "slug" field.
func SlugHasPrefix ¶
SlugHasPrefix applies the HasPrefix predicate on the "slug" field.
func SlugHasSuffix ¶
SlugHasSuffix applies the HasSuffix predicate on the "slug" 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 ¶
This section is empty.