license

package
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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"}
)
View Source
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
)

Columns holds all SQL columns for license fields.

Functions

func And

func And(predicates ...predicate.License) predicate.License

And groups predicates with the AND operator between them.

func HasDeclaredInCertifyLegals

func HasDeclaredInCertifyLegals() predicate.License

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

func HasDiscoveredInCertifyLegals() predicate.License

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 ID

func ID(id uuid.UUID) predicate.License

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.License

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.License

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.License

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.License

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.License

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.License

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.License

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.License

IDNotIn applies the NotIn predicate on the ID field.

func Inline

func Inline(v string) predicate.License

Inline applies equality check predicate on the "inline" field. It's identical to InlineEQ.

func InlineContains

func InlineContains(v string) predicate.License

InlineContains applies the Contains predicate on the "inline" field.

func InlineContainsFold

func InlineContainsFold(v string) predicate.License

InlineContainsFold applies the ContainsFold predicate on the "inline" field.

func InlineEQ

func InlineEQ(v string) predicate.License

InlineEQ applies the EQ predicate on the "inline" field.

func InlineEqualFold

func InlineEqualFold(v string) predicate.License

InlineEqualFold applies the EqualFold predicate on the "inline" field.

func InlineGT

func InlineGT(v string) predicate.License

InlineGT applies the GT predicate on the "inline" field.

func InlineGTE

func InlineGTE(v string) predicate.License

InlineGTE applies the GTE predicate on the "inline" field.

func InlineHasPrefix

func InlineHasPrefix(v string) predicate.License

InlineHasPrefix applies the HasPrefix predicate on the "inline" field.

func InlineHasSuffix

func InlineHasSuffix(v string) predicate.License

InlineHasSuffix applies the HasSuffix predicate on the "inline" field.

func InlineIn

func InlineIn(vs ...string) predicate.License

InlineIn applies the In predicate on the "inline" field.

func InlineIsNil

func InlineIsNil() predicate.License

InlineIsNil applies the IsNil predicate on the "inline" field.

func InlineLT

func InlineLT(v string) predicate.License

InlineLT applies the LT predicate on the "inline" field.

func InlineLTE

func InlineLTE(v string) predicate.License

InlineLTE applies the LTE predicate on the "inline" field.

func InlineNEQ

func InlineNEQ(v string) predicate.License

InlineNEQ applies the NEQ predicate on the "inline" field.

func InlineNotIn

func InlineNotIn(vs ...string) predicate.License

InlineNotIn applies the NotIn predicate on the "inline" field.

func InlineNotNil

func InlineNotNil() predicate.License

InlineNotNil applies the NotNil predicate on the "inline" field.

func ListVersion

func ListVersion(v string) predicate.License

ListVersion applies equality check predicate on the "list_version" field. It's identical to ListVersionEQ.

func ListVersionContains

func ListVersionContains(v string) predicate.License

ListVersionContains applies the Contains predicate on the "list_version" field.

func ListVersionContainsFold

func ListVersionContainsFold(v string) predicate.License

ListVersionContainsFold applies the ContainsFold predicate on the "list_version" field.

func ListVersionEQ

func ListVersionEQ(v string) predicate.License

ListVersionEQ applies the EQ predicate on the "list_version" field.

func ListVersionEqualFold

func ListVersionEqualFold(v string) predicate.License

ListVersionEqualFold applies the EqualFold predicate on the "list_version" field.

func ListVersionGT

func ListVersionGT(v string) predicate.License

ListVersionGT applies the GT predicate on the "list_version" field.

func ListVersionGTE

func ListVersionGTE(v string) predicate.License

ListVersionGTE applies the GTE predicate on the "list_version" field.

func ListVersionHasPrefix

func ListVersionHasPrefix(v string) predicate.License

ListVersionHasPrefix applies the HasPrefix predicate on the "list_version" field.

func ListVersionHasSuffix

func ListVersionHasSuffix(v string) predicate.License

ListVersionHasSuffix applies the HasSuffix predicate on the "list_version" field.

func ListVersionIn

func ListVersionIn(vs ...string) predicate.License

ListVersionIn applies the In predicate on the "list_version" field.

func ListVersionIsNil

func ListVersionIsNil() predicate.License

ListVersionIsNil applies the IsNil predicate on the "list_version" field.

func ListVersionLT

func ListVersionLT(v string) predicate.License

ListVersionLT applies the LT predicate on the "list_version" field.

func ListVersionLTE

func ListVersionLTE(v string) predicate.License

ListVersionLTE applies the LTE predicate on the "list_version" field.

func ListVersionNEQ

func ListVersionNEQ(v string) predicate.License

ListVersionNEQ applies the NEQ predicate on the "list_version" field.

func ListVersionNotIn

func ListVersionNotIn(vs ...string) predicate.License

ListVersionNotIn applies the NotIn predicate on the "list_version" field.

func ListVersionNotNil

func ListVersionNotNil() predicate.License

ListVersionNotNil applies the NotNil predicate on the "list_version" field.

func Name

func Name(v string) predicate.License

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.License

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.License

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.License

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.License

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.License

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.License

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.License

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.License

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.License

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.License

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.License

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.License

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.License

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.License) predicate.License

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL