participant

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 participant type in the database.
	Label = "participant"
	// 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"
	// FieldMturkWorkerID holds the string denoting the mturkworkerid field in the database.
	FieldMturkWorkerID = "mturk_worker_id"
	// FieldUninitialized holds the string denoting the uninitialized field in the database.
	FieldUninitialized = "uninitialized"

	// EdgeData holds the string denoting the data edge name in mutations.
	EdgeData = "data"
	// EdgeProviderIDs holds the string denoting the providerids edge name in mutations.
	EdgeProviderIDs = "providerIDs"
	// EdgeParticipations holds the string denoting the participations edge name in mutations.
	EdgeParticipations = "participations"
	// EdgeCreatedBy holds the string denoting the createdby edge name in mutations.
	EdgeCreatedBy = "createdBy"
	// EdgeSteps holds the string denoting the steps edge name in mutations.
	EdgeSteps = "steps"
	// EdgeProjects holds the string denoting the projects edge name in mutations.
	EdgeProjects = "projects"
	// EdgeImportedBy holds the string denoting the importedby edge name in mutations.
	EdgeImportedBy = "importedBy"

	// Table holds the table name of the participant in the database.
	Table = "participants"
	// DataTable is the table the holds the data relation/edge.
	DataTable = "data"
	// DataInverseTable is the table name for the Datum entity.
	// It exists in this package in order to avoid circular dependency with the "datum" package.
	DataInverseTable = "data"
	// DataColumn is the table column denoting the data relation/edge.
	DataColumn = "participant_data"
	// ProviderIDsTable is the table the holds the providerIDs relation/edge.
	ProviderIDsTable = "provider_ids"
	// ProviderIDsInverseTable is the table name for the ProviderID entity.
	// It exists in this package in order to avoid circular dependency with the "providerid" package.
	ProviderIDsInverseTable = "provider_ids"
	// ProviderIDsColumn is the table column denoting the providerIDs relation/edge.
	ProviderIDsColumn = "participant_provider_ids"
	// ParticipationsTable is the table the holds the participations relation/edge.
	ParticipationsTable = "participations"
	// ParticipationsInverseTable is the table name for the Participation entity.
	// It exists in this package in order to avoid circular dependency with the "participation" package.
	ParticipationsInverseTable = "participations"
	// ParticipationsColumn is the table column denoting the participations relation/edge.
	ParticipationsColumn = "participant_participations"
	// CreatedByTable is the table the holds the createdBy relation/edge.
	CreatedByTable = "participants"
	// CreatedByInverseTable is the table name for the StepRun entity.
	// It exists in this package in order to avoid circular dependency with the "steprun" package.
	CreatedByInverseTable = "step_runs"
	// CreatedByColumn is the table column denoting the createdBy relation/edge.
	CreatedByColumn = "step_run_created_participants"
	// StepsTable is the table the holds the steps relation/edge. The primary key declared below.
	StepsTable = "step_run_participants"
	// StepsInverseTable is the table name for the StepRun entity.
	// It exists in this package in order to avoid circular dependency with the "steprun" package.
	StepsInverseTable = "step_runs"
	// ProjectsTable is the table the holds the projects relation/edge. The primary key declared below.
	ProjectsTable = "project_participants"
	// ProjectsInverseTable is the table name for the Project entity.
	// It exists in this package in order to avoid circular dependency with the "project" package.
	ProjectsInverseTable = "projects"
	// ImportedByTable is the table the holds the importedBy relation/edge. The primary key declared below.
	ImportedByTable = "admin_importedParticipants"
	// ImportedByInverseTable is the table name for the Admin entity.
	// It exists in this package in order to avoid circular dependency with the "admin" package.
	ImportedByInverseTable = "admins"
)

Variables

View Source
var (
	// StepsPrimaryKey and StepsColumn2 are the table columns denoting the
	// primary key for the steps relation (M2M).
	StepsPrimaryKey = []string{"step_run_id", "participant_id"}
	// ProjectsPrimaryKey and ProjectsColumn2 are the table columns denoting the
	// primary key for the projects relation (M2M).
	ProjectsPrimaryKey = []string{"project_id", "participant_id"}
	// ImportedByPrimaryKey and ImportedByColumn2 are the table columns denoting the
	// primary key for the importedBy relation (M2M).
	ImportedByPrimaryKey = []string{"admin_id", "participant_id"}
)
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
	// 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 participant fields.

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

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

Functions

func And

func And(predicates ...predicate.Participant) predicate.Participant

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

func CreatedAt

func CreatedAt(v time.Time) predicate.Participant

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Participant

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Participant

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Participant

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Participant

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Participant

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Participant

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

func CreatedAtNotIn

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

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

func HasCreatedBy

func HasCreatedBy() predicate.Participant

HasCreatedBy applies the HasEdge predicate on the "createdBy" edge.

func HasCreatedByWith

func HasCreatedByWith(preds ...predicate.StepRun) predicate.Participant

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

func HasData

func HasData() predicate.Participant

HasData applies the HasEdge predicate on the "data" edge.

func HasDataWith

func HasDataWith(preds ...predicate.Datum) predicate.Participant

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

func HasImportedBy

func HasImportedBy() predicate.Participant

HasImportedBy applies the HasEdge predicate on the "importedBy" edge.

func HasImportedByWith

func HasImportedByWith(preds ...predicate.Admin) predicate.Participant

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

func HasParticipations

func HasParticipations() predicate.Participant

HasParticipations applies the HasEdge predicate on the "participations" edge.

func HasParticipationsWith

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

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

func HasProjects

func HasProjects() predicate.Participant

HasProjects applies the HasEdge predicate on the "projects" edge.

func HasProjectsWith

func HasProjectsWith(preds ...predicate.Project) predicate.Participant

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

func HasProviderIDs

func HasProviderIDs() predicate.Participant

HasProviderIDs applies the HasEdge predicate on the "providerIDs" edge.

func HasProviderIDsWith

func HasProviderIDsWith(preds ...predicate.ProviderID) predicate.Participant

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

func HasSteps

func HasSteps() predicate.Participant

HasSteps applies the HasEdge predicate on the "steps" edge.

func HasStepsWith

func HasStepsWith(preds ...predicate.StepRun) predicate.Participant

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

func ID

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id string) predicate.Participant

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Participant

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Participant

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Participant

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Participant

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Participant

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MturkWorkerID

func MturkWorkerID(v string) predicate.Participant

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

func MturkWorkerIDContains

func MturkWorkerIDContains(v string) predicate.Participant

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

func MturkWorkerIDContainsFold

func MturkWorkerIDContainsFold(v string) predicate.Participant

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

func MturkWorkerIDEQ

func MturkWorkerIDEQ(v string) predicate.Participant

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

func MturkWorkerIDEqualFold

func MturkWorkerIDEqualFold(v string) predicate.Participant

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

func MturkWorkerIDGT

func MturkWorkerIDGT(v string) predicate.Participant

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

func MturkWorkerIDGTE

func MturkWorkerIDGTE(v string) predicate.Participant

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

func MturkWorkerIDHasPrefix

func MturkWorkerIDHasPrefix(v string) predicate.Participant

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

func MturkWorkerIDHasSuffix

func MturkWorkerIDHasSuffix(v string) predicate.Participant

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

func MturkWorkerIDIn

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

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

func MturkWorkerIDIsNil

func MturkWorkerIDIsNil() predicate.Participant

MturkWorkerIDIsNil applies the IsNil predicate on the "mturkWorkerID" field.

func MturkWorkerIDLT

func MturkWorkerIDLT(v string) predicate.Participant

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

func MturkWorkerIDLTE

func MturkWorkerIDLTE(v string) predicate.Participant

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

func MturkWorkerIDNEQ

func MturkWorkerIDNEQ(v string) predicate.Participant

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

func MturkWorkerIDNotIn

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

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

func MturkWorkerIDNotNil

func MturkWorkerIDNotNil() predicate.Participant

MturkWorkerIDNotNil applies the NotNil predicate on the "mturkWorkerID" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Participant) predicate.Participant

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

func Uninitialized

func Uninitialized(v bool) predicate.Participant

Uninitialized applies equality check predicate on the "uninitialized" field. It's identical to UninitializedEQ.

func UninitializedEQ

func UninitializedEQ(v bool) predicate.Participant

UninitializedEQ applies the EQ predicate on the "uninitialized" field.

func UninitializedIsNil

func UninitializedIsNil() predicate.Participant

UninitializedIsNil applies the IsNil predicate on the "uninitialized" field.

func UninitializedNEQ

func UninitializedNEQ(v bool) predicate.Participant

UninitializedNEQ applies the NEQ predicate on the "uninitialized" field.

func UninitializedNotNil

func UninitializedNotNil() predicate.Participant

UninitializedNotNil applies the NotNil predicate on the "uninitialized" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Participant

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Participant

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Participant

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Participant

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Participant

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Participant

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Participant

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

func UpdatedAtNotIn

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

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