license

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 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"
	// FieldInlineHash holds the string denoting the inline_hash field in the database.
	FieldInlineHash = "inline_hash"
	// FieldListVersionHash holds the string denoting the list_version_hash field in the database.
	FieldListVersionHash = "list_version_hash"
	// 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 InlineHash added in v0.13.1

func InlineHash(v string) predicate.License

InlineHash applies equality check predicate on the "inline_hash" field. It's identical to InlineHashEQ.

func InlineHashContains added in v0.13.1

func InlineHashContains(v string) predicate.License

InlineHashContains applies the Contains predicate on the "inline_hash" field.

func InlineHashContainsFold added in v0.13.1

func InlineHashContainsFold(v string) predicate.License

InlineHashContainsFold applies the ContainsFold predicate on the "inline_hash" field.

func InlineHashEQ added in v0.13.1

func InlineHashEQ(v string) predicate.License

InlineHashEQ applies the EQ predicate on the "inline_hash" field.

func InlineHashEqualFold added in v0.13.1

func InlineHashEqualFold(v string) predicate.License

InlineHashEqualFold applies the EqualFold predicate on the "inline_hash" field.

func InlineHashGT added in v0.13.1

func InlineHashGT(v string) predicate.License

InlineHashGT applies the GT predicate on the "inline_hash" field.

func InlineHashGTE added in v0.13.1

func InlineHashGTE(v string) predicate.License

InlineHashGTE applies the GTE predicate on the "inline_hash" field.

func InlineHashHasPrefix added in v0.13.1

func InlineHashHasPrefix(v string) predicate.License

InlineHashHasPrefix applies the HasPrefix predicate on the "inline_hash" field.

func InlineHashHasSuffix added in v0.13.1

func InlineHashHasSuffix(v string) predicate.License

InlineHashHasSuffix applies the HasSuffix predicate on the "inline_hash" field.

func InlineHashIn added in v0.13.1

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

InlineHashIn applies the In predicate on the "inline_hash" field.

func InlineHashIsNil added in v0.13.1

func InlineHashIsNil() predicate.License

InlineHashIsNil applies the IsNil predicate on the "inline_hash" field.

func InlineHashLT added in v0.13.1

func InlineHashLT(v string) predicate.License

InlineHashLT applies the LT predicate on the "inline_hash" field.

func InlineHashLTE added in v0.13.1

func InlineHashLTE(v string) predicate.License

InlineHashLTE applies the LTE predicate on the "inline_hash" field.

func InlineHashNEQ added in v0.13.1

func InlineHashNEQ(v string) predicate.License

InlineHashNEQ applies the NEQ predicate on the "inline_hash" field.

func InlineHashNotIn added in v0.13.1

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

InlineHashNotIn applies the NotIn predicate on the "inline_hash" field.

func InlineHashNotNil added in v0.13.1

func InlineHashNotNil() predicate.License

InlineHashNotNil applies the NotNil predicate on the "inline_hash" 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 ListVersionHash added in v0.13.1

func ListVersionHash(v string) predicate.License

ListVersionHash applies equality check predicate on the "list_version_hash" field. It's identical to ListVersionHashEQ.

func ListVersionHashContains added in v0.13.1

func ListVersionHashContains(v string) predicate.License

ListVersionHashContains applies the Contains predicate on the "list_version_hash" field.

func ListVersionHashContainsFold added in v0.13.1

func ListVersionHashContainsFold(v string) predicate.License

ListVersionHashContainsFold applies the ContainsFold predicate on the "list_version_hash" field.

func ListVersionHashEQ added in v0.13.1

func ListVersionHashEQ(v string) predicate.License

ListVersionHashEQ applies the EQ predicate on the "list_version_hash" field.

func ListVersionHashEqualFold added in v0.13.1

func ListVersionHashEqualFold(v string) predicate.License

ListVersionHashEqualFold applies the EqualFold predicate on the "list_version_hash" field.

func ListVersionHashGT added in v0.13.1

func ListVersionHashGT(v string) predicate.License

ListVersionHashGT applies the GT predicate on the "list_version_hash" field.

func ListVersionHashGTE added in v0.13.1

func ListVersionHashGTE(v string) predicate.License

ListVersionHashGTE applies the GTE predicate on the "list_version_hash" field.

func ListVersionHashHasPrefix added in v0.13.1

func ListVersionHashHasPrefix(v string) predicate.License

ListVersionHashHasPrefix applies the HasPrefix predicate on the "list_version_hash" field.

func ListVersionHashHasSuffix added in v0.13.1

func ListVersionHashHasSuffix(v string) predicate.License

ListVersionHashHasSuffix applies the HasSuffix predicate on the "list_version_hash" field.

func ListVersionHashIn added in v0.13.1

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

ListVersionHashIn applies the In predicate on the "list_version_hash" field.

func ListVersionHashIsNil added in v0.13.1

func ListVersionHashIsNil() predicate.License

ListVersionHashIsNil applies the IsNil predicate on the "list_version_hash" field.

func ListVersionHashLT added in v0.13.1

func ListVersionHashLT(v string) predicate.License

ListVersionHashLT applies the LT predicate on the "list_version_hash" field.

func ListVersionHashLTE added in v0.13.1

func ListVersionHashLTE(v string) predicate.License

ListVersionHashLTE applies the LTE predicate on the "list_version_hash" field.

func ListVersionHashNEQ added in v0.13.1

func ListVersionHashNEQ(v string) predicate.License

ListVersionHashNEQ applies the NEQ predicate on the "list_version_hash" field.

func ListVersionHashNotIn added in v0.13.1

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

ListVersionHashNotIn applies the NotIn predicate on the "list_version_hash" field.

func ListVersionHashNotNil added in v0.13.1

func ListVersionHashNotNil() predicate.License

ListVersionHashNotNil applies the NotNil predicate on the "list_version_hash" 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 ByInlineHash added in v0.13.1

func ByInlineHash(opts ...sql.OrderTermOption) OrderOption

ByInlineHash orders the results by the inline_hash field.

func ByListVersion

func ByListVersion(opts ...sql.OrderTermOption) OrderOption

ByListVersion orders the results by the list_version field.

func ByListVersionHash added in v0.13.1

func ByListVersionHash(opts ...sql.OrderTermOption) OrderOption

ByListVersionHash orders the results by the list_version_hash 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