Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.RegisteredContract) predicate.RegisteredContract
- func Contract(v []byte) predicate.RegisteredContract
- func ContractEQ(v []byte) predicate.RegisteredContract
- func ContractGT(v []byte) predicate.RegisteredContract
- func ContractGTE(v []byte) predicate.RegisteredContract
- func ContractIn(vs ...[]byte) predicate.RegisteredContract
- func ContractLT(v []byte) predicate.RegisteredContract
- func ContractLTE(v []byte) predicate.RegisteredContract
- func ContractNEQ(v []byte) predicate.RegisteredContract
- func ContractNotIn(vs ...[]byte) predicate.RegisteredContract
- func CreatedAt(v time.Time) predicate.RegisteredContract
- func CreatedAtEQ(v time.Time) predicate.RegisteredContract
- func CreatedAtGT(v time.Time) predicate.RegisteredContract
- func CreatedAtGTE(v time.Time) predicate.RegisteredContract
- func CreatedAtIn(vs ...time.Time) predicate.RegisteredContract
- func CreatedAtLT(v time.Time) predicate.RegisteredContract
- func CreatedAtLTE(v time.Time) predicate.RegisteredContract
- func CreatedAtNEQ(v time.Time) predicate.RegisteredContract
- func CreatedAtNotIn(vs ...time.Time) predicate.RegisteredContract
- func Format(v int) predicate.RegisteredContract
- func FormatEQ(v int) predicate.RegisteredContract
- func FormatGT(v int) predicate.RegisteredContract
- func FormatGTE(v int) predicate.RegisteredContract
- func FormatIn(vs ...int) predicate.RegisteredContract
- func FormatLT(v int) predicate.RegisteredContract
- func FormatLTE(v int) predicate.RegisteredContract
- func FormatNEQ(v int) predicate.RegisteredContract
- func FormatNotIn(vs ...int) predicate.RegisteredContract
- func HasCompatibilityResultsAsProvider() predicate.RegisteredContract
- func HasCompatibilityResultsAsProviderWith(preds ...predicate.CompatibilityResult) predicate.RegisteredContract
- func HasCompatibilityResultsAsRequirement() predicate.RegisteredContract
- func HasCompatibilityResultsAsRequirementWith(preds ...predicate.CompatibilityResult) predicate.RegisteredContract
- func HasProviders() predicate.RegisteredContract
- func HasProvidersWith(preds ...predicate.RegisteredProvider) predicate.RegisteredContract
- func ID(id string) predicate.RegisteredContract
- func IDContainsFold(id string) predicate.RegisteredContract
- func IDEQ(id string) predicate.RegisteredContract
- func IDEqualFold(id string) predicate.RegisteredContract
- func IDGT(id string) predicate.RegisteredContract
- func IDGTE(id string) predicate.RegisteredContract
- func IDIn(ids ...string) predicate.RegisteredContract
- func IDLT(id string) predicate.RegisteredContract
- func IDLTE(id string) predicate.RegisteredContract
- func IDNEQ(id string) predicate.RegisteredContract
- func IDNotIn(ids ...string) predicate.RegisteredContract
- func Not(p predicate.RegisteredContract) predicate.RegisteredContract
- func Or(predicates ...predicate.RegisteredContract) predicate.RegisteredContract
- func ValidColumn(column string) bool
- type OrderOption
- func ByCompatibilityResultsAsProvider(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCompatibilityResultsAsProviderCount(opts ...sql.OrderTermOption) OrderOption
- func ByCompatibilityResultsAsRequirement(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCompatibilityResultsAsRequirementCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByFormat(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByProviders(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProvidersCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the registeredcontract type in the database. Label = "registered_contract" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldFormat holds the string denoting the format field in the database. FieldFormat = "format" // FieldContract holds the string denoting the contract field in the database. FieldContract = "contract" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeProviders holds the string denoting the providers edge name in mutations. EdgeProviders = "providers" // EdgeCompatibilityResultsAsRequirement holds the string denoting the compatibility_results_as_requirement edge name in mutations. EdgeCompatibilityResultsAsRequirement = "compatibility_results_as_requirement" // EdgeCompatibilityResultsAsProvider holds the string denoting the compatibility_results_as_provider edge name in mutations. EdgeCompatibilityResultsAsProvider = "compatibility_results_as_provider" // Table holds the table name of the registeredcontract in the database. Table = "registered_contracts" // ProvidersTable is the table that holds the providers relation/edge. ProvidersTable = "registered_providers" // ProvidersInverseTable is the table name for the RegisteredProvider entity. // It exists in this package in order to avoid circular dependency with the "registeredprovider" package. ProvidersInverseTable = "registered_providers" // ProvidersColumn is the table column denoting the providers relation/edge. ProvidersColumn = "contract_id" // CompatibilityResultsAsRequirementTable is the table that holds the compatibility_results_as_requirement relation/edge. CompatibilityResultsAsRequirementTable = "compatibility_results" // CompatibilityResultsAsRequirementInverseTable is the table name for the CompatibilityResult entity. // It exists in this package in order to avoid circular dependency with the "compatibilityresult" package. CompatibilityResultsAsRequirementInverseTable = "compatibility_results" // CompatibilityResultsAsRequirementColumn is the table column denoting the compatibility_results_as_requirement relation/edge. CompatibilityResultsAsRequirementColumn = "requirement_contract_id" // CompatibilityResultsAsProviderTable is the table that holds the compatibility_results_as_provider relation/edge. CompatibilityResultsAsProviderTable = "compatibility_results" // CompatibilityResultsAsProviderInverseTable is the table name for the CompatibilityResult entity. // It exists in this package in order to avoid circular dependency with the "compatibilityresult" package. CompatibilityResultsAsProviderInverseTable = "compatibility_results" // CompatibilityResultsAsProviderColumn is the table column denoting the compatibility_results_as_provider relation/edge. CompatibilityResultsAsProviderColumn = "provider_contract_id" )
Variables ¶
var ( // ContractValidator is a validator for the "contract" field. It is called by the builders before save. ContractValidator func([]byte) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt 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, FieldFormat, FieldContract, FieldCreatedAt, }
Columns holds all SQL columns for registeredcontract fields.
Functions ¶
func And ¶
func And(predicates ...predicate.RegisteredContract) predicate.RegisteredContract
And groups predicates with the AND operator between them.
func Contract ¶
func Contract(v []byte) predicate.RegisteredContract
Contract applies equality check predicate on the "contract" field. It's identical to ContractEQ.
func ContractEQ ¶
func ContractEQ(v []byte) predicate.RegisteredContract
ContractEQ applies the EQ predicate on the "contract" field.
func ContractGT ¶
func ContractGT(v []byte) predicate.RegisteredContract
ContractGT applies the GT predicate on the "contract" field.
func ContractGTE ¶
func ContractGTE(v []byte) predicate.RegisteredContract
ContractGTE applies the GTE predicate on the "contract" field.
func ContractIn ¶
func ContractIn(vs ...[]byte) predicate.RegisteredContract
ContractIn applies the In predicate on the "contract" field.
func ContractLT ¶
func ContractLT(v []byte) predicate.RegisteredContract
ContractLT applies the LT predicate on the "contract" field.
func ContractLTE ¶
func ContractLTE(v []byte) predicate.RegisteredContract
ContractLTE applies the LTE predicate on the "contract" field.
func ContractNEQ ¶
func ContractNEQ(v []byte) predicate.RegisteredContract
ContractNEQ applies the NEQ predicate on the "contract" field.
func ContractNotIn ¶
func ContractNotIn(vs ...[]byte) predicate.RegisteredContract
ContractNotIn applies the NotIn predicate on the "contract" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.RegisteredContract
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.RegisteredContract
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.RegisteredContract
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.RegisteredContract
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.RegisteredContract
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.RegisteredContract
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.RegisteredContract
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.RegisteredContract
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.RegisteredContract
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Format ¶
func Format(v int) predicate.RegisteredContract
Format applies equality check predicate on the "format" field. It's identical to FormatEQ.
func FormatEQ ¶
func FormatEQ(v int) predicate.RegisteredContract
FormatEQ applies the EQ predicate on the "format" field.
func FormatGT ¶
func FormatGT(v int) predicate.RegisteredContract
FormatGT applies the GT predicate on the "format" field.
func FormatGTE ¶
func FormatGTE(v int) predicate.RegisteredContract
FormatGTE applies the GTE predicate on the "format" field.
func FormatIn ¶
func FormatIn(vs ...int) predicate.RegisteredContract
FormatIn applies the In predicate on the "format" field.
func FormatLT ¶
func FormatLT(v int) predicate.RegisteredContract
FormatLT applies the LT predicate on the "format" field.
func FormatLTE ¶
func FormatLTE(v int) predicate.RegisteredContract
FormatLTE applies the LTE predicate on the "format" field.
func FormatNEQ ¶
func FormatNEQ(v int) predicate.RegisteredContract
FormatNEQ applies the NEQ predicate on the "format" field.
func FormatNotIn ¶
func FormatNotIn(vs ...int) predicate.RegisteredContract
FormatNotIn applies the NotIn predicate on the "format" field.
func HasCompatibilityResultsAsProvider ¶
func HasCompatibilityResultsAsProvider() predicate.RegisteredContract
HasCompatibilityResultsAsProvider applies the HasEdge predicate on the "compatibility_results_as_provider" edge.
func HasCompatibilityResultsAsProviderWith ¶
func HasCompatibilityResultsAsProviderWith(preds ...predicate.CompatibilityResult) predicate.RegisteredContract
HasCompatibilityResultsAsProviderWith applies the HasEdge predicate on the "compatibility_results_as_provider" edge with a given conditions (other predicates).
func HasCompatibilityResultsAsRequirement ¶
func HasCompatibilityResultsAsRequirement() predicate.RegisteredContract
HasCompatibilityResultsAsRequirement applies the HasEdge predicate on the "compatibility_results_as_requirement" edge.
func HasCompatibilityResultsAsRequirementWith ¶
func HasCompatibilityResultsAsRequirementWith(preds ...predicate.CompatibilityResult) predicate.RegisteredContract
HasCompatibilityResultsAsRequirementWith applies the HasEdge predicate on the "compatibility_results_as_requirement" edge with a given conditions (other predicates).
func HasProviders ¶
func HasProviders() predicate.RegisteredContract
HasProviders applies the HasEdge predicate on the "providers" edge.
func HasProvidersWith ¶
func HasProvidersWith(preds ...predicate.RegisteredProvider) predicate.RegisteredContract
HasProvidersWith applies the HasEdge predicate on the "providers" edge with a given conditions (other predicates).
func ID ¶
func ID(id string) predicate.RegisteredContract
ID filters vertices based on their ID field.
func IDContainsFold ¶
func IDContainsFold(id string) predicate.RegisteredContract
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.RegisteredContract
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.RegisteredContract
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.RegisteredContract
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.RegisteredContract
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.RegisteredContract
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.RegisteredContract
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.RegisteredContract
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.RegisteredContract
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.RegisteredContract
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.RegisteredContract) predicate.RegisteredContract
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.RegisteredContract) predicate.RegisteredContract
Or groups predicates with the OR operator between them.
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 RegisteredContract queries.
func ByCompatibilityResultsAsProvider ¶
func ByCompatibilityResultsAsProvider(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCompatibilityResultsAsProvider orders the results by compatibility_results_as_provider terms.
func ByCompatibilityResultsAsProviderCount ¶
func ByCompatibilityResultsAsProviderCount(opts ...sql.OrderTermOption) OrderOption
ByCompatibilityResultsAsProviderCount orders the results by compatibility_results_as_provider count.
func ByCompatibilityResultsAsRequirement ¶
func ByCompatibilityResultsAsRequirement(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCompatibilityResultsAsRequirement orders the results by compatibility_results_as_requirement terms.
func ByCompatibilityResultsAsRequirementCount ¶
func ByCompatibilityResultsAsRequirementCount(opts ...sql.OrderTermOption) OrderOption
ByCompatibilityResultsAsRequirementCount orders the results by compatibility_results_as_requirement count.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByFormat ¶
func ByFormat(opts ...sql.OrderTermOption) OrderOption
ByFormat orders the results by the format field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByProviders ¶
func ByProviders(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProviders orders the results by providers terms.
func ByProvidersCount ¶
func ByProvidersCount(opts ...sql.OrderTermOption) OrderOption
ByProvidersCount orders the results by providers count.