Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ProjectVersion) predicate.ProjectVersion
- func CreatedAt(v time.Time) predicate.ProjectVersion
- func CreatedAtEQ(v time.Time) predicate.ProjectVersion
- func CreatedAtGT(v time.Time) predicate.ProjectVersion
- func CreatedAtGTE(v time.Time) predicate.ProjectVersion
- func CreatedAtIn(vs ...time.Time) predicate.ProjectVersion
- func CreatedAtLT(v time.Time) predicate.ProjectVersion
- func CreatedAtLTE(v time.Time) predicate.ProjectVersion
- func CreatedAtNEQ(v time.Time) predicate.ProjectVersion
- func CreatedAtNotIn(vs ...time.Time) predicate.ProjectVersion
- func DeletedAt(v time.Time) predicate.ProjectVersion
- func DeletedAtEQ(v time.Time) predicate.ProjectVersion
- func DeletedAtGT(v time.Time) predicate.ProjectVersion
- func DeletedAtGTE(v time.Time) predicate.ProjectVersion
- func DeletedAtIn(vs ...time.Time) predicate.ProjectVersion
- func DeletedAtIsNil() predicate.ProjectVersion
- func DeletedAtLT(v time.Time) predicate.ProjectVersion
- func DeletedAtLTE(v time.Time) predicate.ProjectVersion
- func DeletedAtNEQ(v time.Time) predicate.ProjectVersion
- func DeletedAtNotIn(vs ...time.Time) predicate.ProjectVersion
- func DeletedAtNotNil() predicate.ProjectVersion
- func HasProject() predicate.ProjectVersion
- func HasProjectWith(preds ...predicate.Project) predicate.ProjectVersion
- func HasRuns() predicate.ProjectVersion
- func HasRunsWith(preds ...predicate.WorkflowRun) predicate.ProjectVersion
- func ID(id uuid.UUID) predicate.ProjectVersion
- func IDEQ(id uuid.UUID) predicate.ProjectVersion
- func IDGT(id uuid.UUID) predicate.ProjectVersion
- func IDGTE(id uuid.UUID) predicate.ProjectVersion
- func IDIn(ids ...uuid.UUID) predicate.ProjectVersion
- func IDLT(id uuid.UUID) predicate.ProjectVersion
- func IDLTE(id uuid.UUID) predicate.ProjectVersion
- func IDNEQ(id uuid.UUID) predicate.ProjectVersion
- func IDNotIn(ids ...uuid.UUID) predicate.ProjectVersion
- func Not(p predicate.ProjectVersion) predicate.ProjectVersion
- func Or(predicates ...predicate.ProjectVersion) predicate.ProjectVersion
- func Prerelease(v bool) predicate.ProjectVersion
- func PrereleaseEQ(v bool) predicate.ProjectVersion
- func PrereleaseNEQ(v bool) predicate.ProjectVersion
- func ProjectID(v uuid.UUID) predicate.ProjectVersion
- func ProjectIDEQ(v uuid.UUID) predicate.ProjectVersion
- func ProjectIDIn(vs ...uuid.UUID) predicate.ProjectVersion
- func ProjectIDNEQ(v uuid.UUID) predicate.ProjectVersion
- func ProjectIDNotIn(vs ...uuid.UUID) predicate.ProjectVersion
- func ValidColumn(column string) bool
- func Version(v string) predicate.ProjectVersion
- func VersionContains(v string) predicate.ProjectVersion
- func VersionContainsFold(v string) predicate.ProjectVersion
- func VersionEQ(v string) predicate.ProjectVersion
- func VersionEqualFold(v string) predicate.ProjectVersion
- func VersionGT(v string) predicate.ProjectVersion
- func VersionGTE(v string) predicate.ProjectVersion
- func VersionHasPrefix(v string) predicate.ProjectVersion
- func VersionHasSuffix(v string) predicate.ProjectVersion
- func VersionIn(vs ...string) predicate.ProjectVersion
- func VersionLT(v string) predicate.ProjectVersion
- func VersionLTE(v string) predicate.ProjectVersion
- func VersionNEQ(v string) predicate.ProjectVersion
- func VersionNotIn(vs ...string) predicate.ProjectVersion
- func WorkflowRunCount(v int) predicate.ProjectVersion
- func WorkflowRunCountEQ(v int) predicate.ProjectVersion
- func WorkflowRunCountGT(v int) predicate.ProjectVersion
- func WorkflowRunCountGTE(v int) predicate.ProjectVersion
- func WorkflowRunCountIn(vs ...int) predicate.ProjectVersion
- func WorkflowRunCountLT(v int) predicate.ProjectVersion
- func WorkflowRunCountLTE(v int) predicate.ProjectVersion
- func WorkflowRunCountNEQ(v int) predicate.ProjectVersion
- func WorkflowRunCountNotIn(vs ...int) predicate.ProjectVersion
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPrerelease(opts ...sql.OrderTermOption) OrderOption
- func ByProjectField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProjectID(opts ...sql.OrderTermOption) OrderOption
- func ByRuns(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRunsCount(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
- func ByWorkflowRunCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the projectversion type in the database. Label = "project_version" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldProjectID holds the string denoting the project_id field in the database. FieldProjectID = "project_id" // FieldPrerelease holds the string denoting the prerelease field in the database. FieldPrerelease = "prerelease" // FieldWorkflowRunCount holds the string denoting the workflow_run_count field in the database. FieldWorkflowRunCount = "workflow_run_count" // EdgeProject holds the string denoting the project edge name in mutations. EdgeProject = "project" // EdgeRuns holds the string denoting the runs edge name in mutations. EdgeRuns = "runs" // Table holds the table name of the projectversion in the database. Table = "project_versions" // ProjectTable is the table that holds the project relation/edge. ProjectTable = "project_versions" // ProjectInverseTable is the table name for the Project entity. // It exists in this package in order to avoid circular dependency with the "project" package. ProjectInverseTable = "projects" // ProjectColumn is the table column denoting the project relation/edge. ProjectColumn = "project_id" // RunsTable is the table that holds the runs relation/edge. RunsTable = "workflow_runs" // RunsInverseTable is the table name for the WorkflowRun entity. // It exists in this package in order to avoid circular dependency with the "workflowrun" package. RunsInverseTable = "workflow_runs" // RunsColumn is the table column denoting the runs relation/edge. RunsColumn = "version_id" )
Variables ¶
var ( // DefaultVersion holds the default value on creation for the "version" field. DefaultVersion string // VersionValidator is a validator for the "version" field. It is called by the builders before save. VersionValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultPrerelease holds the default value on creation for the "prerelease" field. DefaultPrerelease bool // DefaultWorkflowRunCount holds the default value on creation for the "workflow_run_count" field. DefaultWorkflowRunCount int // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldVersion, FieldCreatedAt, FieldDeletedAt, FieldProjectID, FieldPrerelease, FieldWorkflowRunCount, }
Columns holds all SQL columns for projectversion fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ProjectVersion) predicate.ProjectVersion
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.ProjectVersion
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.ProjectVersion
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.ProjectVersion
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.ProjectVersion
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.ProjectVersion
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.ProjectVersion
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.ProjectVersion
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.ProjectVersion
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.ProjectVersion
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.ProjectVersion
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.ProjectVersion
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.ProjectVersion
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.ProjectVersion
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.ProjectVersion
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.ProjectVersion
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.ProjectVersion
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.ProjectVersion
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.ProjectVersion
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.ProjectVersion
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.ProjectVersion
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func HasProject ¶
func HasProject() predicate.ProjectVersion
HasProject applies the HasEdge predicate on the "project" edge.
func HasProjectWith ¶
func HasProjectWith(preds ...predicate.Project) predicate.ProjectVersion
HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates).
func HasRuns ¶
func HasRuns() predicate.ProjectVersion
HasRuns applies the HasEdge predicate on the "runs" edge.
func HasRunsWith ¶
func HasRunsWith(preds ...predicate.WorkflowRun) predicate.ProjectVersion
HasRunsWith applies the HasEdge predicate on the "runs" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.ProjectVersion
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.ProjectVersion
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.ProjectVersion
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.ProjectVersion
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.ProjectVersion
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.ProjectVersion
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.ProjectVersion
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.ProjectVersion
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.ProjectVersion
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.ProjectVersion) predicate.ProjectVersion
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ProjectVersion) predicate.ProjectVersion
Or groups predicates with the OR operator between them.
func Prerelease ¶ added in v0.98.0
func Prerelease(v bool) predicate.ProjectVersion
Prerelease applies equality check predicate on the "prerelease" field. It's identical to PrereleaseEQ.
func PrereleaseEQ ¶ added in v0.98.0
func PrereleaseEQ(v bool) predicate.ProjectVersion
PrereleaseEQ applies the EQ predicate on the "prerelease" field.
func PrereleaseNEQ ¶ added in v0.98.0
func PrereleaseNEQ(v bool) predicate.ProjectVersion
PrereleaseNEQ applies the NEQ predicate on the "prerelease" field.
func ProjectID ¶
func ProjectID(v uuid.UUID) predicate.ProjectVersion
ProjectID applies equality check predicate on the "project_id" field. It's identical to ProjectIDEQ.
func ProjectIDEQ ¶
func ProjectIDEQ(v uuid.UUID) predicate.ProjectVersion
ProjectIDEQ applies the EQ predicate on the "project_id" field.
func ProjectIDIn ¶
func ProjectIDIn(vs ...uuid.UUID) predicate.ProjectVersion
ProjectIDIn applies the In predicate on the "project_id" field.
func ProjectIDNEQ ¶
func ProjectIDNEQ(v uuid.UUID) predicate.ProjectVersion
ProjectIDNEQ applies the NEQ predicate on the "project_id" field.
func ProjectIDNotIn ¶
func ProjectIDNotIn(vs ...uuid.UUID) predicate.ProjectVersion
ProjectIDNotIn applies the NotIn predicate on the "project_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
func Version(v string) predicate.ProjectVersion
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionContains ¶
func VersionContains(v string) predicate.ProjectVersion
VersionContains applies the Contains predicate on the "version" field.
func VersionContainsFold ¶
func VersionContainsFold(v string) predicate.ProjectVersion
VersionContainsFold applies the ContainsFold predicate on the "version" field.
func VersionEQ ¶
func VersionEQ(v string) predicate.ProjectVersion
VersionEQ applies the EQ predicate on the "version" field.
func VersionEqualFold ¶
func VersionEqualFold(v string) predicate.ProjectVersion
VersionEqualFold applies the EqualFold predicate on the "version" field.
func VersionGT ¶
func VersionGT(v string) predicate.ProjectVersion
VersionGT applies the GT predicate on the "version" field.
func VersionGTE ¶
func VersionGTE(v string) predicate.ProjectVersion
VersionGTE applies the GTE predicate on the "version" field.
func VersionHasPrefix ¶
func VersionHasPrefix(v string) predicate.ProjectVersion
VersionHasPrefix applies the HasPrefix predicate on the "version" field.
func VersionHasSuffix ¶
func VersionHasSuffix(v string) predicate.ProjectVersion
VersionHasSuffix applies the HasSuffix predicate on the "version" field.
func VersionIn ¶
func VersionIn(vs ...string) predicate.ProjectVersion
VersionIn applies the In predicate on the "version" field.
func VersionLT ¶
func VersionLT(v string) predicate.ProjectVersion
VersionLT applies the LT predicate on the "version" field.
func VersionLTE ¶
func VersionLTE(v string) predicate.ProjectVersion
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
func VersionNEQ(v string) predicate.ProjectVersion
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
func VersionNotIn(vs ...string) predicate.ProjectVersion
VersionNotIn applies the NotIn predicate on the "version" field.
func WorkflowRunCount ¶ added in v0.135.0
func WorkflowRunCount(v int) predicate.ProjectVersion
WorkflowRunCount applies equality check predicate on the "workflow_run_count" field. It's identical to WorkflowRunCountEQ.
func WorkflowRunCountEQ ¶ added in v0.135.0
func WorkflowRunCountEQ(v int) predicate.ProjectVersion
WorkflowRunCountEQ applies the EQ predicate on the "workflow_run_count" field.
func WorkflowRunCountGT ¶ added in v0.135.0
func WorkflowRunCountGT(v int) predicate.ProjectVersion
WorkflowRunCountGT applies the GT predicate on the "workflow_run_count" field.
func WorkflowRunCountGTE ¶ added in v0.135.0
func WorkflowRunCountGTE(v int) predicate.ProjectVersion
WorkflowRunCountGTE applies the GTE predicate on the "workflow_run_count" field.
func WorkflowRunCountIn ¶ added in v0.135.0
func WorkflowRunCountIn(vs ...int) predicate.ProjectVersion
WorkflowRunCountIn applies the In predicate on the "workflow_run_count" field.
func WorkflowRunCountLT ¶ added in v0.135.0
func WorkflowRunCountLT(v int) predicate.ProjectVersion
WorkflowRunCountLT applies the LT predicate on the "workflow_run_count" field.
func WorkflowRunCountLTE ¶ added in v0.135.0
func WorkflowRunCountLTE(v int) predicate.ProjectVersion
WorkflowRunCountLTE applies the LTE predicate on the "workflow_run_count" field.
func WorkflowRunCountNEQ ¶ added in v0.135.0
func WorkflowRunCountNEQ(v int) predicate.ProjectVersion
WorkflowRunCountNEQ applies the NEQ predicate on the "workflow_run_count" field.
func WorkflowRunCountNotIn ¶ added in v0.135.0
func WorkflowRunCountNotIn(vs ...int) predicate.ProjectVersion
WorkflowRunCountNotIn applies the NotIn predicate on the "workflow_run_count" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the ProjectVersion queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPrerelease ¶ added in v0.98.0
func ByPrerelease(opts ...sql.OrderTermOption) OrderOption
ByPrerelease orders the results by the prerelease field.
func ByProjectField ¶
func ByProjectField(field string, opts ...sql.OrderTermOption) OrderOption
ByProjectField orders the results by project field.
func ByProjectID ¶
func ByProjectID(opts ...sql.OrderTermOption) OrderOption
ByProjectID orders the results by the project_id field.
func ByRuns ¶
func ByRuns(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRuns orders the results by runs terms.
func ByRunsCount ¶
func ByRunsCount(opts ...sql.OrderTermOption) OrderOption
ByRunsCount orders the results by runs count.
func ByVersion ¶
func ByVersion(opts ...sql.OrderTermOption) OrderOption
ByVersion orders the results by the version field.
func ByWorkflowRunCount ¶ added in v0.135.0
func ByWorkflowRunCount(opts ...sql.OrderTermOption) OrderOption
ByWorkflowRunCount orders the results by the workflow_run_count field.