Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserNoteItem) predicate.UserNoteItem
- func CreateTime(v time.Time) predicate.UserNoteItem
- func CreateTimeEQ(v time.Time) predicate.UserNoteItem
- func CreateTimeGT(v time.Time) predicate.UserNoteItem
- func CreateTimeGTE(v time.Time) predicate.UserNoteItem
- func CreateTimeIn(vs ...time.Time) predicate.UserNoteItem
- func CreateTimeLT(v time.Time) predicate.UserNoteItem
- func CreateTimeLTE(v time.Time) predicate.UserNoteItem
- func CreateTimeNEQ(v time.Time) predicate.UserNoteItem
- func CreateTimeNotIn(vs ...time.Time) predicate.UserNoteItem
- func HasNote() predicate.UserNoteItem
- func HasNoteWith(preds ...predicate.UserNote) predicate.UserNoteItem
- func ID(id int) predicate.UserNoteItem
- func IDEQ(id int) predicate.UserNoteItem
- func IDGT(id int) predicate.UserNoteItem
- func IDGTE(id int) predicate.UserNoteItem
- func IDIn(ids ...int) predicate.UserNoteItem
- func IDLT(id int) predicate.UserNoteItem
- func IDLTE(id int) predicate.UserNoteItem
- func IDNEQ(id int) predicate.UserNoteItem
- func IDNotIn(ids ...int) predicate.UserNoteItem
- func Not(p predicate.UserNoteItem) predicate.UserNoteItem
- func Or(predicates ...predicate.UserNoteItem) predicate.UserNoteItem
- func Text(v string) predicate.UserNoteItem
- func TextContains(v string) predicate.UserNoteItem
- func TextContainsFold(v string) predicate.UserNoteItem
- func TextEQ(v string) predicate.UserNoteItem
- func TextEqualFold(v string) predicate.UserNoteItem
- func TextGT(v string) predicate.UserNoteItem
- func TextGTE(v string) predicate.UserNoteItem
- func TextHasPrefix(v string) predicate.UserNoteItem
- func TextHasSuffix(v string) predicate.UserNoteItem
- func TextIn(vs ...string) predicate.UserNoteItem
- func TextLT(v string) predicate.UserNoteItem
- func TextLTE(v string) predicate.UserNoteItem
- func TextNEQ(v string) predicate.UserNoteItem
- func TextNotIn(vs ...string) predicate.UserNoteItem
- func UpdateTime(v time.Time) predicate.UserNoteItem
- func UpdateTimeEQ(v time.Time) predicate.UserNoteItem
- func UpdateTimeGT(v time.Time) predicate.UserNoteItem
- func UpdateTimeGTE(v time.Time) predicate.UserNoteItem
- func UpdateTimeIn(vs ...time.Time) predicate.UserNoteItem
- func UpdateTimeLT(v time.Time) predicate.UserNoteItem
- func UpdateTimeLTE(v time.Time) predicate.UserNoteItem
- func UpdateTimeNEQ(v time.Time) predicate.UserNoteItem
- func UpdateTimeNotIn(vs ...time.Time) predicate.UserNoteItem
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the usernoteitem type in the database. Label = "user_note_item" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldText holds the string denoting the text field in the database. FieldText = "text" // EdgeNote holds the string denoting the note edge name in mutations. EdgeNote = "note" // Table holds the table name of the usernoteitem in the database. Table = "user_note_items" // NoteTable is the table that holds the note relation/edge. NoteTable = "user_note_items" // NoteInverseTable is the table name for the UserNote entity. // It exists in this package in order to avoid circular dependency with the "usernote" package. NoteInverseTable = "user_notes" // NoteColumn is the table column denoting the note relation/edge. NoteColumn = "user_note_id" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // TextValidator is a validator for the "text" field. It is called by the builders before save. TextValidator func(string) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldText, }
Columns holds all SQL columns for usernoteitem fields.
var ForeignKeys = []string{
"user_note_id",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "user_note_items" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.UserNoteItem) predicate.UserNoteItem
And groups predicates with the AND operator between them.
func CreateTime ¶
func CreateTime(v time.Time) predicate.UserNoteItem
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.UserNoteItem
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.UserNoteItem
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.UserNoteItem
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.UserNoteItem
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.UserNoteItem
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.UserNoteItem
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.UserNoteItem
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
func CreateTimeNotIn(vs ...time.Time) predicate.UserNoteItem
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasNote ¶
func HasNote() predicate.UserNoteItem
HasNote applies the HasEdge predicate on the "note" edge.
func HasNoteWith ¶
func HasNoteWith(preds ...predicate.UserNote) predicate.UserNoteItem
HasNoteWith applies the HasEdge predicate on the "note" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.UserNoteItem
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.UserNoteItem
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.UserNoteItem
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.UserNoteItem
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.UserNoteItem
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.UserNoteItem) predicate.UserNoteItem
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.UserNoteItem) predicate.UserNoteItem
Or groups predicates with the OR operator between them.
func Text ¶
func Text(v string) predicate.UserNoteItem
Text applies equality check predicate on the "text" field. It's identical to TextEQ.
func TextContains ¶
func TextContains(v string) predicate.UserNoteItem
TextContains applies the Contains predicate on the "text" field.
func TextContainsFold ¶
func TextContainsFold(v string) predicate.UserNoteItem
TextContainsFold applies the ContainsFold predicate on the "text" field.
func TextEQ ¶
func TextEQ(v string) predicate.UserNoteItem
TextEQ applies the EQ predicate on the "text" field.
func TextEqualFold ¶
func TextEqualFold(v string) predicate.UserNoteItem
TextEqualFold applies the EqualFold predicate on the "text" field.
func TextGT ¶
func TextGT(v string) predicate.UserNoteItem
TextGT applies the GT predicate on the "text" field.
func TextGTE ¶
func TextGTE(v string) predicate.UserNoteItem
TextGTE applies the GTE predicate on the "text" field.
func TextHasPrefix ¶
func TextHasPrefix(v string) predicate.UserNoteItem
TextHasPrefix applies the HasPrefix predicate on the "text" field.
func TextHasSuffix ¶
func TextHasSuffix(v string) predicate.UserNoteItem
TextHasSuffix applies the HasSuffix predicate on the "text" field.
func TextIn ¶
func TextIn(vs ...string) predicate.UserNoteItem
TextIn applies the In predicate on the "text" field.
func TextLT ¶
func TextLT(v string) predicate.UserNoteItem
TextLT applies the LT predicate on the "text" field.
func TextLTE ¶
func TextLTE(v string) predicate.UserNoteItem
TextLTE applies the LTE predicate on the "text" field.
func TextNEQ ¶
func TextNEQ(v string) predicate.UserNoteItem
TextNEQ applies the NEQ predicate on the "text" field.
func TextNotIn ¶
func TextNotIn(vs ...string) predicate.UserNoteItem
TextNotIn applies the NotIn predicate on the "text" field.
func UpdateTime ¶
func UpdateTime(v time.Time) predicate.UserNoteItem
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
func UpdateTimeEQ(v time.Time) predicate.UserNoteItem
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
func UpdateTimeGT(v time.Time) predicate.UserNoteItem
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
func UpdateTimeGTE(v time.Time) predicate.UserNoteItem
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
func UpdateTimeIn(vs ...time.Time) predicate.UserNoteItem
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
func UpdateTimeLT(v time.Time) predicate.UserNoteItem
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
func UpdateTimeLTE(v time.Time) predicate.UserNoteItem
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
func UpdateTimeNEQ(v time.Time) predicate.UserNoteItem
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
func UpdateTimeNotIn(vs ...time.Time) predicate.UserNoteItem
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
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 UserNoteItem queries.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNoteField ¶
func ByNoteField(field string, opts ...sql.OrderTermOption) OrderOption
ByNoteField orders the results by note field.
func ByText ¶
func ByText(opts ...sql.OrderTermOption) OrderOption
ByText orders the results by the text field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.