Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.SPDXLicense) predicate.SPDXLicense
- func DetailsURL(v string) predicate.SPDXLicense
- func DetailsURLContains(v string) predicate.SPDXLicense
- func DetailsURLContainsFold(v string) predicate.SPDXLicense
- func DetailsURLEQ(v string) predicate.SPDXLicense
- func DetailsURLEqualFold(v string) predicate.SPDXLicense
- func DetailsURLGT(v string) predicate.SPDXLicense
- func DetailsURLGTE(v string) predicate.SPDXLicense
- func DetailsURLHasPrefix(v string) predicate.SPDXLicense
- func DetailsURLHasSuffix(v string) predicate.SPDXLicense
- func DetailsURLIn(vs ...string) predicate.SPDXLicense
- func DetailsURLIsNil() predicate.SPDXLicense
- func DetailsURLLT(v string) predicate.SPDXLicense
- func DetailsURLLTE(v string) predicate.SPDXLicense
- func DetailsURLNEQ(v string) predicate.SPDXLicense
- func DetailsURLNotIn(vs ...string) predicate.SPDXLicense
- func DetailsURLNotNil() predicate.SPDXLicense
- func ID(id int) predicate.SPDXLicense
- func IDEQ(id int) predicate.SPDXLicense
- func IDGT(id int) predicate.SPDXLicense
- func IDGTE(id int) predicate.SPDXLicense
- func IDIn(ids ...int) predicate.SPDXLicense
- func IDLT(id int) predicate.SPDXLicense
- func IDLTE(id int) predicate.SPDXLicense
- func IDNEQ(id int) predicate.SPDXLicense
- func IDNotIn(ids ...int) predicate.SPDXLicense
- func IsOsiApproved(v bool) predicate.SPDXLicense
- func IsOsiApprovedEQ(v bool) predicate.SPDXLicense
- func IsOsiApprovedNEQ(v bool) predicate.SPDXLicense
- func LicenseID(v string) predicate.SPDXLicense
- func LicenseIDContains(v string) predicate.SPDXLicense
- func LicenseIDContainsFold(v string) predicate.SPDXLicense
- func LicenseIDEQ(v string) predicate.SPDXLicense
- func LicenseIDEqualFold(v string) predicate.SPDXLicense
- func LicenseIDGT(v string) predicate.SPDXLicense
- func LicenseIDGTE(v string) predicate.SPDXLicense
- func LicenseIDHasPrefix(v string) predicate.SPDXLicense
- func LicenseIDHasSuffix(v string) predicate.SPDXLicense
- func LicenseIDIn(vs ...string) predicate.SPDXLicense
- func LicenseIDLT(v string) predicate.SPDXLicense
- func LicenseIDLTE(v string) predicate.SPDXLicense
- func LicenseIDNEQ(v string) predicate.SPDXLicense
- func LicenseIDNotIn(vs ...string) predicate.SPDXLicense
- func Name(v string) predicate.SPDXLicense
- func NameContains(v string) predicate.SPDXLicense
- func NameContainsFold(v string) predicate.SPDXLicense
- func NameEQ(v string) predicate.SPDXLicense
- func NameEqualFold(v string) predicate.SPDXLicense
- func NameGT(v string) predicate.SPDXLicense
- func NameGTE(v string) predicate.SPDXLicense
- func NameHasPrefix(v string) predicate.SPDXLicense
- func NameHasSuffix(v string) predicate.SPDXLicense
- func NameIn(vs ...string) predicate.SPDXLicense
- func NameLT(v string) predicate.SPDXLicense
- func NameLTE(v string) predicate.SPDXLicense
- func NameNEQ(v string) predicate.SPDXLicense
- func NameNotIn(vs ...string) predicate.SPDXLicense
- func Not(p predicate.SPDXLicense) predicate.SPDXLicense
- func Or(predicates ...predicate.SPDXLicense) predicate.SPDXLicense
- func Reference(v string) predicate.SPDXLicense
- func ReferenceContains(v string) predicate.SPDXLicense
- func ReferenceContainsFold(v string) predicate.SPDXLicense
- func ReferenceEQ(v string) predicate.SPDXLicense
- func ReferenceEqualFold(v string) predicate.SPDXLicense
- func ReferenceGT(v string) predicate.SPDXLicense
- func ReferenceGTE(v string) predicate.SPDXLicense
- func ReferenceHasPrefix(v string) predicate.SPDXLicense
- func ReferenceHasSuffix(v string) predicate.SPDXLicense
- func ReferenceIn(vs ...string) predicate.SPDXLicense
- func ReferenceIsNil() predicate.SPDXLicense
- func ReferenceLT(v string) predicate.SPDXLicense
- func ReferenceLTE(v string) predicate.SPDXLicense
- func ReferenceNEQ(v string) predicate.SPDXLicense
- func ReferenceNotIn(vs ...string) predicate.SPDXLicense
- func ReferenceNotNil() predicate.SPDXLicense
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the spdxlicense type in the database. Label = "spdx_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" // FieldReference holds the string denoting the reference field in the database. FieldReference = "reference" // FieldDetailsURL holds the string denoting the details_url field in the database. FieldDetailsURL = "details_url" // FieldIsOsiApproved holds the string denoting the is_osi_approved field in the database. FieldIsOsiApproved = "is_osi_approved" // Table holds the table name of the spdxlicense in the database. Table = "spdx_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 // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultIsOsiApproved holds the default value on creation for the "is_osi_approved" field. DefaultIsOsiApproved bool )
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, FieldReference, FieldDetailsURL, FieldIsOsiApproved, }
Columns holds all SQL columns for spdxlicense fields.
Functions ¶
func And ¶
func And(predicates ...predicate.SPDXLicense) predicate.SPDXLicense
And groups predicates with the AND operator between them.
func DetailsURL ¶
func DetailsURL(v string) predicate.SPDXLicense
DetailsURL applies equality check predicate on the "details_url" field. It's identical to DetailsURLEQ.
func DetailsURLContains ¶
func DetailsURLContains(v string) predicate.SPDXLicense
DetailsURLContains applies the Contains predicate on the "details_url" field.
func DetailsURLContainsFold ¶
func DetailsURLContainsFold(v string) predicate.SPDXLicense
DetailsURLContainsFold applies the ContainsFold predicate on the "details_url" field.
func DetailsURLEQ ¶
func DetailsURLEQ(v string) predicate.SPDXLicense
DetailsURLEQ applies the EQ predicate on the "details_url" field.
func DetailsURLEqualFold ¶
func DetailsURLEqualFold(v string) predicate.SPDXLicense
DetailsURLEqualFold applies the EqualFold predicate on the "details_url" field.
func DetailsURLGT ¶
func DetailsURLGT(v string) predicate.SPDXLicense
DetailsURLGT applies the GT predicate on the "details_url" field.
func DetailsURLGTE ¶
func DetailsURLGTE(v string) predicate.SPDXLicense
DetailsURLGTE applies the GTE predicate on the "details_url" field.
func DetailsURLHasPrefix ¶
func DetailsURLHasPrefix(v string) predicate.SPDXLicense
DetailsURLHasPrefix applies the HasPrefix predicate on the "details_url" field.
func DetailsURLHasSuffix ¶
func DetailsURLHasSuffix(v string) predicate.SPDXLicense
DetailsURLHasSuffix applies the HasSuffix predicate on the "details_url" field.
func DetailsURLIn ¶
func DetailsURLIn(vs ...string) predicate.SPDXLicense
DetailsURLIn applies the In predicate on the "details_url" field.
func DetailsURLIsNil ¶
func DetailsURLIsNil() predicate.SPDXLicense
DetailsURLIsNil applies the IsNil predicate on the "details_url" field.
func DetailsURLLT ¶
func DetailsURLLT(v string) predicate.SPDXLicense
DetailsURLLT applies the LT predicate on the "details_url" field.
func DetailsURLLTE ¶
func DetailsURLLTE(v string) predicate.SPDXLicense
DetailsURLLTE applies the LTE predicate on the "details_url" field.
func DetailsURLNEQ ¶
func DetailsURLNEQ(v string) predicate.SPDXLicense
DetailsURLNEQ applies the NEQ predicate on the "details_url" field.
func DetailsURLNotIn ¶
func DetailsURLNotIn(vs ...string) predicate.SPDXLicense
DetailsURLNotIn applies the NotIn predicate on the "details_url" field.
func DetailsURLNotNil ¶
func DetailsURLNotNil() predicate.SPDXLicense
DetailsURLNotNil applies the NotNil predicate on the "details_url" field.
func IDGTE ¶
func IDGTE(id int) predicate.SPDXLicense
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.SPDXLicense
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.SPDXLicense
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.SPDXLicense
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.SPDXLicense
IDNotIn applies the NotIn predicate on the ID field.
func IsOsiApproved ¶
func IsOsiApproved(v bool) predicate.SPDXLicense
IsOsiApproved applies equality check predicate on the "is_osi_approved" field. It's identical to IsOsiApprovedEQ.
func IsOsiApprovedEQ ¶
func IsOsiApprovedEQ(v bool) predicate.SPDXLicense
IsOsiApprovedEQ applies the EQ predicate on the "is_osi_approved" field.
func IsOsiApprovedNEQ ¶
func IsOsiApprovedNEQ(v bool) predicate.SPDXLicense
IsOsiApprovedNEQ applies the NEQ predicate on the "is_osi_approved" field.
func LicenseID ¶
func LicenseID(v string) predicate.SPDXLicense
LicenseID applies equality check predicate on the "license_id" field. It's identical to LicenseIDEQ.
func LicenseIDContains ¶
func LicenseIDContains(v string) predicate.SPDXLicense
LicenseIDContains applies the Contains predicate on the "license_id" field.
func LicenseIDContainsFold ¶
func LicenseIDContainsFold(v string) predicate.SPDXLicense
LicenseIDContainsFold applies the ContainsFold predicate on the "license_id" field.
func LicenseIDEQ ¶
func LicenseIDEQ(v string) predicate.SPDXLicense
LicenseIDEQ applies the EQ predicate on the "license_id" field.
func LicenseIDEqualFold ¶
func LicenseIDEqualFold(v string) predicate.SPDXLicense
LicenseIDEqualFold applies the EqualFold predicate on the "license_id" field.
func LicenseIDGT ¶
func LicenseIDGT(v string) predicate.SPDXLicense
LicenseIDGT applies the GT predicate on the "license_id" field.
func LicenseIDGTE ¶
func LicenseIDGTE(v string) predicate.SPDXLicense
LicenseIDGTE applies the GTE predicate on the "license_id" field.
func LicenseIDHasPrefix ¶
func LicenseIDHasPrefix(v string) predicate.SPDXLicense
LicenseIDHasPrefix applies the HasPrefix predicate on the "license_id" field.
func LicenseIDHasSuffix ¶
func LicenseIDHasSuffix(v string) predicate.SPDXLicense
LicenseIDHasSuffix applies the HasSuffix predicate on the "license_id" field.
func LicenseIDIn ¶
func LicenseIDIn(vs ...string) predicate.SPDXLicense
LicenseIDIn applies the In predicate on the "license_id" field.
func LicenseIDLT ¶
func LicenseIDLT(v string) predicate.SPDXLicense
LicenseIDLT applies the LT predicate on the "license_id" field.
func LicenseIDLTE ¶
func LicenseIDLTE(v string) predicate.SPDXLicense
LicenseIDLTE applies the LTE predicate on the "license_id" field.
func LicenseIDNEQ ¶
func LicenseIDNEQ(v string) predicate.SPDXLicense
LicenseIDNEQ applies the NEQ predicate on the "license_id" field.
func LicenseIDNotIn ¶
func LicenseIDNotIn(vs ...string) predicate.SPDXLicense
LicenseIDNotIn applies the NotIn predicate on the "license_id" field.
func Name ¶
func Name(v string) predicate.SPDXLicense
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.SPDXLicense
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.SPDXLicense
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.SPDXLicense
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.SPDXLicense
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.SPDXLicense
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.SPDXLicense
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.SPDXLicense
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.SPDXLicense
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.SPDXLicense
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.SPDXLicense
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.SPDXLicense
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.SPDXLicense
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.SPDXLicense
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.SPDXLicense) predicate.SPDXLicense
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.SPDXLicense) predicate.SPDXLicense
Or groups predicates with the OR operator between them.
func Reference ¶
func Reference(v string) predicate.SPDXLicense
Reference applies equality check predicate on the "reference" field. It's identical to ReferenceEQ.
func ReferenceContains ¶
func ReferenceContains(v string) predicate.SPDXLicense
ReferenceContains applies the Contains predicate on the "reference" field.
func ReferenceContainsFold ¶
func ReferenceContainsFold(v string) predicate.SPDXLicense
ReferenceContainsFold applies the ContainsFold predicate on the "reference" field.
func ReferenceEQ ¶
func ReferenceEQ(v string) predicate.SPDXLicense
ReferenceEQ applies the EQ predicate on the "reference" field.
func ReferenceEqualFold ¶
func ReferenceEqualFold(v string) predicate.SPDXLicense
ReferenceEqualFold applies the EqualFold predicate on the "reference" field.
func ReferenceGT ¶
func ReferenceGT(v string) predicate.SPDXLicense
ReferenceGT applies the GT predicate on the "reference" field.
func ReferenceGTE ¶
func ReferenceGTE(v string) predicate.SPDXLicense
ReferenceGTE applies the GTE predicate on the "reference" field.
func ReferenceHasPrefix ¶
func ReferenceHasPrefix(v string) predicate.SPDXLicense
ReferenceHasPrefix applies the HasPrefix predicate on the "reference" field.
func ReferenceHasSuffix ¶
func ReferenceHasSuffix(v string) predicate.SPDXLicense
ReferenceHasSuffix applies the HasSuffix predicate on the "reference" field.
func ReferenceIn ¶
func ReferenceIn(vs ...string) predicate.SPDXLicense
ReferenceIn applies the In predicate on the "reference" field.
func ReferenceIsNil ¶
func ReferenceIsNil() predicate.SPDXLicense
ReferenceIsNil applies the IsNil predicate on the "reference" field.
func ReferenceLT ¶
func ReferenceLT(v string) predicate.SPDXLicense
ReferenceLT applies the LT predicate on the "reference" field.
func ReferenceLTE ¶
func ReferenceLTE(v string) predicate.SPDXLicense
ReferenceLTE applies the LTE predicate on the "reference" field.
func ReferenceNEQ ¶
func ReferenceNEQ(v string) predicate.SPDXLicense
ReferenceNEQ applies the NEQ predicate on the "reference" field.
func ReferenceNotIn ¶
func ReferenceNotIn(vs ...string) predicate.SPDXLicense
ReferenceNotIn applies the NotIn predicate on the "reference" field.
func ReferenceNotNil ¶
func ReferenceNotNil() predicate.SPDXLicense
ReferenceNotNil applies the NotNil predicate on the "reference" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.