Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.CommitmentDependency) predicate.CommitmentDependency
- func CreatedAt(v time.Time) predicate.CommitmentDependency
- func CreatedAtEQ(v time.Time) predicate.CommitmentDependency
- func CreatedAtGT(v time.Time) predicate.CommitmentDependency
- func CreatedAtGTE(v time.Time) predicate.CommitmentDependency
- func CreatedAtIn(vs ...time.Time) predicate.CommitmentDependency
- func CreatedAtLT(v time.Time) predicate.CommitmentDependency
- func CreatedAtLTE(v time.Time) predicate.CommitmentDependency
- func CreatedAtNEQ(v time.Time) predicate.CommitmentDependency
- func CreatedAtNotIn(vs ...time.Time) predicate.CommitmentDependency
- func HasFromCommitment() predicate.CommitmentDependency
- func HasFromCommitmentWith(preds ...predicate.Commitment) predicate.CommitmentDependency
- func HasRelationship() predicate.CommitmentDependency
- func HasRelationshipWith(preds ...predicate.Relationship) predicate.CommitmentDependency
- func HasToCommitment() predicate.CommitmentDependency
- func HasToCommitmentWith(preds ...predicate.Commitment) predicate.CommitmentDependency
- func HasUser() predicate.CommitmentDependency
- func HasUserWith(preds ...predicate.User) predicate.CommitmentDependency
- func HasWorkspace() predicate.CommitmentDependency
- func HasWorkspaceWith(preds ...predicate.RevenueWorkspace) predicate.CommitmentDependency
- func ID(id uuid.UUID) predicate.CommitmentDependency
- func IDEQ(id uuid.UUID) predicate.CommitmentDependency
- func IDGT(id uuid.UUID) predicate.CommitmentDependency
- func IDGTE(id uuid.UUID) predicate.CommitmentDependency
- func IDIn(ids ...uuid.UUID) predicate.CommitmentDependency
- func IDLT(id uuid.UUID) predicate.CommitmentDependency
- func IDLTE(id uuid.UUID) predicate.CommitmentDependency
- func IDNEQ(id uuid.UUID) predicate.CommitmentDependency
- func IDNotIn(ids ...uuid.UUID) predicate.CommitmentDependency
- func Kind(v string) predicate.CommitmentDependency
- func KindContains(v string) predicate.CommitmentDependency
- func KindContainsFold(v string) predicate.CommitmentDependency
- func KindEQ(v string) predicate.CommitmentDependency
- func KindEqualFold(v string) predicate.CommitmentDependency
- func KindGT(v string) predicate.CommitmentDependency
- func KindGTE(v string) predicate.CommitmentDependency
- func KindHasPrefix(v string) predicate.CommitmentDependency
- func KindHasSuffix(v string) predicate.CommitmentDependency
- func KindIn(vs ...string) predicate.CommitmentDependency
- func KindLT(v string) predicate.CommitmentDependency
- func KindLTE(v string) predicate.CommitmentDependency
- func KindNEQ(v string) predicate.CommitmentDependency
- func KindNotIn(vs ...string) predicate.CommitmentDependency
- func Not(p predicate.CommitmentDependency) predicate.CommitmentDependency
- func Or(predicates ...predicate.CommitmentDependency) predicate.CommitmentDependency
- func UpdatedAt(v time.Time) predicate.CommitmentDependency
- func UpdatedAtEQ(v time.Time) predicate.CommitmentDependency
- func UpdatedAtGT(v time.Time) predicate.CommitmentDependency
- func UpdatedAtGTE(v time.Time) predicate.CommitmentDependency
- func UpdatedAtIn(vs ...time.Time) predicate.CommitmentDependency
- func UpdatedAtLT(v time.Time) predicate.CommitmentDependency
- func UpdatedAtLTE(v time.Time) predicate.CommitmentDependency
- func UpdatedAtNEQ(v time.Time) predicate.CommitmentDependency
- func UpdatedAtNotIn(vs ...time.Time) predicate.CommitmentDependency
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByFromCommitmentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKind(opts ...sql.OrderTermOption) OrderOption
- func ByRelationshipField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByToCommitmentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the commitmentdependency type in the database. Label = "commitment_dependency" // 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" // FieldKind holds the string denoting the kind field in the database. FieldKind = "kind" // FieldEvidenceRefs holds the string denoting the evidence_refs field in the database. FieldEvidenceRefs = "evidence_refs" // EdgeWorkspace holds the string denoting the workspace edge name in mutations. EdgeWorkspace = "workspace" // EdgeRelationship holds the string denoting the relationship edge name in mutations. EdgeRelationship = "relationship" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeFromCommitment holds the string denoting the from_commitment edge name in mutations. EdgeFromCommitment = "from_commitment" // EdgeToCommitment holds the string denoting the to_commitment edge name in mutations. EdgeToCommitment = "to_commitment" // Table holds the table name of the commitmentdependency in the database. Table = "commitment_dependencies" // WorkspaceTable is the table that holds the workspace relation/edge. WorkspaceTable = "commitment_dependencies" // WorkspaceInverseTable is the table name for the RevenueWorkspace entity. // It exists in this package in order to avoid circular dependency with the "revenueworkspace" package. WorkspaceInverseTable = "revenue_workspaces" // WorkspaceColumn is the table column denoting the workspace relation/edge. WorkspaceColumn = "revenue_workspace_id" // RelationshipTable is the table that holds the relationship relation/edge. RelationshipTable = "commitment_dependencies" // RelationshipInverseTable is the table name for the Relationship entity. // It exists in this package in order to avoid circular dependency with the "relationship" package. RelationshipInverseTable = "relationships" // RelationshipColumn is the table column denoting the relationship relation/edge. RelationshipColumn = "relationship_id" // UserTable is the table that holds the user relation/edge. UserTable = "commitment_dependencies" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_commitment_dependencies" // FromCommitmentTable is the table that holds the from_commitment relation/edge. FromCommitmentTable = "commitment_dependencies" // FromCommitmentInverseTable is the table name for the Commitment entity. // It exists in this package in order to avoid circular dependency with the "commitment" package. FromCommitmentInverseTable = "commitments" // FromCommitmentColumn is the table column denoting the from_commitment relation/edge. FromCommitmentColumn = "from_commitment_id" // ToCommitmentTable is the table that holds the to_commitment relation/edge. ToCommitmentTable = "commitment_dependencies" // ToCommitmentInverseTable is the table name for the Commitment entity. // It exists in this package in order to avoid circular dependency with the "commitment" package. ToCommitmentInverseTable = "commitments" // ToCommitmentColumn is the table column denoting the to_commitment relation/edge. ToCommitmentColumn = "to_commitment_id" )
Variables ¶
var ( Hooks [1]ent.Hook Policy ent.Policy // 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 // KindValidator is a validator for the "kind" field. It is called by the builders before save. KindValidator func(string) error // DefaultEvidenceRefs holds the default value on creation for the "evidence_refs" field. DefaultEvidenceRefs []string // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/Oppulence-Engineering/rowboat/apps/rowboat-api/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldKind, FieldEvidenceRefs, }
Columns holds all SQL columns for commitmentdependency fields.
var ForeignKeys = []string{
"from_commitment_id",
"to_commitment_id",
"relationship_id",
"revenue_workspace_id",
"user_commitment_dependencies",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "commitment_dependencies" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.CommitmentDependency) predicate.CommitmentDependency
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.CommitmentDependency
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.CommitmentDependency
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.CommitmentDependency
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.CommitmentDependency
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.CommitmentDependency
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.CommitmentDependency
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.CommitmentDependency
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.CommitmentDependency
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.CommitmentDependency
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasFromCommitment ¶
func HasFromCommitment() predicate.CommitmentDependency
HasFromCommitment applies the HasEdge predicate on the "from_commitment" edge.
func HasFromCommitmentWith ¶
func HasFromCommitmentWith(preds ...predicate.Commitment) predicate.CommitmentDependency
HasFromCommitmentWith applies the HasEdge predicate on the "from_commitment" edge with a given conditions (other predicates).
func HasRelationship ¶
func HasRelationship() predicate.CommitmentDependency
HasRelationship applies the HasEdge predicate on the "relationship" edge.
func HasRelationshipWith ¶
func HasRelationshipWith(preds ...predicate.Relationship) predicate.CommitmentDependency
HasRelationshipWith applies the HasEdge predicate on the "relationship" edge with a given conditions (other predicates).
func HasToCommitment ¶
func HasToCommitment() predicate.CommitmentDependency
HasToCommitment applies the HasEdge predicate on the "to_commitment" edge.
func HasToCommitmentWith ¶
func HasToCommitmentWith(preds ...predicate.Commitment) predicate.CommitmentDependency
HasToCommitmentWith applies the HasEdge predicate on the "to_commitment" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.CommitmentDependency
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.CommitmentDependency
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func HasWorkspace ¶
func HasWorkspace() predicate.CommitmentDependency
HasWorkspace applies the HasEdge predicate on the "workspace" edge.
func HasWorkspaceWith ¶
func HasWorkspaceWith(preds ...predicate.RevenueWorkspace) predicate.CommitmentDependency
HasWorkspaceWith applies the HasEdge predicate on the "workspace" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.CommitmentDependency
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.CommitmentDependency
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.CommitmentDependency
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.CommitmentDependency
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.CommitmentDependency
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.CommitmentDependency
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.CommitmentDependency
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.CommitmentDependency
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.CommitmentDependency
IDNotIn applies the NotIn predicate on the ID field.
func Kind ¶
func Kind(v string) predicate.CommitmentDependency
Kind applies equality check predicate on the "kind" field. It's identical to KindEQ.
func KindContains ¶
func KindContains(v string) predicate.CommitmentDependency
KindContains applies the Contains predicate on the "kind" field.
func KindContainsFold ¶
func KindContainsFold(v string) predicate.CommitmentDependency
KindContainsFold applies the ContainsFold predicate on the "kind" field.
func KindEQ ¶
func KindEQ(v string) predicate.CommitmentDependency
KindEQ applies the EQ predicate on the "kind" field.
func KindEqualFold ¶
func KindEqualFold(v string) predicate.CommitmentDependency
KindEqualFold applies the EqualFold predicate on the "kind" field.
func KindGT ¶
func KindGT(v string) predicate.CommitmentDependency
KindGT applies the GT predicate on the "kind" field.
func KindGTE ¶
func KindGTE(v string) predicate.CommitmentDependency
KindGTE applies the GTE predicate on the "kind" field.
func KindHasPrefix ¶
func KindHasPrefix(v string) predicate.CommitmentDependency
KindHasPrefix applies the HasPrefix predicate on the "kind" field.
func KindHasSuffix ¶
func KindHasSuffix(v string) predicate.CommitmentDependency
KindHasSuffix applies the HasSuffix predicate on the "kind" field.
func KindIn ¶
func KindIn(vs ...string) predicate.CommitmentDependency
KindIn applies the In predicate on the "kind" field.
func KindLT ¶
func KindLT(v string) predicate.CommitmentDependency
KindLT applies the LT predicate on the "kind" field.
func KindLTE ¶
func KindLTE(v string) predicate.CommitmentDependency
KindLTE applies the LTE predicate on the "kind" field.
func KindNEQ ¶
func KindNEQ(v string) predicate.CommitmentDependency
KindNEQ applies the NEQ predicate on the "kind" field.
func KindNotIn ¶
func KindNotIn(vs ...string) predicate.CommitmentDependency
KindNotIn applies the NotIn predicate on the "kind" field.
func Not ¶
func Not(p predicate.CommitmentDependency) predicate.CommitmentDependency
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.CommitmentDependency) predicate.CommitmentDependency
Or groups predicates with the OR operator between them.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.CommitmentDependency
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.CommitmentDependency
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.CommitmentDependency
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.CommitmentDependency
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.CommitmentDependency
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.CommitmentDependency
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.CommitmentDependency
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.CommitmentDependency
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.CommitmentDependency
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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the CommitmentDependency queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByFromCommitmentField ¶
func ByFromCommitmentField(field string, opts ...sql.OrderTermOption) OrderOption
ByFromCommitmentField orders the results by from_commitment field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKind ¶
func ByKind(opts ...sql.OrderTermOption) OrderOption
ByKind orders the results by the kind field.
func ByRelationshipField ¶
func ByRelationshipField(field string, opts ...sql.OrderTermOption) OrderOption
ByRelationshipField orders the results by relationship field.
func ByToCommitmentField ¶
func ByToCommitmentField(field string, opts ...sql.OrderTermOption) OrderOption
ByToCommitmentField orders the results by to_commitment field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByWorkspaceField ¶
func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption
ByWorkspaceField orders the results by workspace field.