note

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 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"
	// FieldText holds the string denoting the text field in the database.
	FieldText = "text"
	// EdgeParent holds the string denoting the parent edge name in mutations.
	EdgeParent = "parent"
	// EdgeChildren holds the string denoting the children edge name in mutations.
	EdgeChildren = "children"
	// Table holds the table name of the note in the database.
	Table = "notes"
	// ParentTable is the table that holds the parent relation/edge.
	ParentTable = "notes"
	// ParentColumn is the table column denoting the parent relation/edge.
	ParentColumn = "note_children"
	// ChildrenTable is the table that holds the children relation/edge.
	ChildrenTable = "notes"
	// ChildrenColumn is the table column denoting the children relation/edge.
	ChildrenColumn = "note_children"
)

Variables

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() schema.NoteID
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)
View Source
var Columns = []string{
	FieldID,
	FieldText,
}

Columns holds all SQL columns for note fields.

View Source
var ForeignKeys = []string{
	"note_children",
}

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 And

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

And groups predicates with the AND operator between them.

func HasChildren

func HasChildren() predicate.Note

HasChildren applies the HasEdge predicate on the "children" edge.

func HasChildrenWith

func HasChildrenWith(preds ...predicate.Note) predicate.Note

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

func HasParent

func HasParent() predicate.Note

HasParent applies the HasEdge predicate on the "parent" edge.

func HasParentWith

func HasParentWith(preds ...predicate.Note) predicate.Note

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

func ID

func ID(id schema.NoteID) predicate.Note

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id schema.NoteID) predicate.Note

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id schema.NoteID) predicate.Note

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id schema.NoteID) predicate.Note

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...schema.NoteID) predicate.Note

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id schema.NoteID) predicate.Note

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id schema.NoteID) predicate.Note

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id schema.NoteID) predicate.Note

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...schema.NoteID) 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 Text

func Text(v string) predicate.Note

Text applies equality check predicate on the "text" field. It's identical to TextEQ.

func TextContains

func TextContains(v string) predicate.Note

TextContains applies the Contains predicate on the "text" field.

func TextContainsFold

func TextContainsFold(v string) predicate.Note

TextContainsFold applies the ContainsFold predicate on the "text" field.

func TextEQ

func TextEQ(v string) predicate.Note

TextEQ applies the EQ predicate on the "text" field.

func TextEqualFold

func TextEqualFold(v string) predicate.Note

TextEqualFold applies the EqualFold predicate on the "text" field.

func TextGT

func TextGT(v string) predicate.Note

TextGT applies the GT predicate on the "text" field.

func TextGTE

func TextGTE(v string) predicate.Note

TextGTE applies the GTE predicate on the "text" field.

func TextHasPrefix

func TextHasPrefix(v string) predicate.Note

TextHasPrefix applies the HasPrefix predicate on the "text" field.

func TextHasSuffix

func TextHasSuffix(v string) predicate.Note

TextHasSuffix applies the HasSuffix predicate on the "text" field.

func TextIn

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

TextIn applies the In predicate on the "text" field.

func TextIsNil

func TextIsNil() predicate.Note

TextIsNil applies the IsNil predicate on the "text" field.

func TextLT

func TextLT(v string) predicate.Note

TextLT applies the LT predicate on the "text" field.

func TextLTE

func TextLTE(v string) predicate.Note

TextLTE applies the LTE predicate on the "text" field.

func TextNEQ

func TextNEQ(v string) predicate.Note

TextNEQ applies the NEQ predicate on the "text" field.

func TextNotIn

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

TextNotIn applies the NotIn predicate on the "text" field.

func TextNotNil

func TextNotNil() predicate.Note

TextNotNil applies the NotNil predicate on the "text" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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