Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Equipment) predicate.Equipment
- func Condition(v string) predicate.Equipment
- func ConditionContains(v string) predicate.Equipment
- func ConditionContainsFold(v string) predicate.Equipment
- func ConditionEQ(v string) predicate.Equipment
- func ConditionEqualFold(v string) predicate.Equipment
- func ConditionGT(v string) predicate.Equipment
- func ConditionGTE(v string) predicate.Equipment
- func ConditionHasPrefix(v string) predicate.Equipment
- func ConditionHasSuffix(v string) predicate.Equipment
- func ConditionIn(vs ...string) predicate.Equipment
- func ConditionLT(v string) predicate.Equipment
- func ConditionLTE(v string) predicate.Equipment
- func ConditionNEQ(v string) predicate.Equipment
- func ConditionNotIn(vs ...string) predicate.Equipment
- func CreateTime(v time.Time) predicate.Equipment
- func CreateTimeEQ(v time.Time) predicate.Equipment
- func CreateTimeGT(v time.Time) predicate.Equipment
- func CreateTimeGTE(v time.Time) predicate.Equipment
- func CreateTimeIn(vs ...time.Time) predicate.Equipment
- func CreateTimeLT(v time.Time) predicate.Equipment
- func CreateTimeLTE(v time.Time) predicate.Equipment
- func CreateTimeNEQ(v time.Time) predicate.Equipment
- func CreateTimeNotIn(vs ...time.Time) predicate.Equipment
- func ID(id int) predicate.Equipment
- func IDEQ(id int) predicate.Equipment
- func IDGT(id int) predicate.Equipment
- func IDGTE(id int) predicate.Equipment
- func IDIn(ids ...int) predicate.Equipment
- func IDLT(id int) predicate.Equipment
- func IDLTE(id int) predicate.Equipment
- func IDNEQ(id int) predicate.Equipment
- func IDNotIn(ids ...int) predicate.Equipment
- func Name(v string) predicate.Equipment
- func NameContains(v string) predicate.Equipment
- func NameContainsFold(v string) predicate.Equipment
- func NameEQ(v string) predicate.Equipment
- func NameEqualFold(v string) predicate.Equipment
- func NameGT(v string) predicate.Equipment
- func NameGTE(v string) predicate.Equipment
- func NameHasPrefix(v string) predicate.Equipment
- func NameHasSuffix(v string) predicate.Equipment
- func NameIn(vs ...string) predicate.Equipment
- func NameLT(v string) predicate.Equipment
- func NameLTE(v string) predicate.Equipment
- func NameNEQ(v string) predicate.Equipment
- func NameNotIn(vs ...string) predicate.Equipment
- func Not(p predicate.Equipment) predicate.Equipment
- func Or(predicates ...predicate.Equipment) predicate.Equipment
- func UpdateTime(v time.Time) predicate.Equipment
- func UpdateTimeEQ(v time.Time) predicate.Equipment
- func UpdateTimeGT(v time.Time) predicate.Equipment
- func UpdateTimeGTE(v time.Time) predicate.Equipment
- func UpdateTimeIn(vs ...time.Time) predicate.Equipment
- func UpdateTimeLT(v time.Time) predicate.Equipment
- func UpdateTimeLTE(v time.Time) predicate.Equipment
- func UpdateTimeNEQ(v time.Time) predicate.Equipment
- func UpdateTimeNotIn(vs ...time.Time) predicate.Equipment
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the equipment type in the database. Label = "equipment" // 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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCondition holds the string denoting the condition field in the database. FieldCondition = "condition" // Table holds the table name of the equipment in the database. Table = "equipment" )
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 // ConditionValidator is a validator for the "condition" field. It is called by the builders before save. ConditionValidator func(string) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldName, FieldCondition, }
Columns holds all SQL columns for equipment fields.
Functions ¶
func Condition ¶
Condition applies equality check predicate on the "condition" field. It's identical to ConditionEQ.
func ConditionContains ¶ added in v0.4.0
ConditionContains applies the Contains predicate on the "condition" field.
func ConditionContainsFold ¶ added in v0.4.0
ConditionContainsFold applies the ContainsFold predicate on the "condition" field.
func ConditionEQ ¶
ConditionEQ applies the EQ predicate on the "condition" field.
func ConditionEqualFold ¶ added in v0.4.0
ConditionEqualFold applies the EqualFold predicate on the "condition" field.
func ConditionGT ¶ added in v0.4.0
ConditionGT applies the GT predicate on the "condition" field.
func ConditionGTE ¶ added in v0.4.0
ConditionGTE applies the GTE predicate on the "condition" field.
func ConditionHasPrefix ¶ added in v0.4.0
ConditionHasPrefix applies the HasPrefix predicate on the "condition" field.
func ConditionHasSuffix ¶ added in v0.4.0
ConditionHasSuffix applies the HasSuffix predicate on the "condition" field.
func ConditionIn ¶
ConditionIn applies the In predicate on the "condition" field.
func ConditionLT ¶ added in v0.4.0
ConditionLT applies the LT predicate on the "condition" field.
func ConditionLTE ¶ added in v0.4.0
ConditionLTE applies the LTE predicate on the "condition" field.
func ConditionNEQ ¶
ConditionNEQ applies the NEQ predicate on the "condition" field.
func ConditionNotIn ¶
ConditionNotIn applies the NotIn predicate on the "condition" field.
func CreateTime ¶ added in v0.3.0
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶ added in v0.3.0
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶ added in v0.3.0
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶ added in v0.3.0
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶ added in v0.3.0
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶ added in v0.3.0
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶ added in v0.3.0
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶ added in v0.3.0
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶ added in v0.3.0
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func UpdateTime ¶ added in v0.3.0
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶ added in v0.3.0
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶ added in v0.3.0
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶ added in v0.3.0
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶ added in v0.3.0
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶ added in v0.3.0
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶ added in v0.3.0
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶ added in v0.3.0
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶ added in v0.3.0
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 ¶
This section is empty.