Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Item) predicate.Item
- func CreateTime(v time.Time) predicate.Item
- func CreateTimeEQ(v time.Time) predicate.Item
- func CreateTimeGT(v time.Time) predicate.Item
- func CreateTimeGTE(v time.Time) predicate.Item
- func CreateTimeIn(vs ...time.Time) predicate.Item
- func CreateTimeLT(v time.Time) predicate.Item
- func CreateTimeLTE(v time.Time) predicate.Item
- func CreateTimeNEQ(v time.Time) predicate.Item
- func CreateTimeNotIn(vs ...time.Time) predicate.Item
- func DataIsNil() predicate.Item
- func DataNotNil() predicate.Item
- func HasTask() predicate.Item
- func HasTaskWith(preds ...predicate.Task) predicate.Item
- func Hash(v string) predicate.Item
- func HashContains(v string) predicate.Item
- func HashContainsFold(v string) predicate.Item
- func HashEQ(v string) predicate.Item
- func HashEqualFold(v string) predicate.Item
- func HashGT(v string) predicate.Item
- func HashGTE(v string) predicate.Item
- func HashHasPrefix(v string) predicate.Item
- func HashHasSuffix(v string) predicate.Item
- func HashIn(vs ...string) predicate.Item
- func HashLT(v string) predicate.Item
- func HashLTE(v string) predicate.Item
- func HashNEQ(v string) predicate.Item
- func HashNotIn(vs ...string) predicate.Item
- func ID(id int) predicate.Item
- func IDEQ(id int) predicate.Item
- func IDGT(id int) predicate.Item
- func IDGTE(id int) predicate.Item
- func IDIn(ids ...int) predicate.Item
- func IDLT(id int) predicate.Item
- func IDLTE(id int) predicate.Item
- func IDNEQ(id int) predicate.Item
- func IDNotIn(ids ...int) predicate.Item
- func Not(p predicate.Item) predicate.Item
- func Or(predicates ...predicate.Item) predicate.Item
- func Source(v string) predicate.Item
- func SourceContains(v string) predicate.Item
- func SourceContainsFold(v string) predicate.Item
- func SourceEQ(v string) predicate.Item
- func SourceEqualFold(v string) predicate.Item
- func SourceGT(v string) predicate.Item
- func SourceGTE(v string) predicate.Item
- func SourceHasPrefix(v string) predicate.Item
- func SourceHasSuffix(v string) predicate.Item
- func SourceIn(vs ...string) predicate.Item
- func SourceLT(v string) predicate.Item
- func SourceLTE(v string) predicate.Item
- func SourceNEQ(v string) predicate.Item
- func SourceNotIn(vs ...string) predicate.Item
- func UpdateTime(v time.Time) predicate.Item
- func UpdateTimeEQ(v time.Time) predicate.Item
- func UpdateTimeGT(v time.Time) predicate.Item
- func UpdateTimeGTE(v time.Time) predicate.Item
- func UpdateTimeIn(vs ...time.Time) predicate.Item
- func UpdateTimeLT(v time.Time) predicate.Item
- func UpdateTimeLTE(v time.Time) predicate.Item
- func UpdateTimeNEQ(v time.Time) predicate.Item
- func UpdateTimeNotIn(vs ...time.Time) predicate.Item
Constants ¶
const ( // Label holds the string label denoting the item type in the database. Label = "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" // FieldSource holds the string denoting the source field in the database. FieldSource = "source" // FieldHash holds the string denoting the hash field in the database. FieldHash = "hash" // FieldData holds the string denoting the data field in the database. FieldData = "data" // EdgeTask holds the string denoting the task edge name in mutations. EdgeTask = "task" // Table holds the table name of the item in the database. Table = "items" // TaskTable is the table the holds the task relation/edge. TaskTable = "items" // TaskInverseTable is the table name for the Task entity. // It exists in this package in order to avoid circular dependency with the "task" package. TaskInverseTable = "tasks" // TaskColumn is the table column denoting the task relation/edge. TaskColumn = "task_items" )
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 // SourceValidator is a validator for the "source" field. It is called by the builders before save. SourceValidator func(string) error // HashValidator is a validator for the "hash" field. It is called by the builders before save. HashValidator func(string) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldSource, FieldHash, FieldData, }
Columns holds all SQL columns for item fields.
var ForeignKeys = []string{
"task_items",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Item type.
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 DataNotNil ¶
DataNotNil applies the NotNil predicate on the "data" field.
func HasTaskWith ¶
HasTaskWith applies the HasEdge predicate on the "task" edge with a given conditions (other predicates).
func HashContains ¶
HashContains applies the Contains predicate on the "hash" field.
func HashContainsFold ¶
HashContainsFold applies the ContainsFold predicate on the "hash" field.
func HashEqualFold ¶
HashEqualFold applies the EqualFold predicate on the "hash" field.
func HashHasPrefix ¶
HashHasPrefix applies the HasPrefix predicate on the "hash" field.
func HashHasSuffix ¶
HashHasSuffix applies the HasSuffix predicate on the "hash" field.
func Source ¶
Source applies equality check predicate on the "source" field. It's identical to SourceEQ.
func SourceContains ¶
SourceContains applies the Contains predicate on the "source" field.
func SourceContainsFold ¶
SourceContainsFold applies the ContainsFold predicate on the "source" field.
func SourceEqualFold ¶
SourceEqualFold applies the EqualFold predicate on the "source" field.
func SourceHasPrefix ¶
SourceHasPrefix applies the HasPrefix predicate on the "source" field.
func SourceHasSuffix ¶
SourceHasSuffix applies the HasSuffix predicate on the "source" field.
func SourceNotIn ¶
SourceNotIn applies the NotIn predicate on the "source" 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.
Types ¶
This section is empty.