participation

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 participation type in the database.
	Label = "participation"
	// 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"
	// FieldAddedParticipant holds the string denoting the addedparticipant field in the database.
	FieldAddedParticipant = "added_participant"
	// FieldMturkWorkerID holds the string denoting the mturkworkerid field in the database.
	FieldMturkWorkerID = "mturk_worker_id"
	// FieldMturkAssignmentID holds the string denoting the mturkassignmentid field in the database.
	FieldMturkAssignmentID = "mturk_assignment_id"
	// FieldMturkHitID holds the string denoting the mturkhitid field in the database.
	FieldMturkHitID = "mturk_hit_id"
	// FieldMturkAcceptedAt holds the string denoting the mturkacceptedat field in the database.
	FieldMturkAcceptedAt = "mturk_accepted_at"
	// FieldMturkSubmittedAt holds the string denoting the mturksubmittedat field in the database.
	FieldMturkSubmittedAt = "mturk_submitted_at"

	// EdgeStepRun holds the string denoting the steprun edge name in mutations.
	EdgeStepRun = "stepRun"
	// EdgeParticipant holds the string denoting the participant edge name in mutations.
	EdgeParticipant = "participant"

	// Table holds the table name of the participation in the database.
	Table = "participations"
	// StepRunTable is the table the holds the stepRun relation/edge.
	StepRunTable = "participations"
	// StepRunInverseTable is the table name for the StepRun entity.
	// It exists in this package in order to avoid circular dependency with the "steprun" package.
	StepRunInverseTable = "step_runs"
	// StepRunColumn is the table column denoting the stepRun relation/edge.
	StepRunColumn = "step_run_participations"
	// ParticipantTable is the table the holds the participant relation/edge.
	ParticipantTable = "participations"
	// 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_participations"
)

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
	// DefaultAddedParticipant holds the default value on creation for the addedParticipant field.
	DefaultAddedParticipant bool
	// 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 participation fields.

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

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

Functions

func AddedParticipant

func AddedParticipant(v bool) predicate.Participation

AddedParticipant applies equality check predicate on the "addedParticipant" field. It's identical to AddedParticipantEQ.

func AddedParticipantEQ

func AddedParticipantEQ(v bool) predicate.Participation

AddedParticipantEQ applies the EQ predicate on the "addedParticipant" field.

func AddedParticipantNEQ

func AddedParticipantNEQ(v bool) predicate.Participation

AddedParticipantNEQ applies the NEQ predicate on the "addedParticipant" field.

func And

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

func CreatedAt

func CreatedAt(v time.Time) predicate.Participation

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Participation

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Participation

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Participation

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Participation

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Participation

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Participation

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

func CreatedAtNotIn

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

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

func HasParticipant

func HasParticipant() predicate.Participation

HasParticipant applies the HasEdge predicate on the "participant" edge.

func HasParticipantWith

func HasParticipantWith(preds ...predicate.Participant) predicate.Participation

HasParticipantWith applies the HasEdge predicate on the "participant" edge with a given conditions (other predicates).

func HasStepRun

func HasStepRun() predicate.Participation

HasStepRun applies the HasEdge predicate on the "stepRun" edge.

func HasStepRunWith

func HasStepRunWith(preds ...predicate.StepRun) predicate.Participation

HasStepRunWith applies the HasEdge predicate on the "stepRun" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their identifier.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Participation

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Participation

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Participation

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MturkAcceptedAt

func MturkAcceptedAt(v time.Time) predicate.Participation

MturkAcceptedAt applies equality check predicate on the "mturkAcceptedAt" field. It's identical to MturkAcceptedAtEQ.

func MturkAcceptedAtEQ

func MturkAcceptedAtEQ(v time.Time) predicate.Participation

MturkAcceptedAtEQ applies the EQ predicate on the "mturkAcceptedAt" field.

func MturkAcceptedAtGT

func MturkAcceptedAtGT(v time.Time) predicate.Participation

MturkAcceptedAtGT applies the GT predicate on the "mturkAcceptedAt" field.

func MturkAcceptedAtGTE

func MturkAcceptedAtGTE(v time.Time) predicate.Participation

MturkAcceptedAtGTE applies the GTE predicate on the "mturkAcceptedAt" field.

func MturkAcceptedAtIn

func MturkAcceptedAtIn(vs ...time.Time) predicate.Participation

MturkAcceptedAtIn applies the In predicate on the "mturkAcceptedAt" field.

func MturkAcceptedAtIsNil

func MturkAcceptedAtIsNil() predicate.Participation

MturkAcceptedAtIsNil applies the IsNil predicate on the "mturkAcceptedAt" field.

func MturkAcceptedAtLT

func MturkAcceptedAtLT(v time.Time) predicate.Participation

MturkAcceptedAtLT applies the LT predicate on the "mturkAcceptedAt" field.

func MturkAcceptedAtLTE

func MturkAcceptedAtLTE(v time.Time) predicate.Participation

MturkAcceptedAtLTE applies the LTE predicate on the "mturkAcceptedAt" field.

func MturkAcceptedAtNEQ

func MturkAcceptedAtNEQ(v time.Time) predicate.Participation

MturkAcceptedAtNEQ applies the NEQ predicate on the "mturkAcceptedAt" field.

func MturkAcceptedAtNotIn

func MturkAcceptedAtNotIn(vs ...time.Time) predicate.Participation

MturkAcceptedAtNotIn applies the NotIn predicate on the "mturkAcceptedAt" field.

func MturkAcceptedAtNotNil

func MturkAcceptedAtNotNil() predicate.Participation

MturkAcceptedAtNotNil applies the NotNil predicate on the "mturkAcceptedAt" field.

func MturkAssignmentID

func MturkAssignmentID(v string) predicate.Participation

MturkAssignmentID applies equality check predicate on the "mturkAssignmentID" field. It's identical to MturkAssignmentIDEQ.

func MturkAssignmentIDContains

func MturkAssignmentIDContains(v string) predicate.Participation

MturkAssignmentIDContains applies the Contains predicate on the "mturkAssignmentID" field.

func MturkAssignmentIDContainsFold

func MturkAssignmentIDContainsFold(v string) predicate.Participation

MturkAssignmentIDContainsFold applies the ContainsFold predicate on the "mturkAssignmentID" field.

func MturkAssignmentIDEQ

func MturkAssignmentIDEQ(v string) predicate.Participation

MturkAssignmentIDEQ applies the EQ predicate on the "mturkAssignmentID" field.

func MturkAssignmentIDEqualFold

func MturkAssignmentIDEqualFold(v string) predicate.Participation

MturkAssignmentIDEqualFold applies the EqualFold predicate on the "mturkAssignmentID" field.

func MturkAssignmentIDGT

func MturkAssignmentIDGT(v string) predicate.Participation

MturkAssignmentIDGT applies the GT predicate on the "mturkAssignmentID" field.

func MturkAssignmentIDGTE

func MturkAssignmentIDGTE(v string) predicate.Participation

MturkAssignmentIDGTE applies the GTE predicate on the "mturkAssignmentID" field.

func MturkAssignmentIDHasPrefix

func MturkAssignmentIDHasPrefix(v string) predicate.Participation

MturkAssignmentIDHasPrefix applies the HasPrefix predicate on the "mturkAssignmentID" field.

func MturkAssignmentIDHasSuffix

func MturkAssignmentIDHasSuffix(v string) predicate.Participation

MturkAssignmentIDHasSuffix applies the HasSuffix predicate on the "mturkAssignmentID" field.

func MturkAssignmentIDIn

func MturkAssignmentIDIn(vs ...string) predicate.Participation

MturkAssignmentIDIn applies the In predicate on the "mturkAssignmentID" field.

func MturkAssignmentIDLT

func MturkAssignmentIDLT(v string) predicate.Participation

MturkAssignmentIDLT applies the LT predicate on the "mturkAssignmentID" field.

func MturkAssignmentIDLTE

func MturkAssignmentIDLTE(v string) predicate.Participation

MturkAssignmentIDLTE applies the LTE predicate on the "mturkAssignmentID" field.

func MturkAssignmentIDNEQ

func MturkAssignmentIDNEQ(v string) predicate.Participation

MturkAssignmentIDNEQ applies the NEQ predicate on the "mturkAssignmentID" field.

func MturkAssignmentIDNotIn

func MturkAssignmentIDNotIn(vs ...string) predicate.Participation

MturkAssignmentIDNotIn applies the NotIn predicate on the "mturkAssignmentID" field.

func MturkHitID

func MturkHitID(v string) predicate.Participation

MturkHitID applies equality check predicate on the "mturkHitID" field. It's identical to MturkHitIDEQ.

func MturkHitIDContains

func MturkHitIDContains(v string) predicate.Participation

MturkHitIDContains applies the Contains predicate on the "mturkHitID" field.

func MturkHitIDContainsFold

func MturkHitIDContainsFold(v string) predicate.Participation

MturkHitIDContainsFold applies the ContainsFold predicate on the "mturkHitID" field.

func MturkHitIDEQ

func MturkHitIDEQ(v string) predicate.Participation

MturkHitIDEQ applies the EQ predicate on the "mturkHitID" field.

func MturkHitIDEqualFold

func MturkHitIDEqualFold(v string) predicate.Participation

MturkHitIDEqualFold applies the EqualFold predicate on the "mturkHitID" field.

func MturkHitIDGT

func MturkHitIDGT(v string) predicate.Participation

MturkHitIDGT applies the GT predicate on the "mturkHitID" field.

func MturkHitIDGTE

func MturkHitIDGTE(v string) predicate.Participation

MturkHitIDGTE applies the GTE predicate on the "mturkHitID" field.

func MturkHitIDHasPrefix

func MturkHitIDHasPrefix(v string) predicate.Participation

MturkHitIDHasPrefix applies the HasPrefix predicate on the "mturkHitID" field.

func MturkHitIDHasSuffix

func MturkHitIDHasSuffix(v string) predicate.Participation

MturkHitIDHasSuffix applies the HasSuffix predicate on the "mturkHitID" field.

func MturkHitIDIn

func MturkHitIDIn(vs ...string) predicate.Participation

MturkHitIDIn applies the In predicate on the "mturkHitID" field.

func MturkHitIDLT

func MturkHitIDLT(v string) predicate.Participation

MturkHitIDLT applies the LT predicate on the "mturkHitID" field.

func MturkHitIDLTE

func MturkHitIDLTE(v string) predicate.Participation

MturkHitIDLTE applies the LTE predicate on the "mturkHitID" field.

func MturkHitIDNEQ

func MturkHitIDNEQ(v string) predicate.Participation

MturkHitIDNEQ applies the NEQ predicate on the "mturkHitID" field.

func MturkHitIDNotIn

func MturkHitIDNotIn(vs ...string) predicate.Participation

MturkHitIDNotIn applies the NotIn predicate on the "mturkHitID" field.

func MturkSubmittedAt

func MturkSubmittedAt(v time.Time) predicate.Participation

MturkSubmittedAt applies equality check predicate on the "mturkSubmittedAt" field. It's identical to MturkSubmittedAtEQ.

func MturkSubmittedAtEQ

func MturkSubmittedAtEQ(v time.Time) predicate.Participation

MturkSubmittedAtEQ applies the EQ predicate on the "mturkSubmittedAt" field.

func MturkSubmittedAtGT

func MturkSubmittedAtGT(v time.Time) predicate.Participation

MturkSubmittedAtGT applies the GT predicate on the "mturkSubmittedAt" field.

func MturkSubmittedAtGTE

func MturkSubmittedAtGTE(v time.Time) predicate.Participation

MturkSubmittedAtGTE applies the GTE predicate on the "mturkSubmittedAt" field.

func MturkSubmittedAtIn

func MturkSubmittedAtIn(vs ...time.Time) predicate.Participation

MturkSubmittedAtIn applies the In predicate on the "mturkSubmittedAt" field.

func MturkSubmittedAtIsNil

func MturkSubmittedAtIsNil() predicate.Participation

MturkSubmittedAtIsNil applies the IsNil predicate on the "mturkSubmittedAt" field.

func MturkSubmittedAtLT

func MturkSubmittedAtLT(v time.Time) predicate.Participation

MturkSubmittedAtLT applies the LT predicate on the "mturkSubmittedAt" field.

func MturkSubmittedAtLTE

func MturkSubmittedAtLTE(v time.Time) predicate.Participation

MturkSubmittedAtLTE applies the LTE predicate on the "mturkSubmittedAt" field.

func MturkSubmittedAtNEQ

func MturkSubmittedAtNEQ(v time.Time) predicate.Participation

MturkSubmittedAtNEQ applies the NEQ predicate on the "mturkSubmittedAt" field.

func MturkSubmittedAtNotIn

func MturkSubmittedAtNotIn(vs ...time.Time) predicate.Participation

MturkSubmittedAtNotIn applies the NotIn predicate on the "mturkSubmittedAt" field.

func MturkSubmittedAtNotNil

func MturkSubmittedAtNotNil() predicate.Participation

MturkSubmittedAtNotNil applies the NotNil predicate on the "mturkSubmittedAt" field.

func MturkWorkerID

func MturkWorkerID(v string) predicate.Participation

MturkWorkerID applies equality check predicate on the "mturkWorkerID" field. It's identical to MturkWorkerIDEQ.

func MturkWorkerIDContains

func MturkWorkerIDContains(v string) predicate.Participation

MturkWorkerIDContains applies the Contains predicate on the "mturkWorkerID" field.

func MturkWorkerIDContainsFold

func MturkWorkerIDContainsFold(v string) predicate.Participation

MturkWorkerIDContainsFold applies the ContainsFold predicate on the "mturkWorkerID" field.

func MturkWorkerIDEQ

func MturkWorkerIDEQ(v string) predicate.Participation

MturkWorkerIDEQ applies the EQ predicate on the "mturkWorkerID" field.

func MturkWorkerIDEqualFold

func MturkWorkerIDEqualFold(v string) predicate.Participation

MturkWorkerIDEqualFold applies the EqualFold predicate on the "mturkWorkerID" field.

func MturkWorkerIDGT

func MturkWorkerIDGT(v string) predicate.Participation

MturkWorkerIDGT applies the GT predicate on the "mturkWorkerID" field.

func MturkWorkerIDGTE

func MturkWorkerIDGTE(v string) predicate.Participation

MturkWorkerIDGTE applies the GTE predicate on the "mturkWorkerID" field.

func MturkWorkerIDHasPrefix

func MturkWorkerIDHasPrefix(v string) predicate.Participation

MturkWorkerIDHasPrefix applies the HasPrefix predicate on the "mturkWorkerID" field.

func MturkWorkerIDHasSuffix

func MturkWorkerIDHasSuffix(v string) predicate.Participation

MturkWorkerIDHasSuffix applies the HasSuffix predicate on the "mturkWorkerID" field.

func MturkWorkerIDIn

func MturkWorkerIDIn(vs ...string) predicate.Participation

MturkWorkerIDIn applies the In predicate on the "mturkWorkerID" field.

func MturkWorkerIDLT

func MturkWorkerIDLT(v string) predicate.Participation

MturkWorkerIDLT applies the LT predicate on the "mturkWorkerID" field.

func MturkWorkerIDLTE

func MturkWorkerIDLTE(v string) predicate.Participation

MturkWorkerIDLTE applies the LTE predicate on the "mturkWorkerID" field.

func MturkWorkerIDNEQ

func MturkWorkerIDNEQ(v string) predicate.Participation

MturkWorkerIDNEQ applies the NEQ predicate on the "mturkWorkerID" field.

func MturkWorkerIDNotIn

func MturkWorkerIDNotIn(vs ...string) predicate.Participation

MturkWorkerIDNotIn applies the NotIn predicate on the "mturkWorkerID" field.

func Not

Not applies the not operator on the given predicate.

func Or

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Participation

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Participation

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Participation

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Participation

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Participation

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Participation

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Participation

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

func UpdatedAtNotIn

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

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

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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