Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Project) predicate.Project
- func CreatedAt(v time.Time) predicate.Project
- func CreatedAtEQ(v time.Time) predicate.Project
- func CreatedAtGT(v time.Time) predicate.Project
- func CreatedAtGTE(v time.Time) predicate.Project
- func CreatedAtIn(vs ...time.Time) predicate.Project
- func CreatedAtLT(v time.Time) predicate.Project
- func CreatedAtLTE(v time.Time) predicate.Project
- func CreatedAtNEQ(v time.Time) predicate.Project
- func CreatedAtNotIn(vs ...time.Time) predicate.Project
- func HasOwner() predicate.Project
- func HasOwnerWith(preds ...predicate.Admin) predicate.Project
- func HasParticipants() predicate.Project
- func HasParticipantsWith(preds ...predicate.Participant) predicate.Project
- func HasRuns() predicate.Project
- func HasRunsWith(preds ...predicate.Run) predicate.Project
- func HasTemplates() predicate.Project
- func HasTemplatesWith(preds ...predicate.Template) predicate.Project
- func ID(id string) predicate.Project
- func IDEQ(id string) predicate.Project
- func IDGT(id string) predicate.Project
- func IDGTE(id string) predicate.Project
- func IDIn(ids ...string) predicate.Project
- func IDLT(id string) predicate.Project
- func IDLTE(id string) predicate.Project
- func IDNEQ(id string) predicate.Project
- func IDNotIn(ids ...string) predicate.Project
- func Name(v string) predicate.Project
- func NameContains(v string) predicate.Project
- func NameContainsFold(v string) predicate.Project
- func NameEQ(v string) predicate.Project
- func NameEqualFold(v string) predicate.Project
- func NameGT(v string) predicate.Project
- func NameGTE(v string) predicate.Project
- func NameHasPrefix(v string) predicate.Project
- func NameHasSuffix(v string) predicate.Project
- func NameIn(vs ...string) predicate.Project
- func NameLT(v string) predicate.Project
- func NameLTE(v string) predicate.Project
- func NameNEQ(v string) predicate.Project
- func NameNotIn(vs ...string) predicate.Project
- func Not(p predicate.Project) predicate.Project
- func Or(predicates ...predicate.Project) predicate.Project
- func ProjectID(v string) predicate.Project
- func ProjectIDContains(v string) predicate.Project
- func ProjectIDContainsFold(v string) predicate.Project
- func ProjectIDEQ(v string) predicate.Project
- func ProjectIDEqualFold(v string) predicate.Project
- func ProjectIDGT(v string) predicate.Project
- func ProjectIDGTE(v string) predicate.Project
- func ProjectIDHasPrefix(v string) predicate.Project
- func ProjectIDHasSuffix(v string) predicate.Project
- func ProjectIDIn(vs ...string) predicate.Project
- func ProjectIDLT(v string) predicate.Project
- func ProjectIDLTE(v string) predicate.Project
- func ProjectIDNEQ(v string) predicate.Project
- func ProjectIDNotIn(vs ...string) predicate.Project
- func UpdatedAt(v time.Time) predicate.Project
- func UpdatedAtEQ(v time.Time) predicate.Project
- func UpdatedAtGT(v time.Time) predicate.Project
- func UpdatedAtGTE(v time.Time) predicate.Project
- func UpdatedAtIn(vs ...time.Time) predicate.Project
- func UpdatedAtLT(v time.Time) predicate.Project
- func UpdatedAtLTE(v time.Time) predicate.Project
- func UpdatedAtNEQ(v time.Time) predicate.Project
- func UpdatedAtNotIn(vs ...time.Time) predicate.Project
- func ValidColumn(column string) bool
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldProjectID, FieldName, }
Columns holds all SQL columns for project fields.
var ForeignKeys = []string{
"admin_projects",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Project type.
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 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 HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasParticipants ¶
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 HasRunsWith ¶
HasRunsWith applies the HasEdge predicate on the "runs" edge with a given conditions (other predicates).
func HasTemplates ¶
HasTemplates applies the HasEdge predicate on the "templates" edge.
func HasTemplatesWith ¶
HasTemplatesWith applies the HasEdge predicate on the "templates" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ProjectID ¶
ProjectID applies equality check predicate on the "projectID" field. It's identical to ProjectIDEQ.
func ProjectIDContains ¶
ProjectIDContains applies the Contains predicate on the "projectID" field.
func ProjectIDContainsFold ¶
ProjectIDContainsFold applies the ContainsFold predicate on the "projectID" field.
func ProjectIDEQ ¶
ProjectIDEQ applies the EQ predicate on the "projectID" field.
func ProjectIDEqualFold ¶
ProjectIDEqualFold applies the EqualFold predicate on the "projectID" field.
func ProjectIDGT ¶
ProjectIDGT applies the GT predicate on the "projectID" field.
func ProjectIDGTE ¶
ProjectIDGTE applies the GTE predicate on the "projectID" field.
func ProjectIDHasPrefix ¶
ProjectIDHasPrefix applies the HasPrefix predicate on the "projectID" field.
func ProjectIDHasSuffix ¶
ProjectIDHasSuffix applies the HasSuffix predicate on the "projectID" field.
func ProjectIDIn ¶
ProjectIDIn applies the In predicate on the "projectID" field.
func ProjectIDLT ¶
ProjectIDLT applies the LT predicate on the "projectID" field.
func ProjectIDLTE ¶
ProjectIDLTE applies the LTE predicate on the "projectID" field.
func ProjectIDNEQ ¶
ProjectIDNEQ applies the NEQ predicate on the "projectID" field.
func ProjectIDNotIn ¶
ProjectIDNotIn applies the NotIn predicate on the "projectID" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.