Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Note) predicate.Note
- func HasChildren() predicate.Note
- func HasChildrenWith(preds ...predicate.Note) predicate.Note
- func HasParent() predicate.Note
- func HasParentWith(preds ...predicate.Note) predicate.Note
- func ID(id schema.NoteID) predicate.Note
- func IDEQ(id schema.NoteID) predicate.Note
- func IDGT(id schema.NoteID) predicate.Note
- func IDGTE(id schema.NoteID) predicate.Note
- func IDIn(ids ...schema.NoteID) predicate.Note
- func IDLT(id schema.NoteID) predicate.Note
- func IDLTE(id schema.NoteID) predicate.Note
- func IDNEQ(id schema.NoteID) predicate.Note
- func IDNotIn(ids ...schema.NoteID) predicate.Note
- func Not(p predicate.Note) predicate.Note
- func Or(predicates ...predicate.Note) predicate.Note
- func Text(v string) predicate.Note
- func TextContains(v string) predicate.Note
- func TextContainsFold(v string) predicate.Note
- func TextEQ(v string) predicate.Note
- func TextEqualFold(v string) predicate.Note
- func TextGT(v string) predicate.Note
- func TextGTE(v string) predicate.Note
- func TextHasPrefix(v string) predicate.Note
- func TextHasSuffix(v string) predicate.Note
- func TextIn(vs ...string) predicate.Note
- func TextIsNil() predicate.Note
- func TextLT(v string) predicate.Note
- func TextLTE(v string) predicate.Note
- func TextNEQ(v string) predicate.Note
- func TextNotIn(vs ...string) predicate.Note
- func TextNotNil() predicate.Note
- func ValidColumn(column string) bool
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" // 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 ¶
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 )
var Columns = []string{ FieldID, FieldText, }
Columns holds all SQL columns for note fields.
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 HasChildren ¶
HasChildren applies the HasEdge predicate on the "children" edge.
func HasChildrenWith ¶
HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).
func HasParentWith ¶
HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
func TextContains ¶
TextContains applies the Contains predicate on the "text" field.
func TextContainsFold ¶
TextContainsFold applies the ContainsFold predicate on the "text" field.
func TextEqualFold ¶
TextEqualFold applies the EqualFold predicate on the "text" field.
func TextHasPrefix ¶
TextHasPrefix applies the HasPrefix predicate on the "text" field.
func TextHasSuffix ¶
TextHasSuffix applies the HasSuffix predicate on the "text" field.
func TextNotNil ¶
TextNotNil applies the NotNil predicate on the "text" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.