Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ModelVersion) predicate.ModelVersion
- func ID(id int) predicate.ModelVersion
- func IDEQ(id int) predicate.ModelVersion
- func IDGT(id int) predicate.ModelVersion
- func IDGTE(id int) predicate.ModelVersion
- func IDIn(ids ...int) predicate.ModelVersion
- func IDLT(id int) predicate.ModelVersion
- func IDLTE(id int) predicate.ModelVersion
- func IDNEQ(id int) predicate.ModelVersion
- func IDNotIn(ids ...int) predicate.ModelVersion
- func Not(p predicate.ModelVersion) predicate.ModelVersion
- func Or(predicates ...predicate.ModelVersion) predicate.ModelVersion
- func UpdateTime(v time.Time) predicate.ModelVersion
- func UpdateTimeEQ(v time.Time) predicate.ModelVersion
- func UpdateTimeGT(v time.Time) predicate.ModelVersion
- func UpdateTimeGTE(v time.Time) predicate.ModelVersion
- func UpdateTimeIn(vs ...time.Time) predicate.ModelVersion
- func UpdateTimeLT(v time.Time) predicate.ModelVersion
- func UpdateTimeLTE(v time.Time) predicate.ModelVersion
- func UpdateTimeNEQ(v time.Time) predicate.ModelVersion
- func UpdateTimeNotIn(vs ...time.Time) predicate.ModelVersion
- func ValidColumn(column string) bool
- func Version(v string) predicate.ModelVersion
- func VersionContains(v string) predicate.ModelVersion
- func VersionContainsFold(v string) predicate.ModelVersion
- func VersionEQ(v string) predicate.ModelVersion
- func VersionEqualFold(v string) predicate.ModelVersion
- func VersionGT(v string) predicate.ModelVersion
- func VersionGTE(v string) predicate.ModelVersion
- func VersionHasPrefix(v string) predicate.ModelVersion
- func VersionHasSuffix(v string) predicate.ModelVersion
- func VersionIn(vs ...string) predicate.ModelVersion
- func VersionLT(v string) predicate.ModelVersion
- func VersionLTE(v string) predicate.ModelVersion
- func VersionNEQ(v string) predicate.ModelVersion
- func VersionNotIn(vs ...string) predicate.ModelVersion
Constants ¶
const ( // Label holds the string label denoting the modelversion type in the database. Label = "model_version" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // Table holds the table name of the modelversion in the database. Table = "model_version" )
Variables ¶
var ( // VersionValidator is a validator for the "version" field. It is called by the builders before save. VersionValidator func(string) error // 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 )
var Columns = []string{ FieldID, FieldVersion, FieldUpdateTime, }
Columns holds all SQL columns for modelversion fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ModelVersion) predicate.ModelVersion
And groups predicates with the AND operator between them.
func IDGTE ¶
func IDGTE(id int) predicate.ModelVersion
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.ModelVersion
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.ModelVersion
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.ModelVersion
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.ModelVersion
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.ModelVersion) predicate.ModelVersion
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ModelVersion) predicate.ModelVersion
Or groups predicates with the OR operator between them.
func UpdateTime ¶
func UpdateTime(v time.Time) predicate.ModelVersion
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
func UpdateTimeEQ(v time.Time) predicate.ModelVersion
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
func UpdateTimeGT(v time.Time) predicate.ModelVersion
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
func UpdateTimeGTE(v time.Time) predicate.ModelVersion
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
func UpdateTimeIn(vs ...time.Time) predicate.ModelVersion
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
func UpdateTimeLT(v time.Time) predicate.ModelVersion
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
func UpdateTimeLTE(v time.Time) predicate.ModelVersion
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
func UpdateTimeNEQ(v time.Time) predicate.ModelVersion
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
func UpdateTimeNotIn(vs ...time.Time) predicate.ModelVersion
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).
func Version ¶
func Version(v string) predicate.ModelVersion
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionContains ¶
func VersionContains(v string) predicate.ModelVersion
VersionContains applies the Contains predicate on the "version" field.
func VersionContainsFold ¶
func VersionContainsFold(v string) predicate.ModelVersion
VersionContainsFold applies the ContainsFold predicate on the "version" field.
func VersionEQ ¶
func VersionEQ(v string) predicate.ModelVersion
VersionEQ applies the EQ predicate on the "version" field.
func VersionEqualFold ¶
func VersionEqualFold(v string) predicate.ModelVersion
VersionEqualFold applies the EqualFold predicate on the "version" field.
func VersionGT ¶
func VersionGT(v string) predicate.ModelVersion
VersionGT applies the GT predicate on the "version" field.
func VersionGTE ¶
func VersionGTE(v string) predicate.ModelVersion
VersionGTE applies the GTE predicate on the "version" field.
func VersionHasPrefix ¶
func VersionHasPrefix(v string) predicate.ModelVersion
VersionHasPrefix applies the HasPrefix predicate on the "version" field.
func VersionHasSuffix ¶
func VersionHasSuffix(v string) predicate.ModelVersion
VersionHasSuffix applies the HasSuffix predicate on the "version" field.
func VersionIn ¶
func VersionIn(vs ...string) predicate.ModelVersion
VersionIn applies the In predicate on the "version" field.
func VersionLT ¶
func VersionLT(v string) predicate.ModelVersion
VersionLT applies the LT predicate on the "version" field.
func VersionLTE ¶
func VersionLTE(v string) predicate.ModelVersion
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
func VersionNEQ(v string) predicate.ModelVersion
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
func VersionNotIn(vs ...string) predicate.ModelVersion
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
This section is empty.