note

package
v0.0.0-...-b6261dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var Columns = []string{
	FieldID,
	FieldBody,
}

Columns holds all SQL columns for note fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Functions

func And

func And(predicates ...predicate.Note) predicate.Note

And groups predicates with the AND operator between them.

func Body

func Body(v string) predicate.Note

Body applies equality check predicate on the "body" field. It's identical to BodyEQ.

func BodyContains

func BodyContains(v string) predicate.Note

BodyContains applies the Contains predicate on the "body" field.

func BodyContainsFold

func BodyContainsFold(v string) predicate.Note

BodyContainsFold applies the ContainsFold predicate on the "body" field.

func BodyEQ

func BodyEQ(v string) predicate.Note

BodyEQ applies the EQ predicate on the "body" field.

func BodyEqualFold

func BodyEqualFold(v string) predicate.Note

BodyEqualFold applies the EqualFold predicate on the "body" field.

func BodyGT

func BodyGT(v string) predicate.Note

BodyGT applies the GT predicate on the "body" field.

func BodyGTE

func BodyGTE(v string) predicate.Note

BodyGTE applies the GTE predicate on the "body" field.

func BodyHasPrefix

func BodyHasPrefix(v string) predicate.Note

BodyHasPrefix applies the HasPrefix predicate on the "body" field.

func BodyHasSuffix

func BodyHasSuffix(v string) predicate.Note

BodyHasSuffix applies the HasSuffix predicate on the "body" field.

func BodyIn

func BodyIn(vs ...string) predicate.Note

BodyIn applies the In predicate on the "body" field.

func BodyLT

func BodyLT(v string) predicate.Note

BodyLT applies the LT predicate on the "body" field.

func BodyLTE

func BodyLTE(v string) predicate.Note

BodyLTE applies the LTE predicate on the "body" field.

func BodyNEQ

func BodyNEQ(v string) predicate.Note

BodyNEQ applies the NEQ predicate on the "body" field.

func BodyNotIn

func BodyNotIn(vs ...string) predicate.Note

BodyNotIn applies the NotIn predicate on the "body" field.

func HasDocs

func HasDocs() predicate.Note

HasDocs applies the HasEdge predicate on the "docs" edge.

func HasDocsWith

func HasDocsWith(preds ...predicate.Doc) predicate.Note

HasDocsWith applies the HasEdge predicate on the "docs" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.Note

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Note

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Note

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Note

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Note

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Note

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Note

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Note

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Note

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Note) predicate.Note

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL