project

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 project type in the database.
	Label = "project"
	// 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"
	// FieldProjectID holds the string denoting the projectid field in the database.
	FieldProjectID = "project_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"

	// EdgeRuns holds the string denoting the runs edge name in mutations.
	EdgeRuns = "runs"
	// EdgeTemplates holds the string denoting the templates edge name in mutations.
	EdgeTemplates = "templates"
	// EdgeParticipants holds the string denoting the participants edge name in mutations.
	EdgeParticipants = "participants"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"

	// Table holds the table name of the project in the database.
	Table = "projects"
	// RunsTable is the table the holds the runs relation/edge.
	RunsTable = "runs"
	// RunsInverseTable is the table name for the Run entity.
	// It exists in this package in order to avoid circular dependency with the "run" package.
	RunsInverseTable = "runs"
	// RunsColumn is the table column denoting the runs relation/edge.
	RunsColumn = "project_runs"
	// TemplatesTable is the table the holds the templates relation/edge.
	TemplatesTable = "templates"
	// TemplatesInverseTable is the table name for the Template entity.
	// It exists in this package in order to avoid circular dependency with the "template" package.
	TemplatesInverseTable = "templates"
	// TemplatesColumn is the table column denoting the templates relation/edge.
	TemplatesColumn = "project_templates"
	// ParticipantsTable is the table the holds the participants relation/edge. The primary key declared below.
	ParticipantsTable = "project_participants"
	// ParticipantsInverseTable is the table name for the Participant entity.
	// It exists in this package in order to avoid circular dependency with the "participant" package.
	ParticipantsInverseTable = "participants"
	// OwnerTable is the table the holds the owner relation/edge.
	OwnerTable = "projects"
	// OwnerInverseTable is the table name for the Admin entity.
	// It exists in this package in order to avoid circular dependency with the "admin" package.
	OwnerInverseTable = "admins"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "admin_projects"
)

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
	// 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 project fields.

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

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

View Source
var (
	// ParticipantsPrimaryKey and ParticipantsColumn2 are the table columns denoting the
	// primary key for the participants relation (M2M).
	ParticipantsPrimaryKey = []string{"project_id", "participant_id"}
)

Functions

func And

func And(predicates ...predicate.Project) predicate.Project

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

func CreatedAt

func CreatedAt(v time.Time) predicate.Project

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Project

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Project

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Project

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Project

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Project

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Project

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

func CreatedAtNotIn

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

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

func HasOwner

func HasOwner() predicate.Project

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Admin) predicate.Project

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

func HasParticipants

func HasParticipants() predicate.Project

HasParticipants applies the HasEdge predicate on the "participants" edge.

func HasParticipantsWith

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

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

func HasRuns

func HasRuns() predicate.Project

HasRuns applies the HasEdge predicate on the "runs" edge.

func HasRunsWith

func HasRunsWith(preds ...predicate.Run) predicate.Project

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

func HasTemplates

func HasTemplates() predicate.Project

HasTemplates applies the HasEdge predicate on the "templates" edge.

func HasTemplatesWith

func HasTemplatesWith(preds ...predicate.Template) predicate.Project

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

func ID

func ID(id string) predicate.Project

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id string) predicate.Project

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Project

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Project

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Project

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Project

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Project

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Project

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Project

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Project

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Project

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Project

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Project

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Project

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Project

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Project

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Project

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Project

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Project

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Project

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Project

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Project) predicate.Project

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

func ProjectID

func ProjectID(v string) predicate.Project

ProjectID applies equality check predicate on the "projectID" field. It's identical to ProjectIDEQ.

func ProjectIDContains

func ProjectIDContains(v string) predicate.Project

ProjectIDContains applies the Contains predicate on the "projectID" field.

func ProjectIDContainsFold

func ProjectIDContainsFold(v string) predicate.Project

ProjectIDContainsFold applies the ContainsFold predicate on the "projectID" field.

func ProjectIDEQ

func ProjectIDEQ(v string) predicate.Project

ProjectIDEQ applies the EQ predicate on the "projectID" field.

func ProjectIDEqualFold

func ProjectIDEqualFold(v string) predicate.Project

ProjectIDEqualFold applies the EqualFold predicate on the "projectID" field.

func ProjectIDGT

func ProjectIDGT(v string) predicate.Project

ProjectIDGT applies the GT predicate on the "projectID" field.

func ProjectIDGTE

func ProjectIDGTE(v string) predicate.Project

ProjectIDGTE applies the GTE predicate on the "projectID" field.

func ProjectIDHasPrefix

func ProjectIDHasPrefix(v string) predicate.Project

ProjectIDHasPrefix applies the HasPrefix predicate on the "projectID" field.

func ProjectIDHasSuffix

func ProjectIDHasSuffix(v string) predicate.Project

ProjectIDHasSuffix applies the HasSuffix predicate on the "projectID" field.

func ProjectIDIn

func ProjectIDIn(vs ...string) predicate.Project

ProjectIDIn applies the In predicate on the "projectID" field.

func ProjectIDLT

func ProjectIDLT(v string) predicate.Project

ProjectIDLT applies the LT predicate on the "projectID" field.

func ProjectIDLTE

func ProjectIDLTE(v string) predicate.Project

ProjectIDLTE applies the LTE predicate on the "projectID" field.

func ProjectIDNEQ

func ProjectIDNEQ(v string) predicate.Project

ProjectIDNEQ applies the NEQ predicate on the "projectID" field.

func ProjectIDNotIn

func ProjectIDNotIn(vs ...string) predicate.Project

ProjectIDNotIn applies the NotIn predicate on the "projectID" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Project

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Project

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Project

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Project

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Project

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Project

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Project

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

func UpdatedAtNotIn

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

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