Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.License) predicate.License
- func HasDeclaredInCertifyLegals() predicate.License
- func HasDeclaredInCertifyLegalsWith(preds ...predicate.CertifyLegal) predicate.License
- func HasDiscoveredInCertifyLegals() predicate.License
- func HasDiscoveredInCertifyLegalsWith(preds ...predicate.CertifyLegal) predicate.License
- func ID(id uuid.UUID) predicate.License
- func IDEQ(id uuid.UUID) predicate.License
- func IDGT(id uuid.UUID) predicate.License
- func IDGTE(id uuid.UUID) predicate.License
- func IDIn(ids ...uuid.UUID) predicate.License
- func IDLT(id uuid.UUID) predicate.License
- func IDLTE(id uuid.UUID) predicate.License
- func IDNEQ(id uuid.UUID) predicate.License
- func IDNotIn(ids ...uuid.UUID) predicate.License
- func Inline(v string) predicate.License
- func InlineContains(v string) predicate.License
- func InlineContainsFold(v string) predicate.License
- func InlineEQ(v string) predicate.License
- func InlineEqualFold(v string) predicate.License
- func InlineGT(v string) predicate.License
- func InlineGTE(v string) predicate.License
- func InlineHasPrefix(v string) predicate.License
- func InlineHasSuffix(v string) predicate.License
- func InlineIn(vs ...string) predicate.License
- func InlineIsNil() predicate.License
- func InlineLT(v string) predicate.License
- func InlineLTE(v string) predicate.License
- func InlineNEQ(v string) predicate.License
- func InlineNotIn(vs ...string) predicate.License
- func InlineNotNil() predicate.License
- func ListVersion(v string) predicate.License
- func ListVersionContains(v string) predicate.License
- func ListVersionContainsFold(v string) predicate.License
- func ListVersionEQ(v string) predicate.License
- func ListVersionEqualFold(v string) predicate.License
- func ListVersionGT(v string) predicate.License
- func ListVersionGTE(v string) predicate.License
- func ListVersionHasPrefix(v string) predicate.License
- func ListVersionHasSuffix(v string) predicate.License
- func ListVersionIn(vs ...string) predicate.License
- func ListVersionIsNil() predicate.License
- func ListVersionLT(v string) predicate.License
- func ListVersionLTE(v string) predicate.License
- func ListVersionNEQ(v string) predicate.License
- func ListVersionNotIn(vs ...string) predicate.License
- func ListVersionNotNil() predicate.License
- func Name(v string) predicate.License
- func NameContains(v string) predicate.License
- func NameContainsFold(v string) predicate.License
- func NameEQ(v string) predicate.License
- func NameEqualFold(v string) predicate.License
- func NameGT(v string) predicate.License
- func NameGTE(v string) predicate.License
- func NameHasPrefix(v string) predicate.License
- func NameHasSuffix(v string) predicate.License
- func NameIn(vs ...string) predicate.License
- func NameLT(v string) predicate.License
- func NameLTE(v string) predicate.License
- func NameNEQ(v string) predicate.License
- func NameNotIn(vs ...string) predicate.License
- func Not(p predicate.License) predicate.License
- func Or(predicates ...predicate.License) predicate.License
- func ValidColumn(column string) bool
- type OrderOption
- func ByDeclaredInCertifyLegals(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDeclaredInCertifyLegalsCount(opts ...sql.OrderTermOption) OrderOption
- func ByDiscoveredInCertifyLegals(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDiscoveredInCertifyLegalsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInline(opts ...sql.OrderTermOption) OrderOption
- func ByListVersion(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the license type in the database. Label = "license" // 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" // FieldInline holds the string denoting the inline field in the database. FieldInline = "inline" // FieldListVersion holds the string denoting the list_version field in the database. FieldListVersion = "list_version" // EdgeDeclaredInCertifyLegals holds the string denoting the declared_in_certify_legals edge name in mutations. EdgeDeclaredInCertifyLegals = "declared_in_certify_legals" // EdgeDiscoveredInCertifyLegals holds the string denoting the discovered_in_certify_legals edge name in mutations. EdgeDiscoveredInCertifyLegals = "discovered_in_certify_legals" // Table holds the table name of the license in the database. Table = "licenses" // DeclaredInCertifyLegalsTable is the table that holds the declared_in_certify_legals relation/edge. The primary key declared below. DeclaredInCertifyLegalsTable = "certify_legal_declared_licenses" // DeclaredInCertifyLegalsInverseTable is the table name for the CertifyLegal entity. // It exists in this package in order to avoid circular dependency with the "certifylegal" package. DeclaredInCertifyLegalsInverseTable = "certify_legals" // DiscoveredInCertifyLegalsTable is the table that holds the discovered_in_certify_legals relation/edge. The primary key declared below. DiscoveredInCertifyLegalsTable = "certify_legal_discovered_licenses" // DiscoveredInCertifyLegalsInverseTable is the table name for the CertifyLegal entity. // It exists in this package in order to avoid circular dependency with the "certifylegal" package. DiscoveredInCertifyLegalsInverseTable = "certify_legals" )
Variables ¶
var ( // DeclaredInCertifyLegalsPrimaryKey and DeclaredInCertifyLegalsColumn2 are the table columns denoting the // primary key for the declared_in_certify_legals relation (M2M). DeclaredInCertifyLegalsPrimaryKey = []string{"certify_legal_id", "license_id"} // DiscoveredInCertifyLegalsPrimaryKey and DiscoveredInCertifyLegalsColumn2 are the table columns denoting the // primary key for the discovered_in_certify_legals relation (M2M). DiscoveredInCertifyLegalsPrimaryKey = []string{"certify_legal_id", "license_id"} )
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldName, FieldInline, FieldListVersion, }
Columns holds all SQL columns for license fields.
Functions ¶
func HasDeclaredInCertifyLegals ¶
HasDeclaredInCertifyLegals applies the HasEdge predicate on the "declared_in_certify_legals" edge.
func HasDeclaredInCertifyLegalsWith ¶
func HasDeclaredInCertifyLegalsWith(preds ...predicate.CertifyLegal) predicate.License
HasDeclaredInCertifyLegalsWith applies the HasEdge predicate on the "declared_in_certify_legals" edge with a given conditions (other predicates).
func HasDiscoveredInCertifyLegals ¶
HasDiscoveredInCertifyLegals applies the HasEdge predicate on the "discovered_in_certify_legals" edge.
func HasDiscoveredInCertifyLegalsWith ¶
func HasDiscoveredInCertifyLegalsWith(preds ...predicate.CertifyLegal) predicate.License
HasDiscoveredInCertifyLegalsWith applies the HasEdge predicate on the "discovered_in_certify_legals" edge with a given conditions (other predicates).
func Inline ¶
Inline applies equality check predicate on the "inline" field. It's identical to InlineEQ.
func InlineContains ¶
InlineContains applies the Contains predicate on the "inline" field.
func InlineContainsFold ¶
InlineContainsFold applies the ContainsFold predicate on the "inline" field.
func InlineEqualFold ¶
InlineEqualFold applies the EqualFold predicate on the "inline" field.
func InlineHasPrefix ¶
InlineHasPrefix applies the HasPrefix predicate on the "inline" field.
func InlineHasSuffix ¶
InlineHasSuffix applies the HasSuffix predicate on the "inline" field.
func InlineIsNil ¶
InlineIsNil applies the IsNil predicate on the "inline" field.
func InlineNotIn ¶
InlineNotIn applies the NotIn predicate on the "inline" field.
func InlineNotNil ¶
InlineNotNil applies the NotNil predicate on the "inline" field.
func ListVersion ¶
ListVersion applies equality check predicate on the "list_version" field. It's identical to ListVersionEQ.
func ListVersionContains ¶
ListVersionContains applies the Contains predicate on the "list_version" field.
func ListVersionContainsFold ¶
ListVersionContainsFold applies the ContainsFold predicate on the "list_version" field.
func ListVersionEQ ¶
ListVersionEQ applies the EQ predicate on the "list_version" field.
func ListVersionEqualFold ¶
ListVersionEqualFold applies the EqualFold predicate on the "list_version" field.
func ListVersionGT ¶
ListVersionGT applies the GT predicate on the "list_version" field.
func ListVersionGTE ¶
ListVersionGTE applies the GTE predicate on the "list_version" field.
func ListVersionHasPrefix ¶
ListVersionHasPrefix applies the HasPrefix predicate on the "list_version" field.
func ListVersionHasSuffix ¶
ListVersionHasSuffix applies the HasSuffix predicate on the "list_version" field.
func ListVersionIn ¶
ListVersionIn applies the In predicate on the "list_version" field.
func ListVersionIsNil ¶
ListVersionIsNil applies the IsNil predicate on the "list_version" field.
func ListVersionLT ¶
ListVersionLT applies the LT predicate on the "list_version" field.
func ListVersionLTE ¶
ListVersionLTE applies the LTE predicate on the "list_version" field.
func ListVersionNEQ ¶
ListVersionNEQ applies the NEQ predicate on the "list_version" field.
func ListVersionNotIn ¶
ListVersionNotIn applies the NotIn predicate on the "list_version" field.
func ListVersionNotNil ¶
ListVersionNotNil applies the NotNil predicate on the "list_version" field.
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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the License queries.
func ByDeclaredInCertifyLegals ¶
func ByDeclaredInCertifyLegals(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDeclaredInCertifyLegals orders the results by declared_in_certify_legals terms.
func ByDeclaredInCertifyLegalsCount ¶
func ByDeclaredInCertifyLegalsCount(opts ...sql.OrderTermOption) OrderOption
ByDeclaredInCertifyLegalsCount orders the results by declared_in_certify_legals count.
func ByDiscoveredInCertifyLegals ¶
func ByDiscoveredInCertifyLegals(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDiscoveredInCertifyLegals orders the results by discovered_in_certify_legals terms.
func ByDiscoveredInCertifyLegalsCount ¶
func ByDiscoveredInCertifyLegalsCount(opts ...sql.OrderTermOption) OrderOption
ByDiscoveredInCertifyLegalsCount orders the results by discovered_in_certify_legals count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInline ¶
func ByInline(opts ...sql.OrderTermOption) OrderOption
ByInline orders the results by the inline field.
func ByListVersion ¶
func ByListVersion(opts ...sql.OrderTermOption) OrderOption
ByListVersion orders the results by the list_version field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.