Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.BlogPost) predicate.BlogPost
- func Body(v string) predicate.BlogPost
- func BodyContains(v string) predicate.BlogPost
- func BodyContainsFold(v string) predicate.BlogPost
- func BodyEQ(v string) predicate.BlogPost
- func BodyEqualFold(v string) predicate.BlogPost
- func BodyGT(v string) predicate.BlogPost
- func BodyGTE(v string) predicate.BlogPost
- func BodyHasPrefix(v string) predicate.BlogPost
- func BodyHasSuffix(v string) predicate.BlogPost
- func BodyIn(vs ...string) predicate.BlogPost
- func BodyLT(v string) predicate.BlogPost
- func BodyLTE(v string) predicate.BlogPost
- func BodyNEQ(v string) predicate.BlogPost
- func BodyNotIn(vs ...string) predicate.BlogPost
- func ExternalID(v int) predicate.BlogPost
- func ExternalIDEQ(v int) predicate.BlogPost
- func ExternalIDGT(v int) predicate.BlogPost
- func ExternalIDGTE(v int) predicate.BlogPost
- func ExternalIDIn(vs ...int) predicate.BlogPost
- func ExternalIDLT(v int) predicate.BlogPost
- func ExternalIDLTE(v int) predicate.BlogPost
- func ExternalIDNEQ(v int) predicate.BlogPost
- func ExternalIDNotIn(vs ...int) predicate.BlogPost
- func HasAuthor() predicate.BlogPost
- func HasAuthorWith(preds ...predicate.User) predicate.BlogPost
- func HasCategories() predicate.BlogPost
- func HasCategoriesWith(preds ...predicate.Category) predicate.BlogPost
- func ID(id int) predicate.BlogPost
- func IDEQ(id int) predicate.BlogPost
- func IDGT(id int) predicate.BlogPost
- func IDGTE(id int) predicate.BlogPost
- func IDIn(ids ...int) predicate.BlogPost
- func IDLT(id int) predicate.BlogPost
- func IDLTE(id int) predicate.BlogPost
- func IDNEQ(id int) predicate.BlogPost
- func IDNotIn(ids ...int) predicate.BlogPost
- func Not(p predicate.BlogPost) predicate.BlogPost
- func Or(predicates ...predicate.BlogPost) predicate.BlogPost
- func Title(v string) predicate.BlogPost
- func TitleContains(v string) predicate.BlogPost
- func TitleContainsFold(v string) predicate.BlogPost
- func TitleEQ(v string) predicate.BlogPost
- func TitleEqualFold(v string) predicate.BlogPost
- func TitleGT(v string) predicate.BlogPost
- func TitleGTE(v string) predicate.BlogPost
- func TitleHasPrefix(v string) predicate.BlogPost
- func TitleHasSuffix(v string) predicate.BlogPost
- func TitleIn(vs ...string) predicate.BlogPost
- func TitleLT(v string) predicate.BlogPost
- func TitleLTE(v string) predicate.BlogPost
- func TitleNEQ(v string) predicate.BlogPost
- func TitleNotIn(vs ...string) predicate.BlogPost
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the blogpost type in the database. Label = "blog_post" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldBody holds the string denoting the body field in the database. FieldBody = "body" // FieldExternalID holds the string denoting the external_id field in the database. FieldExternalID = "external_id" // EdgeAuthor holds the string denoting the author edge name in mutations. EdgeAuthor = "author" // EdgeCategories holds the string denoting the categories edge name in mutations. EdgeCategories = "categories" // Table holds the table name of the blogpost in the database. Table = "blog_posts" // AuthorTable is the table the holds the author relation/edge. AuthorTable = "blog_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 = "blog_post_author" // CategoriesTable is the table the holds the categories relation/edge. The primary key declared below. CategoriesTable = "category_blog_posts" // CategoriesInverseTable is the table name for the Category entity. // It exists in this package in order to avoid circular dependency with the "category" package. CategoriesInverseTable = "categories" )
Variables ¶
var ( // CategoriesPrimaryKey and CategoriesColumn2 are the table columns denoting the // primary key for the categories relation (M2M). CategoriesPrimaryKey = []string{"category_id", "blog_post_id"} )
var Columns = []string{ FieldID, FieldTitle, FieldBody, FieldExternalID, }
Columns holds all SQL columns for blogpost fields.
var ForeignKeys = []string{
"blog_post_author",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "blog_posts" table and are not defined as standalone fields in the schema.
Functions ¶
func BodyContains ¶
BodyContains applies the Contains predicate on the "body" field.
func BodyContainsFold ¶
BodyContainsFold applies the ContainsFold predicate on the "body" field.
func BodyEqualFold ¶
BodyEqualFold applies the EqualFold predicate on the "body" field.
func BodyHasPrefix ¶
BodyHasPrefix applies the HasPrefix predicate on the "body" field.
func BodyHasSuffix ¶
BodyHasSuffix applies the HasSuffix predicate on the "body" field.
func ExternalID ¶
ExternalID applies equality check predicate on the "external_id" field. It's identical to ExternalIDEQ.
func ExternalIDEQ ¶
ExternalIDEQ applies the EQ predicate on the "external_id" field.
func ExternalIDGT ¶
ExternalIDGT applies the GT predicate on the "external_id" field.
func ExternalIDGTE ¶
ExternalIDGTE applies the GTE predicate on the "external_id" field.
func ExternalIDIn ¶
ExternalIDIn applies the In predicate on the "external_id" field.
func ExternalIDLT ¶
ExternalIDLT applies the LT predicate on the "external_id" field.
func ExternalIDLTE ¶
ExternalIDLTE applies the LTE predicate on the "external_id" field.
func ExternalIDNEQ ¶
ExternalIDNEQ applies the NEQ predicate on the "external_id" field.
func ExternalIDNotIn ¶
ExternalIDNotIn applies the NotIn predicate on the "external_id" field.
func HasAuthorWith ¶
HasAuthorWith applies the HasEdge predicate on the "author" edge with a given conditions (other predicates).
func HasCategories ¶
HasCategories applies the HasEdge predicate on the "categories" edge.
func HasCategoriesWith ¶
HasCategoriesWith applies the HasEdge predicate on the "categories" edge with a given conditions (other predicates).
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.