Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.License) predicate.License
- func HasComponents() predicate.License
- func HasComponentsWith(preds ...predicate.Component) predicate.License
- func HasInstances() predicate.License
- func HasInstancesWith(preds ...predicate.ReleaseLicense) predicate.License
- func HasOwner() predicate.License
- func HasOwnerWith(preds ...predicate.Organization) predicate.License
- func HasSpdx() predicate.License
- func HasSpdxWith(preds ...predicate.SPDXLicense) predicate.License
- func ID(id int) predicate.License
- func IDEQ(id int) predicate.License
- func IDGT(id int) predicate.License
- func IDGTE(id int) predicate.License
- func IDIn(ids ...int) predicate.License
- func IDLT(id int) predicate.License
- func IDLTE(id int) predicate.License
- func IDNEQ(id int) predicate.License
- func IDNotIn(ids ...int) predicate.License
- func LicenseID(v string) predicate.License
- func LicenseIDContains(v string) predicate.License
- func LicenseIDContainsFold(v string) predicate.License
- func LicenseIDEQ(v string) predicate.License
- func LicenseIDEqualFold(v string) predicate.License
- func LicenseIDGT(v string) predicate.License
- func LicenseIDGTE(v string) predicate.License
- func LicenseIDHasPrefix(v string) predicate.License
- func LicenseIDHasSuffix(v string) predicate.License
- func LicenseIDIn(vs ...string) predicate.License
- func LicenseIDLT(v string) predicate.License
- func LicenseIDLTE(v string) predicate.License
- func LicenseIDNEQ(v string) predicate.License
- func LicenseIDNotIn(vs ...string) 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 NameIsNil() 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 NameNotNil() predicate.License
- func Not(p predicate.License) predicate.License
- func Or(predicates ...predicate.License) predicate.License
- func ValidColumn(column string) bool
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" // FieldLicenseID holds the string denoting the license_id field in the database. FieldLicenseID = "license_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeSpdx holds the string denoting the spdx edge name in mutations. EdgeSpdx = "spdx" // EdgeComponents holds the string denoting the components edge name in mutations. EdgeComponents = "components" // EdgeInstances holds the string denoting the instances edge name in mutations. EdgeInstances = "instances" // Table holds the table name of the license in the database. Table = "license" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "license" // OwnerInverseTable is the table name for the Organization entity. // It exists in this package in order to avoid circular dependency with the "organization" package. OwnerInverseTable = "organization" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "license_owner" // SpdxTable is the table that holds the spdx relation/edge. SpdxTable = "license" // SpdxInverseTable is the table name for the SPDXLicense entity. // It exists in this package in order to avoid circular dependency with the "spdxlicense" package. SpdxInverseTable = "spdx_license" // SpdxColumn is the table column denoting the spdx relation/edge. SpdxColumn = "license_spdx" // ComponentsTable is the table that holds the components relation/edge. The primary key declared below. ComponentsTable = "component_licenses" // ComponentsInverseTable is the table name for the Component entity. // It exists in this package in order to avoid circular dependency with the "component" package. ComponentsInverseTable = "component" // InstancesTable is the table that holds the instances relation/edge. InstancesTable = "release_license" // InstancesInverseTable is the table name for the ReleaseLicense entity. // It exists in this package in order to avoid circular dependency with the "releaselicense" package. InstancesInverseTable = "release_license" // InstancesColumn is the table column denoting the instances relation/edge. InstancesColumn = "release_license_license" )
Variables ¶
var ( Hooks [1]ent.Hook // LicenseIDValidator is a validator for the "license_id" field. It is called by the builders before save. LicenseIDValidator func(string) error )
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/valocode/bubbly/ent/runtime"
var Columns = []string{ FieldID, FieldLicenseID, FieldName, }
Columns holds all SQL columns for license fields.
var ( // ComponentsPrimaryKey and ComponentsColumn2 are the table columns denoting the // primary key for the components relation (M2M). ComponentsPrimaryKey = []string{"component_id", "license_id"} )
var ForeignKeys = []string{
"license_owner",
"license_spdx",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "license" table and are not defined as standalone fields in the schema.
Functions ¶
func HasComponents ¶
HasComponents applies the HasEdge predicate on the "components" edge.
func HasComponentsWith ¶
HasComponentsWith applies the HasEdge predicate on the "components" edge with a given conditions (other predicates).
func HasInstances ¶
HasInstances applies the HasEdge predicate on the "instances" edge.
func HasInstancesWith ¶
func HasInstancesWith(preds ...predicate.ReleaseLicense) predicate.License
HasInstancesWith applies the HasEdge predicate on the "instances" edge with a given conditions (other predicates).
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.Organization) predicate.License
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasSpdxWith ¶
func HasSpdxWith(preds ...predicate.SPDXLicense) predicate.License
HasSpdxWith applies the HasEdge predicate on the "spdx" edge with a given conditions (other predicates).
func LicenseID ¶
LicenseID applies equality check predicate on the "license_id" field. It's identical to LicenseIDEQ.
func LicenseIDContains ¶
LicenseIDContains applies the Contains predicate on the "license_id" field.
func LicenseIDContainsFold ¶
LicenseIDContainsFold applies the ContainsFold predicate on the "license_id" field.
func LicenseIDEQ ¶
LicenseIDEQ applies the EQ predicate on the "license_id" field.
func LicenseIDEqualFold ¶
LicenseIDEqualFold applies the EqualFold predicate on the "license_id" field.
func LicenseIDGT ¶
LicenseIDGT applies the GT predicate on the "license_id" field.
func LicenseIDGTE ¶
LicenseIDGTE applies the GTE predicate on the "license_id" field.
func LicenseIDHasPrefix ¶
LicenseIDHasPrefix applies the HasPrefix predicate on the "license_id" field.
func LicenseIDHasSuffix ¶
LicenseIDHasSuffix applies the HasSuffix predicate on the "license_id" field.
func LicenseIDIn ¶
LicenseIDIn applies the In predicate on the "license_id" field.
func LicenseIDLT ¶
LicenseIDLT applies the LT predicate on the "license_id" field.
func LicenseIDLTE ¶
LicenseIDLTE applies the LTE predicate on the "license_id" field.
func LicenseIDNEQ ¶
LicenseIDNEQ applies the NEQ predicate on the "license_id" field.
func LicenseIDNotIn ¶
LicenseIDNotIn applies the NotIn predicate on the "license_id" 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 NameNotNil ¶
NameNotNil applies the NotNil predicate on the "name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.