datum

package
v0.1.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for datum fields.

View Source
var ForeignKeys = []string{
	"participant_data",
}

ForeignKeys holds the SQL foreign-keys that are owned by the Datum type.

Functions

func And

func And(predicates ...predicate.Datum) predicate.Datum

And groups list of predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Datum

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Datum

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Datum

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Datum

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Datum

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Datum

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Datum

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Datum

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Datum

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Current

func Current(v bool) predicate.Datum

Current applies equality check predicate on the "current" field. It's identical to CurrentEQ.

func CurrentEQ

func CurrentEQ(v bool) predicate.Datum

CurrentEQ applies the EQ predicate on the "current" field.

func CurrentNEQ

func CurrentNEQ(v bool) predicate.Datum

CurrentNEQ applies the NEQ predicate on the "current" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Datum

DeletedAt applies equality check predicate on the "deletedAt" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Datum

DeletedAtEQ applies the EQ predicate on the "deletedAt" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Datum

DeletedAtGT applies the GT predicate on the "deletedAt" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Datum

DeletedAtGTE applies the GTE predicate on the "deletedAt" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Datum

DeletedAtIn applies the In predicate on the "deletedAt" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Datum

DeletedAtIsNil applies the IsNil predicate on the "deletedAt" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Datum

DeletedAtLT applies the LT predicate on the "deletedAt" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Datum

DeletedAtLTE applies the LTE predicate on the "deletedAt" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Datum

DeletedAtNEQ applies the NEQ predicate on the "deletedAt" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Datum

DeletedAtNotIn applies the NotIn predicate on the "deletedAt" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Datum

DeletedAtNotNil applies the NotNil predicate on the "deletedAt" field.

func HasParticipant

func HasParticipant() predicate.Datum

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 ID

func ID(id string) predicate.Datum

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id string) predicate.Datum

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Datum

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Datum

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Datum

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Datum

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Datum

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Datum

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Datum

IDNotIn applies the NotIn predicate on the ID field.

func Index

func Index(v int) predicate.Datum

Index applies equality check predicate on the "index" field. It's identical to IndexEQ.

func IndexEQ

func IndexEQ(v int) predicate.Datum

IndexEQ applies the EQ predicate on the "index" field.

func IndexGT

func IndexGT(v int) predicate.Datum

IndexGT applies the GT predicate on the "index" field.

func IndexGTE

func IndexGTE(v int) predicate.Datum

IndexGTE applies the GTE predicate on the "index" field.

func IndexIn

func IndexIn(vs ...int) predicate.Datum

IndexIn applies the In predicate on the "index" field.

func IndexLT

func IndexLT(v int) predicate.Datum

IndexLT applies the LT predicate on the "index" field.

func IndexLTE

func IndexLTE(v int) predicate.Datum

IndexLTE applies the LTE predicate on the "index" field.

func IndexNEQ

func IndexNEQ(v int) predicate.Datum

IndexNEQ applies the NEQ predicate on the "index" field.

func IndexNotIn

func IndexNotIn(vs ...int) predicate.Datum

IndexNotIn applies the NotIn predicate on the "index" field.

func Key

func Key(v string) predicate.Datum

Key applies equality check predicate on the "key" field. It's identical to KeyEQ.

func KeyContains

func KeyContains(v string) predicate.Datum

KeyContains applies the Contains predicate on the "key" field.

func KeyContainsFold

func KeyContainsFold(v string) predicate.Datum

KeyContainsFold applies the ContainsFold predicate on the "key" field.

func KeyEQ

func KeyEQ(v string) predicate.Datum

KeyEQ applies the EQ predicate on the "key" field.

func KeyEqualFold

func KeyEqualFold(v string) predicate.Datum

KeyEqualFold applies the EqualFold predicate on the "key" field.

func KeyGT

func KeyGT(v string) predicate.Datum

KeyGT applies the GT predicate on the "key" field.

func KeyGTE

func KeyGTE(v string) predicate.Datum

KeyGTE applies the GTE predicate on the "key" field.

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.Datum

KeyHasPrefix applies the HasPrefix predicate on the "key" field.

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.Datum

KeyHasSuffix applies the HasSuffix predicate on the "key" field.

func KeyIn

func KeyIn(vs ...string) predicate.Datum

KeyIn applies the In predicate on the "key" field.

func KeyLT

func KeyLT(v string) predicate.Datum

KeyLT applies the LT predicate on the "key" field.

func KeyLTE

func KeyLTE(v string) predicate.Datum

KeyLTE applies the LTE predicate on the "key" field.

func KeyNEQ

func KeyNEQ(v string) predicate.Datum

KeyNEQ applies the NEQ predicate on the "key" field.

func KeyNotIn

func KeyNotIn(vs ...string) predicate.Datum

KeyNotIn applies the NotIn predicate on the "key" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Datum) predicate.Datum

Or groups list of predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Datum

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Datum

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Datum

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Datum

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Datum

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Datum

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Datum

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Datum

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Datum

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func Val

func Val(v string) predicate.Datum

Val applies equality check predicate on the "val" field. It's identical to ValEQ.

func ValContains

func ValContains(v string) predicate.Datum

ValContains applies the Contains predicate on the "val" field.

func ValContainsFold

func ValContainsFold(v string) predicate.Datum

ValContainsFold applies the ContainsFold predicate on the "val" field.

func ValEQ

func ValEQ(v string) predicate.Datum

ValEQ applies the EQ predicate on the "val" field.

func ValEqualFold

func ValEqualFold(v string) predicate.Datum

ValEqualFold applies the EqualFold predicate on the "val" field.

func ValGT

func ValGT(v string) predicate.Datum

ValGT applies the GT predicate on the "val" field.

func ValGTE

func ValGTE(v string) predicate.Datum

ValGTE applies the GTE predicate on the "val" field.

func ValHasPrefix

func ValHasPrefix(v string) predicate.Datum

ValHasPrefix applies the HasPrefix predicate on the "val" field.

func ValHasSuffix

func ValHasSuffix(v string) predicate.Datum

ValHasSuffix applies the HasSuffix predicate on the "val" field.

func ValIn

func ValIn(vs ...string) predicate.Datum

ValIn applies the In predicate on the "val" field.

func ValLT

func ValLT(v string) predicate.Datum

ValLT applies the LT predicate on the "val" field.

func ValLTE

func ValLTE(v string) predicate.Datum

ValLTE applies the LTE predicate on the "val" field.

func ValNEQ

func ValNEQ(v string) predicate.Datum

ValNEQ applies the NEQ predicate on the "val" field.

func ValNotIn

func ValNotIn(vs ...string) predicate.Datum

ValNotIn applies the NotIn predicate on the "val" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Version

func Version(v int) predicate.Datum

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionEQ

func VersionEQ(v int) predicate.Datum

VersionEQ applies the EQ predicate on the "version" field.

func VersionGT

func VersionGT(v int) predicate.Datum

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v int) predicate.Datum

VersionGTE applies the GTE predicate on the "version" field.

func VersionIn

func VersionIn(vs ...int) predicate.Datum

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v int) predicate.Datum

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v int) predicate.Datum

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v int) predicate.Datum

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...int) predicate.Datum

VersionNotIn applies the NotIn predicate on the "version" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL