Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Note) predicate.Note
- func Body(v string) predicate.Note
- func BodyContains(v string) predicate.Note
- func BodyContainsFold(v string) predicate.Note
- func BodyEQ(v string) predicate.Note
- func BodyEqualFold(v string) predicate.Note
- func BodyGT(v string) predicate.Note
- func BodyGTE(v string) predicate.Note
- func BodyHasPrefix(v string) predicate.Note
- func BodyHasSuffix(v string) predicate.Note
- func BodyIn(vs ...string) predicate.Note
- func BodyLT(v string) predicate.Note
- func BodyLTE(v string) predicate.Note
- func BodyNEQ(v string) predicate.Note
- func BodyNotIn(vs ...string) predicate.Note
- func HasDocs() predicate.Note
- func HasDocsWith(preds ...predicate.Doc) predicate.Note
- func ID(id uuid.UUID) predicate.Note
- func IDEQ(id uuid.UUID) predicate.Note
- func IDGT(id uuid.UUID) predicate.Note
- func IDGTE(id uuid.UUID) predicate.Note
- func IDIn(ids ...uuid.UUID) predicate.Note
- func IDLT(id uuid.UUID) predicate.Note
- func IDLTE(id uuid.UUID) predicate.Note
- func IDNEQ(id uuid.UUID) predicate.Note
- func IDNotIn(ids ...uuid.UUID) predicate.Note
- func Not(p predicate.Note) predicate.Note
- func Or(predicates ...predicate.Note) predicate.Note
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the note type in the database. Label = "note" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldBody holds the string denoting the body field in the database. FieldBody = "body" // EdgeDocs holds the string denoting the docs edge name in mutations. EdgeDocs = "docs" // Table holds the table name of the note in the database. Table = "notes" // DocsTable is the table that holds the docs relation/edge. DocsTable = "docs" // DocsInverseTable is the table name for the Doc entity. // It exists in this package in order to avoid circular dependency with the "doc" package. DocsInverseTable = "docs" // DocsColumn is the table column denoting the docs relation/edge. DocsColumn = "note_docs" )
Variables ¶
var Columns = []string{ FieldID, FieldBody, }
Columns holds all SQL columns for note fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
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 HasDocsWith ¶
HasDocsWith applies the HasEdge predicate on the "docs" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Note queries.
func ByBody ¶
func ByBody(opts ...sql.OrderTermOption) OrderOption
ByBody orders the results by the body field.
func ByDocs ¶
func ByDocs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDocs orders the results by docs terms.
func ByDocsCount ¶
func ByDocsCount(opts ...sql.OrderTermOption) OrderOption
ByDocsCount orders the results by docs count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.