Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Post) predicate.Post
- func AuthorID(v int) predicate.Post
- func AuthorIDEQ(v int) predicate.Post
- func AuthorIDIn(vs ...int) predicate.Post
- func AuthorIDIsNil() predicate.Post
- func AuthorIDNEQ(v int) predicate.Post
- func AuthorIDNotIn(vs ...int) predicate.Post
- func AuthorIDNotNil() predicate.Post
- func HasAuthor() predicate.Post
- func HasAuthorWith(preds ...predicate.User) predicate.Post
- func HasComments() predicate.Post
- func HasCommentsWith(preds ...predicate.Comment) predicate.Post
- func ID(id int) predicate.Post
- func IDEQ(id int) predicate.Post
- func IDGT(id int) predicate.Post
- func IDGTE(id int) predicate.Post
- func IDIn(ids ...int) predicate.Post
- func IDLT(id int) predicate.Post
- func IDLTE(id int) predicate.Post
- func IDNEQ(id int) predicate.Post
- func IDNotIn(ids ...int) predicate.Post
- func Not(p predicate.Post) predicate.Post
- func Or(predicates ...predicate.Post) predicate.Post
- func Text(v string) predicate.Post
- func TextContains(v string) predicate.Post
- func TextContainsFold(v string) predicate.Post
- func TextEQ(v string) predicate.Post
- func TextEqualFold(v string) predicate.Post
- func TextGT(v string) predicate.Post
- func TextGTE(v string) predicate.Post
- func TextHasPrefix(v string) predicate.Post
- func TextHasSuffix(v string) predicate.Post
- func TextIn(vs ...string) predicate.Post
- func TextLT(v string) predicate.Post
- func TextLTE(v string) predicate.Post
- func TextNEQ(v string) predicate.Post
- func TextNotIn(vs ...string) predicate.Post
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the post type in the database. Label = "post" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldText holds the string denoting the text field in the database. FieldText = "text" // FieldAuthorID holds the string denoting the author_id field in the database. FieldAuthorID = "author_id" // EdgeAuthor holds the string denoting the author edge name in mutations. EdgeAuthor = "author" // EdgeComments holds the string denoting the comments edge name in mutations. EdgeComments = "comments" // Table holds the table name of the post in the database. Table = "posts" // AuthorTable is the table that holds the author relation/edge. AuthorTable = "posts" // AuthorInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. AuthorInverseTable = "users" // AuthorColumn is the table column denoting the author relation/edge. AuthorColumn = "author_id" // CommentsTable is the table that holds the comments relation/edge. CommentsTable = "comments" // CommentsInverseTable is the table name for the Comment entity. // It exists in this package in order to avoid circular dependency with the "comment" package. CommentsInverseTable = "comments" // CommentsColumn is the table column denoting the comments relation/edge. CommentsColumn = "post_id" )
Variables ¶
var Columns = []string{ FieldID, FieldText, FieldAuthorID, }
Columns holds all SQL columns for post fields.
var ( // DefaultText holds the default value on creation for the "text" field. DefaultText string )
Functions ¶
func AuthorID ¶
AuthorID applies equality check predicate on the "author_id" field. It's identical to AuthorIDEQ.
func AuthorIDEQ ¶
AuthorIDEQ applies the EQ predicate on the "author_id" field.
func AuthorIDIn ¶
AuthorIDIn applies the In predicate on the "author_id" field.
func AuthorIDIsNil ¶
AuthorIDIsNil applies the IsNil predicate on the "author_id" field.
func AuthorIDNEQ ¶
AuthorIDNEQ applies the NEQ predicate on the "author_id" field.
func AuthorIDNotIn ¶
AuthorIDNotIn applies the NotIn predicate on the "author_id" field.
func AuthorIDNotNil ¶
AuthorIDNotNil applies the NotNil predicate on the "author_id" field.
func HasAuthorWith ¶
HasAuthorWith applies the HasEdge predicate on the "author" edge with a given conditions (other predicates).
func HasComments ¶
HasComments applies the HasEdge predicate on the "comments" edge.
func HasCommentsWith ¶
HasCommentsWith applies the HasEdge predicate on the "comments" edge with a given conditions (other predicates).
func TextContains ¶
TextContains applies the Contains predicate on the "text" field.
func TextContainsFold ¶
TextContainsFold applies the ContainsFold predicate on the "text" field.
func TextEqualFold ¶
TextEqualFold applies the EqualFold predicate on the "text" field.
func TextHasPrefix ¶
TextHasPrefix applies the HasPrefix predicate on the "text" field.
func TextHasSuffix ¶
TextHasSuffix applies the HasSuffix predicate on the "text" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.