Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserNote) predicate.UserNote
- func CreateTime(v time.Time) predicate.UserNote
- func CreateTimeEQ(v time.Time) predicate.UserNote
- func CreateTimeGT(v time.Time) predicate.UserNote
- func CreateTimeGTE(v time.Time) predicate.UserNote
- func CreateTimeIn(vs ...time.Time) predicate.UserNote
- func CreateTimeLT(v time.Time) predicate.UserNote
- func CreateTimeLTE(v time.Time) predicate.UserNote
- func CreateTimeNEQ(v time.Time) predicate.UserNote
- func CreateTimeNotIn(vs ...time.Time) predicate.UserNote
- func HasNoteItems() predicate.UserNote
- func HasNoteItemsWith(preds ...predicate.UserNoteItem) predicate.UserNote
- func HasUser() predicate.UserNote
- func HasUserWith(preds ...predicate.User) predicate.UserNote
- func ID(id int) predicate.UserNote
- func IDEQ(id int) predicate.UserNote
- func IDGT(id int) predicate.UserNote
- func IDGTE(id int) predicate.UserNote
- func IDIn(ids ...int) predicate.UserNote
- func IDLT(id int) predicate.UserNote
- func IDLTE(id int) predicate.UserNote
- func IDNEQ(id int) predicate.UserNote
- func IDNotIn(ids ...int) predicate.UserNote
- func LabelContains(v string) predicate.UserNote
- func LabelContainsFold(v string) predicate.UserNote
- func LabelEQ(v string) predicate.UserNote
- func LabelEqualFold(v string) predicate.UserNote
- func LabelGT(v string) predicate.UserNote
- func LabelGTE(v string) predicate.UserNote
- func LabelHasPrefix(v string) predicate.UserNote
- func LabelHasSuffix(v string) predicate.UserNote
- func LabelIn(vs ...string) predicate.UserNote
- func LabelLT(v string) predicate.UserNote
- func LabelLTE(v string) predicate.UserNote
- func LabelNEQ(v string) predicate.UserNote
- func LabelNotIn(vs ...string) predicate.UserNote
- func Memo(v string) predicate.UserNote
- func MemoContains(v string) predicate.UserNote
- func MemoContainsFold(v string) predicate.UserNote
- func MemoEQ(v string) predicate.UserNote
- func MemoEqualFold(v string) predicate.UserNote
- func MemoGT(v string) predicate.UserNote
- func MemoGTE(v string) predicate.UserNote
- func MemoHasPrefix(v string) predicate.UserNote
- func MemoHasSuffix(v string) predicate.UserNote
- func MemoIn(vs ...string) predicate.UserNote
- func MemoIsNil() predicate.UserNote
- func MemoLT(v string) predicate.UserNote
- func MemoLTE(v string) predicate.UserNote
- func MemoNEQ(v string) predicate.UserNote
- func MemoNotIn(vs ...string) predicate.UserNote
- func MemoNotNil() predicate.UserNote
- func Not(p predicate.UserNote) predicate.UserNote
- func Or(predicates ...predicate.UserNote) predicate.UserNote
- func UpdateTime(v time.Time) predicate.UserNote
- func UpdateTimeEQ(v time.Time) predicate.UserNote
- func UpdateTimeGT(v time.Time) predicate.UserNote
- func UpdateTimeGTE(v time.Time) predicate.UserNote
- func UpdateTimeIn(vs ...time.Time) predicate.UserNote
- func UpdateTimeLT(v time.Time) predicate.UserNote
- func UpdateTimeLTE(v time.Time) predicate.UserNote
- func UpdateTimeNEQ(v time.Time) predicate.UserNote
- func UpdateTimeNotIn(vs ...time.Time) predicate.UserNote
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLabel(opts ...sql.OrderTermOption) OrderOption
- func ByMemo(opts ...sql.OrderTermOption) OrderOption
- func ByNoteItems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNoteItemsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the usernote type in the database. Label = "user_note" // 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" // FieldLabel holds the string denoting the label field in the database. FieldLabel = "label" // FieldMemo holds the string denoting the memo field in the database. FieldMemo = "memo" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeNoteItems holds the string denoting the noteitems edge name in mutations. EdgeNoteItems = "noteItems" // Table holds the table name of the usernote in the database. Table = "user_notes" // UserTable is the table that holds the user relation/edge. UserTable = "user_notes" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" // NoteItemsTable is the table that holds the noteItems relation/edge. NoteItemsTable = "user_note_items" // NoteItemsInverseTable is the table name for the UserNoteItem entity. // It exists in this package in order to avoid circular dependency with the "usernoteitem" package. NoteItemsInverseTable = "user_note_items" // NoteItemsColumn is the table column denoting the noteItems relation/edge. NoteItemsColumn = "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 // LabelValidator is a validator for the "label" field. It is called by the builders before save. LabelValidator func(string) error // MemoValidator is a validator for the "memo" field. It is called by the builders before save. MemoValidator func(string) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldLabel, FieldMemo, }
Columns holds all SQL columns for usernote fields.
var ForeignKeys = []string{
"user_id",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "user_notes" table and are not defined as standalone fields in the schema.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasNoteItems ¶
HasNoteItems applies the HasEdge predicate on the "noteItems" edge.
func HasNoteItemsWith ¶
func HasNoteItemsWith(preds ...predicate.UserNoteItem) predicate.UserNote
HasNoteItemsWith applies the HasEdge predicate on the "noteItems" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func LabelContains ¶
LabelContains applies the Contains predicate on the "label" field.
func LabelContainsFold ¶
LabelContainsFold applies the ContainsFold predicate on the "label" field.
func LabelEqualFold ¶
LabelEqualFold applies the EqualFold predicate on the "label" field.
func LabelHasPrefix ¶
LabelHasPrefix applies the HasPrefix predicate on the "label" field.
func LabelHasSuffix ¶
LabelHasSuffix applies the HasSuffix predicate on the "label" field.
func LabelNotIn ¶
LabelNotIn applies the NotIn predicate on the "label" field.
func MemoContains ¶
MemoContains applies the Contains predicate on the "memo" field.
func MemoContainsFold ¶
MemoContainsFold applies the ContainsFold predicate on the "memo" field.
func MemoEqualFold ¶
MemoEqualFold applies the EqualFold predicate on the "memo" field.
func MemoHasPrefix ¶
MemoHasPrefix applies the HasPrefix predicate on the "memo" field.
func MemoHasSuffix ¶
MemoHasSuffix applies the HasSuffix predicate on the "memo" field.
func MemoNotNil ¶
MemoNotNil applies the NotNil predicate on the "memo" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
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 UserNote 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 ByLabel ¶
func ByLabel(opts ...sql.OrderTermOption) OrderOption
ByLabel orders the results by the label field.
func ByMemo ¶
func ByMemo(opts ...sql.OrderTermOption) OrderOption
ByMemo orders the results by the memo field.
func ByNoteItems ¶
func ByNoteItems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByNoteItems orders the results by noteItems terms.
func ByNoteItemsCount ¶
func ByNoteItemsCount(opts ...sql.OrderTermOption) OrderOption
ByNoteItemsCount orders the results by noteItems count.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.