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 DeletedAt(v time.Time) predicate.Project
- func DeletedAtEQ(v time.Time) predicate.Project
- func DeletedAtGT(v time.Time) predicate.Project
- func DeletedAtGTE(v time.Time) predicate.Project
- func DeletedAtIn(vs ...time.Time) predicate.Project
- func DeletedAtIsNil() predicate.Project
- func DeletedAtLT(v time.Time) predicate.Project
- func DeletedAtLTE(v time.Time) predicate.Project
- func DeletedAtNEQ(v time.Time) predicate.Project
- func DeletedAtNotIn(vs ...time.Time) predicate.Project
- func DeletedAtNotNil() predicate.Project
- func Description(v string) predicate.Project
- func DescriptionContains(v string) predicate.Project
- func DescriptionContainsFold(v string) predicate.Project
- func DescriptionEQ(v string) predicate.Project
- func DescriptionEqualFold(v string) predicate.Project
- func DescriptionGT(v string) predicate.Project
- func DescriptionGTE(v string) predicate.Project
- func DescriptionHasPrefix(v string) predicate.Project
- func DescriptionHasSuffix(v string) predicate.Project
- func DescriptionIn(vs ...string) predicate.Project
- func DescriptionIsNil() predicate.Project
- func DescriptionLT(v string) predicate.Project
- func DescriptionLTE(v string) predicate.Project
- func DescriptionNEQ(v string) predicate.Project
- func DescriptionNotIn(vs ...string) predicate.Project
- func DescriptionNotNil() predicate.Project
- func HasOrganization() predicate.Project
- func HasOrganizationWith(preds ...predicate.Organization) predicate.Project
- func HasVersions() predicate.Project
- func HasVersionsWith(preds ...predicate.ProjectVersion) predicate.Project
- func HasWorkflows() predicate.Project
- func HasWorkflowsWith(preds ...predicate.Workflow) predicate.Project
- func ID(id uuid.UUID) predicate.Project
- func IDEQ(id uuid.UUID) predicate.Project
- func IDGT(id uuid.UUID) predicate.Project
- func IDGTE(id uuid.UUID) predicate.Project
- func IDIn(ids ...uuid.UUID) predicate.Project
- func IDLT(id uuid.UUID) predicate.Project
- func IDLTE(id uuid.UUID) predicate.Project
- func IDNEQ(id uuid.UUID) predicate.Project
- func IDNotIn(ids ...uuid.UUID) 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 OrganizationID(v uuid.UUID) predicate.Project
- func OrganizationIDEQ(v uuid.UUID) predicate.Project
- func OrganizationIDIn(vs ...uuid.UUID) predicate.Project
- func OrganizationIDNEQ(v uuid.UUID) predicate.Project
- func OrganizationIDNotIn(vs ...uuid.UUID) predicate.Project
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
- func ByVersions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByVersionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByWorkflows(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByWorkflowsCount(opts ...sql.OrderTermOption) OrderOption
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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // 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" // FieldOrganizationID holds the string denoting the organization_id field in the database. FieldOrganizationID = "organization_id" // EdgeOrganization holds the string denoting the organization edge name in mutations. EdgeOrganization = "organization" // EdgeWorkflows holds the string denoting the workflows edge name in mutations. EdgeWorkflows = "workflows" // EdgeVersions holds the string denoting the versions edge name in mutations. EdgeVersions = "versions" // Table holds the table name of the project in the database. Table = "projects" // OrganizationTable is the table that holds the organization relation/edge. OrganizationTable = "projects" // OrganizationInverseTable is the table name for the Organization entity. // It exists in this package in order to avoid circular dependency with the "organization" package. OrganizationInverseTable = "organizations" // OrganizationColumn is the table column denoting the organization relation/edge. OrganizationColumn = "organization_id" // WorkflowsTable is the table that holds the workflows relation/edge. WorkflowsTable = "workflows" // WorkflowsInverseTable is the table name for the Workflow entity. // It exists in this package in order to avoid circular dependency with the "workflow" package. WorkflowsInverseTable = "workflows" // WorkflowsColumn is the table column denoting the workflows relation/edge. WorkflowsColumn = "project_id" // VersionsTable is the table that holds the versions relation/edge. VersionsTable = "project_versions" // VersionsInverseTable is the table name for the ProjectVersion entity. // It exists in this package in order to avoid circular dependency with the "projectversion" package. VersionsInverseTable = "project_versions" // VersionsColumn is the table column denoting the versions relation/edge. VersionsColumn = "project_id" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldName, FieldDescription, FieldCreatedAt, FieldDeletedAt, FieldOrganizationID, }
Columns holds all SQL columns for project fields.
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 DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func Description ¶ added in v0.98.0
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶ added in v0.98.0
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶ added in v0.98.0
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶ added in v0.98.0
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶ added in v0.98.0
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶ added in v0.98.0
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶ added in v0.98.0
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶ added in v0.98.0
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶ added in v0.98.0
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶ added in v0.98.0
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶ added in v0.98.0
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶ added in v0.98.0
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶ added in v0.98.0
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶ added in v0.98.0
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶ added in v0.98.0
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶ added in v0.98.0
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasOrganization ¶
HasOrganization applies the HasEdge predicate on the "organization" edge.
func HasOrganizationWith ¶
func HasOrganizationWith(preds ...predicate.Organization) predicate.Project
HasOrganizationWith applies the HasEdge predicate on the "organization" edge with a given conditions (other predicates).
func HasVersions ¶ added in v0.97.5
HasVersions applies the HasEdge predicate on the "versions" edge.
func HasVersionsWith ¶ added in v0.97.5
func HasVersionsWith(preds ...predicate.ProjectVersion) predicate.Project
HasVersionsWith applies the HasEdge predicate on the "versions" edge with a given conditions (other predicates).
func HasWorkflows ¶
HasWorkflows applies the HasEdge predicate on the "workflows" edge.
func HasWorkflowsWith ¶
HasWorkflowsWith applies the HasEdge predicate on the "workflows" 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 OrganizationID ¶
OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
func OrganizationIDEQ ¶
OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
func OrganizationIDIn ¶
OrganizationIDIn applies the In predicate on the "organization_id" field.
func OrganizationIDNEQ ¶
OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
func OrganizationIDNotIn ¶
OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Project 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 ByDescription ¶ added in v0.98.0
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOrganizationField ¶
func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrganizationField orders the results by organization field.
func ByOrganizationID ¶
func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
ByOrganizationID orders the results by the organization_id field.
func ByVersions ¶ added in v0.97.5
func ByVersions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByVersions orders the results by versions terms.
func ByVersionsCount ¶ added in v0.97.5
func ByVersionsCount(opts ...sql.OrderTermOption) OrderOption
ByVersionsCount orders the results by versions count.
func ByWorkflows ¶
func ByWorkflows(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByWorkflows orders the results by workflows terms.
func ByWorkflowsCount ¶
func ByWorkflowsCount(opts ...sql.OrderTermOption) OrderOption
ByWorkflowsCount orders the results by workflows count.