Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Notes) predicate.Notes
- func Body(v string) predicate.Notes
- func BodyContains(v string) predicate.Notes
- func BodyContainsFold(v string) predicate.Notes
- func BodyEQ(v string) predicate.Notes
- func BodyEqualFold(v string) predicate.Notes
- func BodyGT(v string) predicate.Notes
- func BodyGTE(v string) predicate.Notes
- func BodyHasPrefix(v string) predicate.Notes
- func BodyHasSuffix(v string) predicate.Notes
- func BodyIn(vs ...string) predicate.Notes
- func BodyLT(v string) predicate.Notes
- func BodyLTE(v string) predicate.Notes
- func BodyNEQ(v string) predicate.Notes
- func BodyNotIn(vs ...string) predicate.Notes
- func CreatedAt(v time.Time) predicate.Notes
- func CreatedAtEQ(v time.Time) predicate.Notes
- func CreatedAtGT(v time.Time) predicate.Notes
- func CreatedAtGTE(v time.Time) predicate.Notes
- func CreatedAtIn(vs ...time.Time) predicate.Notes
- func CreatedAtLT(v time.Time) predicate.Notes
- func CreatedAtLTE(v time.Time) predicate.Notes
- func CreatedAtNEQ(v time.Time) predicate.Notes
- func CreatedAtNotIn(vs ...time.Time) predicate.Notes
- func HasAuthor() predicate.Notes
- func HasAuthorWith(preds ...predicate.User) predicate.Notes
- func ID(id uuid.UUID) predicate.Notes
- func IDEQ(id uuid.UUID) predicate.Notes
- func IDGT(id uuid.UUID) predicate.Notes
- func IDGTE(id uuid.UUID) predicate.Notes
- func IDIn(ids ...uuid.UUID) predicate.Notes
- func IDLT(id uuid.UUID) predicate.Notes
- func IDLTE(id uuid.UUID) predicate.Notes
- func IDNEQ(id uuid.UUID) predicate.Notes
- func IDNotIn(ids ...uuid.UUID) predicate.Notes
- func Not(p predicate.Notes) predicate.Notes
- func Or(predicates ...predicate.Notes) predicate.Notes
- func Slug(v string) predicate.Notes
- func SlugContains(v string) predicate.Notes
- func SlugContainsFold(v string) predicate.Notes
- func SlugEQ(v string) predicate.Notes
- func SlugEqualFold(v string) predicate.Notes
- func SlugGT(v string) predicate.Notes
- func SlugGTE(v string) predicate.Notes
- func SlugHasPrefix(v string) predicate.Notes
- func SlugHasSuffix(v string) predicate.Notes
- func SlugIn(vs ...string) predicate.Notes
- func SlugLT(v string) predicate.Notes
- func SlugLTE(v string) predicate.Notes
- func SlugNEQ(v string) predicate.Notes
- func SlugNotIn(vs ...string) predicate.Notes
- func Title(v string) predicate.Notes
- func TitleContains(v string) predicate.Notes
- func TitleContainsFold(v string) predicate.Notes
- func TitleEQ(v string) predicate.Notes
- func TitleEqualFold(v string) predicate.Notes
- func TitleGT(v string) predicate.Notes
- func TitleGTE(v string) predicate.Notes
- func TitleHasPrefix(v string) predicate.Notes
- func TitleHasSuffix(v string) predicate.Notes
- func TitleIn(vs ...string) predicate.Notes
- func TitleLT(v string) predicate.Notes
- func TitleLTE(v string) predicate.Notes
- func TitleNEQ(v string) predicate.Notes
- func TitleNotIn(vs ...string) predicate.Notes
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the notes type in the database. Label = "notes" // 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" // FieldSlug holds the string denoting the slug field in the database. FieldSlug = "slug" // FieldTags holds the string denoting the tags field in the database. FieldTags = "tags" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeAuthor holds the string denoting the author edge name in mutations. EdgeAuthor = "author" // Table holds the table name of the notes in the database. Table = "notes" // AuthorTable is the table that holds the author relation/edge. AuthorTable = "notes" // 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 = "user_notes" )
Variables ¶
var ( // TitleValidator is a validator for the "title" field. It is called by the builders before save. TitleValidator func(string) error // BodyValidator is a validator for the "body" field. It is called by the builders before save. BodyValidator func(string) error // SlugValidator is a validator for the "slug" field. It is called by the builders before save. SlugValidator func(string) error // 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() uuid.UUID )
var Columns = []string{ FieldID, FieldTitle, FieldBody, FieldSlug, FieldTags, FieldCreatedAt, }
Columns holds all SQL columns for notes fields.
var ForeignKeys = []string{
"user_notes",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "notes" 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 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 HasAuthorWith ¶
HasAuthorWith applies the HasEdge predicate on the "author" edge with a given conditions (other predicates).
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 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.