Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Datum) predicate.Datum
- func CreatedAt(v time.Time) predicate.Datum
- func CreatedAtEQ(v time.Time) predicate.Datum
- func CreatedAtGT(v time.Time) predicate.Datum
- func CreatedAtGTE(v time.Time) predicate.Datum
- func CreatedAtIn(vs ...time.Time) predicate.Datum
- func CreatedAtLT(v time.Time) predicate.Datum
- func CreatedAtLTE(v time.Time) predicate.Datum
- func CreatedAtNEQ(v time.Time) predicate.Datum
- func CreatedAtNotIn(vs ...time.Time) predicate.Datum
- func Current(v bool) predicate.Datum
- func CurrentEQ(v bool) predicate.Datum
- func CurrentNEQ(v bool) predicate.Datum
- func DeletedAt(v time.Time) predicate.Datum
- func DeletedAtEQ(v time.Time) predicate.Datum
- func DeletedAtGT(v time.Time) predicate.Datum
- func DeletedAtGTE(v time.Time) predicate.Datum
- func DeletedAtIn(vs ...time.Time) predicate.Datum
- func DeletedAtIsNil() predicate.Datum
- func DeletedAtLT(v time.Time) predicate.Datum
- func DeletedAtLTE(v time.Time) predicate.Datum
- func DeletedAtNEQ(v time.Time) predicate.Datum
- func DeletedAtNotIn(vs ...time.Time) predicate.Datum
- func DeletedAtNotNil() predicate.Datum
- func HasParticipant() predicate.Datum
- func HasParticipantWith(preds ...predicate.Participant) predicate.Datum
- func ID(id string) predicate.Datum
- func IDEQ(id string) predicate.Datum
- func IDGT(id string) predicate.Datum
- func IDGTE(id string) predicate.Datum
- func IDIn(ids ...string) predicate.Datum
- func IDLT(id string) predicate.Datum
- func IDLTE(id string) predicate.Datum
- func IDNEQ(id string) predicate.Datum
- func IDNotIn(ids ...string) predicate.Datum
- func Index(v int) predicate.Datum
- func IndexEQ(v int) predicate.Datum
- func IndexGT(v int) predicate.Datum
- func IndexGTE(v int) predicate.Datum
- func IndexIn(vs ...int) predicate.Datum
- func IndexLT(v int) predicate.Datum
- func IndexLTE(v int) predicate.Datum
- func IndexNEQ(v int) predicate.Datum
- func IndexNotIn(vs ...int) predicate.Datum
- func Key(v string) predicate.Datum
- func KeyContains(v string) predicate.Datum
- func KeyContainsFold(v string) predicate.Datum
- func KeyEQ(v string) predicate.Datum
- func KeyEqualFold(v string) predicate.Datum
- func KeyGT(v string) predicate.Datum
- func KeyGTE(v string) predicate.Datum
- func KeyHasPrefix(v string) predicate.Datum
- func KeyHasSuffix(v string) predicate.Datum
- func KeyIn(vs ...string) predicate.Datum
- func KeyLT(v string) predicate.Datum
- func KeyLTE(v string) predicate.Datum
- func KeyNEQ(v string) predicate.Datum
- func KeyNotIn(vs ...string) predicate.Datum
- func Not(p predicate.Datum) predicate.Datum
- func Or(predicates ...predicate.Datum) predicate.Datum
- func UpdatedAt(v time.Time) predicate.Datum
- func UpdatedAtEQ(v time.Time) predicate.Datum
- func UpdatedAtGT(v time.Time) predicate.Datum
- func UpdatedAtGTE(v time.Time) predicate.Datum
- func UpdatedAtIn(vs ...time.Time) predicate.Datum
- func UpdatedAtLT(v time.Time) predicate.Datum
- func UpdatedAtLTE(v time.Time) predicate.Datum
- func UpdatedAtNEQ(v time.Time) predicate.Datum
- func UpdatedAtNotIn(vs ...time.Time) predicate.Datum
- func Val(v string) predicate.Datum
- func ValContains(v string) predicate.Datum
- func ValContainsFold(v string) predicate.Datum
- func ValEQ(v string) predicate.Datum
- func ValEqualFold(v string) predicate.Datum
- func ValGT(v string) predicate.Datum
- func ValGTE(v string) predicate.Datum
- func ValHasPrefix(v string) predicate.Datum
- func ValHasSuffix(v string) predicate.Datum
- func ValIn(vs ...string) predicate.Datum
- func ValLT(v string) predicate.Datum
- func ValLTE(v string) predicate.Datum
- func ValNEQ(v string) predicate.Datum
- func ValNotIn(vs ...string) predicate.Datum
- func ValidColumn(column string) bool
- func Version(v int) predicate.Datum
- func VersionEQ(v int) predicate.Datum
- func VersionGT(v int) predicate.Datum
- func VersionGTE(v int) predicate.Datum
- func VersionIn(vs ...int) predicate.Datum
- func VersionLT(v int) predicate.Datum
- func VersionLTE(v int) predicate.Datum
- func VersionNEQ(v int) predicate.Datum
- func VersionNotIn(vs ...int) predicate.Datum
Constants ¶
const ( // Label holds the string label denoting the datum type in the database. Label = "datum" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldKey holds the string denoting the key field in the database. FieldKey = "key" // FieldVal holds the string denoting the val field in the database. FieldVal = "val" // FieldIndex holds the string denoting the index field in the database. FieldIndex = "index" // FieldCurrent holds the string denoting the current field in the database. FieldCurrent = "current" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldDeletedAt holds the string denoting the deletedat field in the database. FieldDeletedAt = "deleted_at" // EdgeParticipant holds the string denoting the participant edge name in mutations. EdgeParticipant = "participant" // Table holds the table name of the datum in the database. Table = "data" // ParticipantTable is the table the holds the participant relation/edge. ParticipantTable = "data" // ParticipantInverseTable is the table name for the Participant entity. // It exists in this package in order to avoid circular dependency with the "participant" package. ParticipantInverseTable = "participants" // ParticipantColumn is the table column denoting the participant relation/edge. ParticipantColumn = "participant_data" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the created_at field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the updated_at field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. UpdateDefaultUpdatedAt func() time.Time // KeyValidator is a validator for the "key" field. It is called by the builders before save. KeyValidator func(string) error // ValValidator is a validator for the "val" field. It is called by the builders before save. ValValidator func(string) error // DefaultIndex holds the default value on creation for the index field. DefaultIndex int // DefaultCurrent holds the default value on creation for the current field. DefaultCurrent bool // DefaultVersion holds the default value on creation for the version field. DefaultVersion int // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldKey, FieldVal, FieldIndex, FieldCurrent, FieldVersion, FieldDeletedAt, }
Columns holds all SQL columns for datum fields.
var ForeignKeys = []string{
"participant_data",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Datum type.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Current ¶
Current applies equality check predicate on the "current" field. It's identical to CurrentEQ.
func CurrentNEQ ¶
CurrentNEQ applies the NEQ predicate on the "current" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deletedAt" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deletedAt" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deletedAt" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deletedAt" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deletedAt" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deletedAt" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deletedAt" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deletedAt" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deletedAt" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deletedAt" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deletedAt" field.
func HasParticipant ¶
HasParticipant applies the HasEdge predicate on the "participant" edge.
func HasParticipantWith ¶
func HasParticipantWith(preds ...predicate.Participant) predicate.Datum
HasParticipantWith applies the HasEdge predicate on the "participant" edge with a given conditions (other predicates).
func Index ¶
Index applies equality check predicate on the "index" field. It's identical to IndexEQ.
func IndexNotIn ¶
IndexNotIn applies the NotIn predicate on the "index" field.
func KeyContains ¶
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEqualFold ¶
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyHasPrefix ¶
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
KeyHasSuffix applies the HasSuffix predicate on the "key" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValContains ¶
ValContains applies the Contains predicate on the "val" field.
func ValContainsFold ¶
ValContainsFold applies the ContainsFold predicate on the "val" field.
func ValEqualFold ¶
ValEqualFold applies the EqualFold predicate on the "val" field.
func ValHasPrefix ¶
ValHasPrefix applies the HasPrefix predicate on the "val" field.
func ValHasSuffix ¶
ValHasSuffix applies the HasSuffix predicate on the "val" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
This section is empty.