Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Migration) predicate.Migration
- func AppliedAt(v time.Time) predicate.Migration
- func AppliedAtEQ(v time.Time) predicate.Migration
- func AppliedAtGT(v time.Time) predicate.Migration
- func AppliedAtGTE(v time.Time) predicate.Migration
- func AppliedAtIn(vs ...time.Time) predicate.Migration
- func AppliedAtLT(v time.Time) predicate.Migration
- func AppliedAtLTE(v time.Time) predicate.Migration
- func AppliedAtNEQ(v time.Time) predicate.Migration
- func AppliedAtNotIn(vs ...time.Time) predicate.Migration
- func ID(id int) predicate.Migration
- func IDEQ(id int) predicate.Migration
- func IDGT(id int) predicate.Migration
- func IDGTE(id int) predicate.Migration
- func IDIn(ids ...int) predicate.Migration
- func IDLT(id int) predicate.Migration
- func IDLTE(id int) predicate.Migration
- func IDNEQ(id int) predicate.Migration
- func IDNotIn(ids ...int) predicate.Migration
- func Name(v string) predicate.Migration
- func NameContains(v string) predicate.Migration
- func NameContainsFold(v string) predicate.Migration
- func NameEQ(v string) predicate.Migration
- func NameEqualFold(v string) predicate.Migration
- func NameGT(v string) predicate.Migration
- func NameGTE(v string) predicate.Migration
- func NameHasPrefix(v string) predicate.Migration
- func NameHasSuffix(v string) predicate.Migration
- func NameIn(vs ...string) predicate.Migration
- func NameLT(v string) predicate.Migration
- func NameLTE(v string) predicate.Migration
- func NameNEQ(v string) predicate.Migration
- func NameNotIn(vs ...string) predicate.Migration
- func Not(p predicate.Migration) predicate.Migration
- func Or(predicates ...predicate.Migration) predicate.Migration
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the migration type in the database. Label = "migration" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldAppliedAt holds the string denoting the applied_at field in the database. FieldAppliedAt = "applied_at" // Table holds the table name of the migration in the database. Table = "migrations" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultAppliedAt holds the default value on creation for the "applied_at" field. DefaultAppliedAt func() time.Time // UpdateDefaultAppliedAt holds the default value on update for the "applied_at" field. UpdateDefaultAppliedAt func() time.Time )
var Columns = []string{ FieldID, FieldName, FieldAppliedAt, }
Columns holds all SQL columns for migration fields.
Functions ¶
func AppliedAt ¶
AppliedAt applies equality check predicate on the "applied_at" field. It's identical to AppliedAtEQ.
func AppliedAtEQ ¶
AppliedAtEQ applies the EQ predicate on the "applied_at" field.
func AppliedAtGT ¶
AppliedAtGT applies the GT predicate on the "applied_at" field.
func AppliedAtGTE ¶
AppliedAtGTE applies the GTE predicate on the "applied_at" field.
func AppliedAtIn ¶
AppliedAtIn applies the In predicate on the "applied_at" field.
func AppliedAtLT ¶
AppliedAtLT applies the LT predicate on the "applied_at" field.
func AppliedAtLTE ¶
AppliedAtLTE applies the LTE predicate on the "applied_at" field.
func AppliedAtNEQ ¶
AppliedAtNEQ applies the NEQ predicate on the "applied_at" field.
func AppliedAtNotIn ¶
AppliedAtNotIn applies the NotIn predicate on the "applied_at" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.