node

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the node type in the database.
	Label = "node"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldFileName holds the string denoting the file_name field in the database.
	FieldFileName = "file_name"
	// FieldURLHome holds the string denoting the url_home field in the database.
	FieldURLHome = "url_home"
	// FieldURLDownload holds the string denoting the url_download field in the database.
	FieldURLDownload = "url_download"
	// FieldLicenses holds the string denoting the licenses field in the database.
	FieldLicenses = "licenses"
	// FieldLicenseConcluded holds the string denoting the license_concluded field in the database.
	FieldLicenseConcluded = "license_concluded"
	// FieldLicenseComments holds the string denoting the license_comments field in the database.
	FieldLicenseComments = "license_comments"
	// FieldCopyright holds the string denoting the copyright field in the database.
	FieldCopyright = "copyright"
	// FieldSourceInfo holds the string denoting the source_info field in the database.
	FieldSourceInfo = "source_info"
	// FieldComment holds the string denoting the comment field in the database.
	FieldComment = "comment"
	// FieldSummary holds the string denoting the summary field in the database.
	FieldSummary = "summary"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldReleaseDate holds the string denoting the release_date field in the database.
	FieldReleaseDate = "release_date"
	// FieldBuildDate holds the string denoting the build_date field in the database.
	FieldBuildDate = "build_date"
	// FieldValidUntilDate holds the string denoting the valid_until_date field in the database.
	FieldValidUntilDate = "valid_until_date"
	// FieldAttribution holds the string denoting the attribution field in the database.
	FieldAttribution = "attribution"
	// FieldFileTypes holds the string denoting the file_types field in the database.
	FieldFileTypes = "file_types"
	// EdgeSuppliers holds the string denoting the suppliers edge name in mutations.
	EdgeSuppliers = "suppliers"
	// EdgeOriginators holds the string denoting the originators edge name in mutations.
	EdgeOriginators = "originators"
	// EdgeExternalReferences holds the string denoting the external_references edge name in mutations.
	EdgeExternalReferences = "external_references"
	// EdgeIdentifiers holds the string denoting the identifiers edge name in mutations.
	EdgeIdentifiers = "identifiers"
	// EdgeHashes holds the string denoting the hashes edge name in mutations.
	EdgeHashes = "hashes"
	// EdgePrimaryPurpose holds the string denoting the primary_purpose edge name in mutations.
	EdgePrimaryPurpose = "primary_purpose"
	// EdgeToNodes holds the string denoting the to_nodes edge name in mutations.
	EdgeToNodes = "to_nodes"
	// EdgeNodes holds the string denoting the nodes edge name in mutations.
	EdgeNodes = "nodes"
	// EdgeNodeLists holds the string denoting the node_lists edge name in mutations.
	EdgeNodeLists = "node_lists"
	// EdgeEdgeTypes holds the string denoting the edge_types edge name in mutations.
	EdgeEdgeTypes = "edge_types"
	// Table holds the table name of the node in the database.
	Table = "nodes"
	// SuppliersTable is the table that holds the suppliers relation/edge.
	SuppliersTable = "persons"
	// SuppliersInverseTable is the table name for the Person entity.
	// It exists in this package in order to avoid circular dependency with the "person" package.
	SuppliersInverseTable = "persons"
	// SuppliersColumn is the table column denoting the suppliers relation/edge.
	SuppliersColumn = "node_suppliers"
	// OriginatorsTable is the table that holds the originators relation/edge.
	OriginatorsTable = "persons"
	// OriginatorsInverseTable is the table name for the Person entity.
	// It exists in this package in order to avoid circular dependency with the "person" package.
	OriginatorsInverseTable = "persons"
	// OriginatorsColumn is the table column denoting the originators relation/edge.
	OriginatorsColumn = "node_id"
	// ExternalReferencesTable is the table that holds the external_references relation/edge.
	ExternalReferencesTable = "external_references"
	// ExternalReferencesInverseTable is the table name for the ExternalReference entity.
	// It exists in this package in order to avoid circular dependency with the "externalreference" package.
	ExternalReferencesInverseTable = "external_references"
	// ExternalReferencesColumn is the table column denoting the external_references relation/edge.
	ExternalReferencesColumn = "node_id"
	// IdentifiersTable is the table that holds the identifiers relation/edge.
	IdentifiersTable = "identifiers_entries"
	// IdentifiersInverseTable is the table name for the IdentifiersEntry entity.
	// It exists in this package in order to avoid circular dependency with the "identifiersentry" package.
	IdentifiersInverseTable = "identifiers_entries"
	// IdentifiersColumn is the table column denoting the identifiers relation/edge.
	IdentifiersColumn = "node_id"
	// HashesTable is the table that holds the hashes relation/edge.
	HashesTable = "hashes_entries"
	// HashesInverseTable is the table name for the HashesEntry entity.
	// It exists in this package in order to avoid circular dependency with the "hashesentry" package.
	HashesInverseTable = "hashes_entries"
	// HashesColumn is the table column denoting the hashes relation/edge.
	HashesColumn = "node_id"
	// PrimaryPurposeTable is the table that holds the primary_purpose relation/edge.
	PrimaryPurposeTable = "purposes"
	// PrimaryPurposeInverseTable is the table name for the Purpose entity.
	// It exists in this package in order to avoid circular dependency with the "purpose" package.
	PrimaryPurposeInverseTable = "purposes"
	// PrimaryPurposeColumn is the table column denoting the primary_purpose relation/edge.
	PrimaryPurposeColumn = "node_id"
	// ToNodesTable is the table that holds the to_nodes relation/edge. The primary key declared below.
	ToNodesTable = "edge_types"
	// NodesTable is the table that holds the nodes relation/edge. The primary key declared below.
	NodesTable = "edge_types"
	// NodeListsTable is the table that holds the node_lists relation/edge. The primary key declared below.
	NodeListsTable = "node_list_nodes"
	// NodeListsInverseTable is the table name for the NodeList entity.
	// It exists in this package in order to avoid circular dependency with the "nodelist" package.
	NodeListsInverseTable = "node_lists"
	// EdgeTypesTable is the table that holds the edge_types relation/edge.
	EdgeTypesTable = "edge_types"
	// EdgeTypesInverseTable is the table name for the EdgeType entity.
	// It exists in this package in order to avoid circular dependency with the "edgetype" package.
	EdgeTypesInverseTable = "edge_types"
	// EdgeTypesColumn is the table column denoting the edge_types relation/edge.
	EdgeTypesColumn = "to_node_id"
)

Variables

View Source
var (
	// ToNodesPrimaryKey and ToNodesColumn2 are the table columns denoting the
	// primary key for the to_nodes relation (M2M).
	ToNodesPrimaryKey = []string{"node_id", "to_node_id"}
	// NodesPrimaryKey and NodesColumn2 are the table columns denoting the
	// primary key for the nodes relation (M2M).
	NodesPrimaryKey = []string{"node_id", "to_node_id"}
	// NodeListsPrimaryKey and NodeListsColumn2 are the table columns denoting the
	// primary key for the node_lists relation (M2M).
	NodeListsPrimaryKey = []string{"node_list_id", "node_id"}
)

Columns holds all SQL columns for node fields.

View Source
var (
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Functions

func And

func And(predicates ...predicate.Node) predicate.Node

And groups predicates with the AND operator between them.

func BuildDate

func BuildDate(v time.Time) predicate.Node

BuildDate applies equality check predicate on the "build_date" field. It's identical to BuildDateEQ.

func BuildDateEQ

func BuildDateEQ(v time.Time) predicate.Node

BuildDateEQ applies the EQ predicate on the "build_date" field.

func BuildDateGT

func BuildDateGT(v time.Time) predicate.Node

BuildDateGT applies the GT predicate on the "build_date" field.

func BuildDateGTE

func BuildDateGTE(v time.Time) predicate.Node

BuildDateGTE applies the GTE predicate on the "build_date" field.

func BuildDateIn

func BuildDateIn(vs ...time.Time) predicate.Node

BuildDateIn applies the In predicate on the "build_date" field.

func BuildDateLT

func BuildDateLT(v time.Time) predicate.Node

BuildDateLT applies the LT predicate on the "build_date" field.

func BuildDateLTE

func BuildDateLTE(v time.Time) predicate.Node

BuildDateLTE applies the LTE predicate on the "build_date" field.

func BuildDateNEQ

func BuildDateNEQ(v time.Time) predicate.Node

BuildDateNEQ applies the NEQ predicate on the "build_date" field.

func BuildDateNotIn

func BuildDateNotIn(vs ...time.Time) predicate.Node

BuildDateNotIn applies the NotIn predicate on the "build_date" field.

func Comment

func Comment(v string) predicate.Node

Comment applies equality check predicate on the "comment" field. It's identical to CommentEQ.

func CommentContains

func CommentContains(v string) predicate.Node

CommentContains applies the Contains predicate on the "comment" field.

func CommentContainsFold

func CommentContainsFold(v string) predicate.Node

CommentContainsFold applies the ContainsFold predicate on the "comment" field.

func CommentEQ

func CommentEQ(v string) predicate.Node

CommentEQ applies the EQ predicate on the "comment" field.

func CommentEqualFold

func CommentEqualFold(v string) predicate.Node

CommentEqualFold applies the EqualFold predicate on the "comment" field.

func CommentGT

func CommentGT(v string) predicate.Node

CommentGT applies the GT predicate on the "comment" field.

func CommentGTE

func CommentGTE(v string) predicate.Node

CommentGTE applies the GTE predicate on the "comment" field.

func CommentHasPrefix

func CommentHasPrefix(v string) predicate.Node

CommentHasPrefix applies the HasPrefix predicate on the "comment" field.

func CommentHasSuffix

func CommentHasSuffix(v string) predicate.Node

CommentHasSuffix applies the HasSuffix predicate on the "comment" field.

func CommentIn

func CommentIn(vs ...string) predicate.Node

CommentIn applies the In predicate on the "comment" field.

func CommentLT

func CommentLT(v string) predicate.Node

CommentLT applies the LT predicate on the "comment" field.

func CommentLTE

func CommentLTE(v string) predicate.Node

CommentLTE applies the LTE predicate on the "comment" field.

func CommentNEQ

func CommentNEQ(v string) predicate.Node

CommentNEQ applies the NEQ predicate on the "comment" field.

func CommentNotIn

func CommentNotIn(vs ...string) predicate.Node

CommentNotIn applies the NotIn predicate on the "comment" field.

func Copyright(v string) predicate.Node

Copyright applies equality check predicate on the "copyright" field. It's identical to CopyrightEQ.

func CopyrightContains

func CopyrightContains(v string) predicate.Node

CopyrightContains applies the Contains predicate on the "copyright" field.

func CopyrightContainsFold

func CopyrightContainsFold(v string) predicate.Node

CopyrightContainsFold applies the ContainsFold predicate on the "copyright" field.

func CopyrightEQ

func CopyrightEQ(v string) predicate.Node

CopyrightEQ applies the EQ predicate on the "copyright" field.

func CopyrightEqualFold

func CopyrightEqualFold(v string) predicate.Node

CopyrightEqualFold applies the EqualFold predicate on the "copyright" field.

func CopyrightGT

func CopyrightGT(v string) predicate.Node

CopyrightGT applies the GT predicate on the "copyright" field.

func CopyrightGTE

func CopyrightGTE(v string) predicate.Node

CopyrightGTE applies the GTE predicate on the "copyright" field.

func CopyrightHasPrefix

func CopyrightHasPrefix(v string) predicate.Node

CopyrightHasPrefix applies the HasPrefix predicate on the "copyright" field.

func CopyrightHasSuffix

func CopyrightHasSuffix(v string) predicate.Node

CopyrightHasSuffix applies the HasSuffix predicate on the "copyright" field.

func CopyrightIn

func CopyrightIn(vs ...string) predicate.Node

CopyrightIn applies the In predicate on the "copyright" field.

func CopyrightLT

func CopyrightLT(v string) predicate.Node

CopyrightLT applies the LT predicate on the "copyright" field.

func CopyrightLTE

func CopyrightLTE(v string) predicate.Node

CopyrightLTE applies the LTE predicate on the "copyright" field.

func CopyrightNEQ

func CopyrightNEQ(v string) predicate.Node

CopyrightNEQ applies the NEQ predicate on the "copyright" field.

func CopyrightNotIn

func CopyrightNotIn(vs ...string) predicate.Node

CopyrightNotIn applies the NotIn predicate on the "copyright" field.

func Description

func Description(v string) predicate.Node

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Node

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Node

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Node

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Node

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Node

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Node

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Node

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Node

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Node

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Node

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Node

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Node

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Node

DescriptionNotIn applies the NotIn predicate on the "description" field.

func FileName

func FileName(v string) predicate.Node

FileName applies equality check predicate on the "file_name" field. It's identical to FileNameEQ.

func FileNameContains

func FileNameContains(v string) predicate.Node

FileNameContains applies the Contains predicate on the "file_name" field.

func FileNameContainsFold

func FileNameContainsFold(v string) predicate.Node

FileNameContainsFold applies the ContainsFold predicate on the "file_name" field.

func FileNameEQ

func FileNameEQ(v string) predicate.Node

FileNameEQ applies the EQ predicate on the "file_name" field.

func FileNameEqualFold

func FileNameEqualFold(v string) predicate.Node

FileNameEqualFold applies the EqualFold predicate on the "file_name" field.

func FileNameGT

func FileNameGT(v string) predicate.Node

FileNameGT applies the GT predicate on the "file_name" field.

func FileNameGTE

func FileNameGTE(v string) predicate.Node

FileNameGTE applies the GTE predicate on the "file_name" field.

func FileNameHasPrefix

func FileNameHasPrefix(v string) predicate.Node

FileNameHasPrefix applies the HasPrefix predicate on the "file_name" field.

func FileNameHasSuffix

func FileNameHasSuffix(v string) predicate.Node

FileNameHasSuffix applies the HasSuffix predicate on the "file_name" field.

func FileNameIn

func FileNameIn(vs ...string) predicate.Node

FileNameIn applies the In predicate on the "file_name" field.

func FileNameLT

func FileNameLT(v string) predicate.Node

FileNameLT applies the LT predicate on the "file_name" field.

func FileNameLTE

func FileNameLTE(v string) predicate.Node

FileNameLTE applies the LTE predicate on the "file_name" field.

func FileNameNEQ

func FileNameNEQ(v string) predicate.Node

FileNameNEQ applies the NEQ predicate on the "file_name" field.

func FileNameNotIn

func FileNameNotIn(vs ...string) predicate.Node

FileNameNotIn applies the NotIn predicate on the "file_name" field.

func HasEdgeTypes

func HasEdgeTypes() predicate.Node

HasEdgeTypes applies the HasEdge predicate on the "edge_types" edge.

func HasEdgeTypesWith

func HasEdgeTypesWith(preds ...predicate.EdgeType) predicate.Node

HasEdgeTypesWith applies the HasEdge predicate on the "edge_types" edge with a given conditions (other predicates).

func HasExternalReferences

func HasExternalReferences() predicate.Node

HasExternalReferences applies the HasEdge predicate on the "external_references" edge.

func HasExternalReferencesWith

func HasExternalReferencesWith(preds ...predicate.ExternalReference) predicate.Node

HasExternalReferencesWith applies the HasEdge predicate on the "external_references" edge with a given conditions (other predicates).

func HasHashes

func HasHashes() predicate.Node

HasHashes applies the HasEdge predicate on the "hashes" edge.

func HasHashesWith

func HasHashesWith(preds ...predicate.HashesEntry) predicate.Node

HasHashesWith applies the HasEdge predicate on the "hashes" edge with a given conditions (other predicates).

func HasIdentifiers

func HasIdentifiers() predicate.Node

HasIdentifiers applies the HasEdge predicate on the "identifiers" edge.

func HasIdentifiersWith

func HasIdentifiersWith(preds ...predicate.IdentifiersEntry) predicate.Node

HasIdentifiersWith applies the HasEdge predicate on the "identifiers" edge with a given conditions (other predicates).

func HasNodeLists added in v0.1.4

func HasNodeLists() predicate.Node

HasNodeLists applies the HasEdge predicate on the "node_lists" edge.

func HasNodeListsWith added in v0.1.4

func HasNodeListsWith(preds ...predicate.NodeList) predicate.Node

HasNodeListsWith applies the HasEdge predicate on the "node_lists" edge with a given conditions (other predicates).

func HasNodes

func HasNodes() predicate.Node

HasNodes applies the HasEdge predicate on the "nodes" edge.

func HasNodesWith

func HasNodesWith(preds ...predicate.Node) predicate.Node

HasNodesWith applies the HasEdge predicate on the "nodes" edge with a given conditions (other predicates).

func HasOriginators

func HasOriginators() predicate.Node

HasOriginators applies the HasEdge predicate on the "originators" edge.

func HasOriginatorsWith

func HasOriginatorsWith(preds ...predicate.Person) predicate.Node

HasOriginatorsWith applies the HasEdge predicate on the "originators" edge with a given conditions (other predicates).

func HasPrimaryPurpose

func HasPrimaryPurpose() predicate.Node

HasPrimaryPurpose applies the HasEdge predicate on the "primary_purpose" edge.

func HasPrimaryPurposeWith

func HasPrimaryPurposeWith(preds ...predicate.Purpose) predicate.Node

HasPrimaryPurposeWith applies the HasEdge predicate on the "primary_purpose" edge with a given conditions (other predicates).

func HasSuppliers

func HasSuppliers() predicate.Node

HasSuppliers applies the HasEdge predicate on the "suppliers" edge.

func HasSuppliersWith

func HasSuppliersWith(preds ...predicate.Person) predicate.Node

HasSuppliersWith applies the HasEdge predicate on the "suppliers" edge with a given conditions (other predicates).

func HasToNodes

func HasToNodes() predicate.Node

HasToNodes applies the HasEdge predicate on the "to_nodes" edge.

func HasToNodesWith

func HasToNodesWith(preds ...predicate.Node) predicate.Node

HasToNodesWith applies the HasEdge predicate on the "to_nodes" edge with a given conditions (other predicates).

func ID

func ID(id string) predicate.Node

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Node

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Node

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Node

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Node

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Node

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Node

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Node

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Node

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Node

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Node

IDNotIn applies the NotIn predicate on the ID field.

func LicenseComments

func LicenseComments(v string) predicate.Node

LicenseComments applies equality check predicate on the "license_comments" field. It's identical to LicenseCommentsEQ.

func LicenseCommentsContains

func LicenseCommentsContains(v string) predicate.Node

LicenseCommentsContains applies the Contains predicate on the "license_comments" field.

func LicenseCommentsContainsFold

func LicenseCommentsContainsFold(v string) predicate.Node

LicenseCommentsContainsFold applies the ContainsFold predicate on the "license_comments" field.

func LicenseCommentsEQ

func LicenseCommentsEQ(v string) predicate.Node

LicenseCommentsEQ applies the EQ predicate on the "license_comments" field.

func LicenseCommentsEqualFold

func LicenseCommentsEqualFold(v string) predicate.Node

LicenseCommentsEqualFold applies the EqualFold predicate on the "license_comments" field.

func LicenseCommentsGT

func LicenseCommentsGT(v string) predicate.Node

LicenseCommentsGT applies the GT predicate on the "license_comments" field.

func LicenseCommentsGTE

func LicenseCommentsGTE(v string) predicate.Node

LicenseCommentsGTE applies the GTE predicate on the "license_comments" field.

func LicenseCommentsHasPrefix

func LicenseCommentsHasPrefix(v string) predicate.Node

LicenseCommentsHasPrefix applies the HasPrefix predicate on the "license_comments" field.

func LicenseCommentsHasSuffix

func LicenseCommentsHasSuffix(v string) predicate.Node

LicenseCommentsHasSuffix applies the HasSuffix predicate on the "license_comments" field.

func LicenseCommentsIn

func LicenseCommentsIn(vs ...string) predicate.Node

LicenseCommentsIn applies the In predicate on the "license_comments" field.

func LicenseCommentsLT

func LicenseCommentsLT(v string) predicate.Node

LicenseCommentsLT applies the LT predicate on the "license_comments" field.

func LicenseCommentsLTE

func LicenseCommentsLTE(v string) predicate.Node

LicenseCommentsLTE applies the LTE predicate on the "license_comments" field.

func LicenseCommentsNEQ

func LicenseCommentsNEQ(v string) predicate.Node

LicenseCommentsNEQ applies the NEQ predicate on the "license_comments" field.

func LicenseCommentsNotIn

func LicenseCommentsNotIn(vs ...string) predicate.Node

LicenseCommentsNotIn applies the NotIn predicate on the "license_comments" field.

func LicenseConcluded

func LicenseConcluded(v string) predicate.Node

LicenseConcluded applies equality check predicate on the "license_concluded" field. It's identical to LicenseConcludedEQ.

func LicenseConcludedContains

func LicenseConcludedContains(v string) predicate.Node

LicenseConcludedContains applies the Contains predicate on the "license_concluded" field.

func LicenseConcludedContainsFold

func LicenseConcludedContainsFold(v string) predicate.Node

LicenseConcludedContainsFold applies the ContainsFold predicate on the "license_concluded" field.

func LicenseConcludedEQ

func LicenseConcludedEQ(v string) predicate.Node

LicenseConcludedEQ applies the EQ predicate on the "license_concluded" field.

func LicenseConcludedEqualFold

func LicenseConcludedEqualFold(v string) predicate.Node

LicenseConcludedEqualFold applies the EqualFold predicate on the "license_concluded" field.

func LicenseConcludedGT

func LicenseConcludedGT(v string) predicate.Node

LicenseConcludedGT applies the GT predicate on the "license_concluded" field.

func LicenseConcludedGTE

func LicenseConcludedGTE(v string) predicate.Node

LicenseConcludedGTE applies the GTE predicate on the "license_concluded" field.

func LicenseConcludedHasPrefix

func LicenseConcludedHasPrefix(v string) predicate.Node

LicenseConcludedHasPrefix applies the HasPrefix predicate on the "license_concluded" field.

func LicenseConcludedHasSuffix

func LicenseConcludedHasSuffix(v string) predicate.Node

LicenseConcludedHasSuffix applies the HasSuffix predicate on the "license_concluded" field.

func LicenseConcludedIn

func LicenseConcludedIn(vs ...string) predicate.Node

LicenseConcludedIn applies the In predicate on the "license_concluded" field.

func LicenseConcludedLT

func LicenseConcludedLT(v string) predicate.Node

LicenseConcludedLT applies the LT predicate on the "license_concluded" field.

func LicenseConcludedLTE

func LicenseConcludedLTE(v string) predicate.Node

LicenseConcludedLTE applies the LTE predicate on the "license_concluded" field.

func LicenseConcludedNEQ

func LicenseConcludedNEQ(v string) predicate.Node

LicenseConcludedNEQ applies the NEQ predicate on the "license_concluded" field.

func LicenseConcludedNotIn

func LicenseConcludedNotIn(vs ...string) predicate.Node

LicenseConcludedNotIn applies the NotIn predicate on the "license_concluded" field.

func Name

func Name(v string) predicate.Node

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

func NameContains

func NameContains(v string) predicate.Node

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

func NameContainsFold

func NameContainsFold(v string) predicate.Node

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

func NameEQ

func NameEQ(v string) predicate.Node

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

func NameEqualFold

func NameEqualFold(v string) predicate.Node

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

func NameGT

func NameGT(v string) predicate.Node

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

func NameGTE

func NameGTE(v string) predicate.Node

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Node

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Node

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Node

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

func NameLTE

func NameLTE(v string) predicate.Node

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

func NameNEQ

func NameNEQ(v string) predicate.Node

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

func NameNotIn

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

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.Node) predicate.Node

Or groups predicates with the OR operator between them.

func ReleaseDate

func ReleaseDate(v time.Time) predicate.Node

ReleaseDate applies equality check predicate on the "release_date" field. It's identical to ReleaseDateEQ.

func ReleaseDateEQ

func ReleaseDateEQ(v time.Time) predicate.Node

ReleaseDateEQ applies the EQ predicate on the "release_date" field.

func ReleaseDateGT

func ReleaseDateGT(v time.Time) predicate.Node

ReleaseDateGT applies the GT predicate on the "release_date" field.

func ReleaseDateGTE

func ReleaseDateGTE(v time.Time) predicate.Node

ReleaseDateGTE applies the GTE predicate on the "release_date" field.

func ReleaseDateIn

func ReleaseDateIn(vs ...time.Time) predicate.Node

ReleaseDateIn applies the In predicate on the "release_date" field.

func ReleaseDateLT

func ReleaseDateLT(v time.Time) predicate.Node

ReleaseDateLT applies the LT predicate on the "release_date" field.

func ReleaseDateLTE

func ReleaseDateLTE(v time.Time) predicate.Node

ReleaseDateLTE applies the LTE predicate on the "release_date" field.

func ReleaseDateNEQ

func ReleaseDateNEQ(v time.Time) predicate.Node

ReleaseDateNEQ applies the NEQ predicate on the "release_date" field.

func ReleaseDateNotIn

func ReleaseDateNotIn(vs ...time.Time) predicate.Node

ReleaseDateNotIn applies the NotIn predicate on the "release_date" field.

func SourceInfo

func SourceInfo(v string) predicate.Node

SourceInfo applies equality check predicate on the "source_info" field. It's identical to SourceInfoEQ.

func SourceInfoContains

func SourceInfoContains(v string) predicate.Node

SourceInfoContains applies the Contains predicate on the "source_info" field.

func SourceInfoContainsFold

func SourceInfoContainsFold(v string) predicate.Node

SourceInfoContainsFold applies the ContainsFold predicate on the "source_info" field.

func SourceInfoEQ

func SourceInfoEQ(v string) predicate.Node

SourceInfoEQ applies the EQ predicate on the "source_info" field.

func SourceInfoEqualFold

func SourceInfoEqualFold(v string) predicate.Node

SourceInfoEqualFold applies the EqualFold predicate on the "source_info" field.

func SourceInfoGT

func SourceInfoGT(v string) predicate.Node

SourceInfoGT applies the GT predicate on the "source_info" field.

func SourceInfoGTE

func SourceInfoGTE(v string) predicate.Node

SourceInfoGTE applies the GTE predicate on the "source_info" field.

func SourceInfoHasPrefix

func SourceInfoHasPrefix(v string) predicate.Node

SourceInfoHasPrefix applies the HasPrefix predicate on the "source_info" field.

func SourceInfoHasSuffix

func SourceInfoHasSuffix(v string) predicate.Node

SourceInfoHasSuffix applies the HasSuffix predicate on the "source_info" field.

func SourceInfoIn

func SourceInfoIn(vs ...string) predicate.Node

SourceInfoIn applies the In predicate on the "source_info" field.

func SourceInfoLT

func SourceInfoLT(v string) predicate.Node

SourceInfoLT applies the LT predicate on the "source_info" field.

func SourceInfoLTE

func SourceInfoLTE(v string) predicate.Node

SourceInfoLTE applies the LTE predicate on the "source_info" field.

func SourceInfoNEQ

func SourceInfoNEQ(v string) predicate.Node

SourceInfoNEQ applies the NEQ predicate on the "source_info" field.

func SourceInfoNotIn

func SourceInfoNotIn(vs ...string) predicate.Node

SourceInfoNotIn applies the NotIn predicate on the "source_info" field.

func Summary

func Summary(v string) predicate.Node

Summary applies equality check predicate on the "summary" field. It's identical to SummaryEQ.

func SummaryContains

func SummaryContains(v string) predicate.Node

SummaryContains applies the Contains predicate on the "summary" field.

func SummaryContainsFold

func SummaryContainsFold(v string) predicate.Node

SummaryContainsFold applies the ContainsFold predicate on the "summary" field.

func SummaryEQ

func SummaryEQ(v string) predicate.Node

SummaryEQ applies the EQ predicate on the "summary" field.

func SummaryEqualFold

func SummaryEqualFold(v string) predicate.Node

SummaryEqualFold applies the EqualFold predicate on the "summary" field.

func SummaryGT

func SummaryGT(v string) predicate.Node

SummaryGT applies the GT predicate on the "summary" field.

func SummaryGTE

func SummaryGTE(v string) predicate.Node

SummaryGTE applies the GTE predicate on the "summary" field.

func SummaryHasPrefix

func SummaryHasPrefix(v string) predicate.Node

SummaryHasPrefix applies the HasPrefix predicate on the "summary" field.

func SummaryHasSuffix

func SummaryHasSuffix(v string) predicate.Node

SummaryHasSuffix applies the HasSuffix predicate on the "summary" field.

func SummaryIn

func SummaryIn(vs ...string) predicate.Node

SummaryIn applies the In predicate on the "summary" field.

func SummaryLT

func SummaryLT(v string) predicate.Node

SummaryLT applies the LT predicate on the "summary" field.

func SummaryLTE

func SummaryLTE(v string) predicate.Node

SummaryLTE applies the LTE predicate on the "summary" field.

func SummaryNEQ

func SummaryNEQ(v string) predicate.Node

SummaryNEQ applies the NEQ predicate on the "summary" field.

func SummaryNotIn

func SummaryNotIn(vs ...string) predicate.Node

SummaryNotIn applies the NotIn predicate on the "summary" field.

func TypeEQ

func TypeEQ(v Type) predicate.Node

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.Node

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.Node

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.Node

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func URLDownload

func URLDownload(v string) predicate.Node

URLDownload applies equality check predicate on the "url_download" field. It's identical to URLDownloadEQ.

func URLDownloadContains

func URLDownloadContains(v string) predicate.Node

URLDownloadContains applies the Contains predicate on the "url_download" field.

func URLDownloadContainsFold

func URLDownloadContainsFold(v string) predicate.Node

URLDownloadContainsFold applies the ContainsFold predicate on the "url_download" field.

func URLDownloadEQ

func URLDownloadEQ(v string) predicate.Node

URLDownloadEQ applies the EQ predicate on the "url_download" field.

func URLDownloadEqualFold

func URLDownloadEqualFold(v string) predicate.Node

URLDownloadEqualFold applies the EqualFold predicate on the "url_download" field.

func URLDownloadGT

func URLDownloadGT(v string) predicate.Node

URLDownloadGT applies the GT predicate on the "url_download" field.

func URLDownloadGTE

func URLDownloadGTE(v string) predicate.Node

URLDownloadGTE applies the GTE predicate on the "url_download" field.

func URLDownloadHasPrefix

func URLDownloadHasPrefix(v string) predicate.Node

URLDownloadHasPrefix applies the HasPrefix predicate on the "url_download" field.

func URLDownloadHasSuffix

func URLDownloadHasSuffix(v string) predicate.Node

URLDownloadHasSuffix applies the HasSuffix predicate on the "url_download" field.

func URLDownloadIn

func URLDownloadIn(vs ...string) predicate.Node

URLDownloadIn applies the In predicate on the "url_download" field.

func URLDownloadLT

func URLDownloadLT(v string) predicate.Node

URLDownloadLT applies the LT predicate on the "url_download" field.

func URLDownloadLTE

func URLDownloadLTE(v string) predicate.Node

URLDownloadLTE applies the LTE predicate on the "url_download" field.

func URLDownloadNEQ

func URLDownloadNEQ(v string) predicate.Node

URLDownloadNEQ applies the NEQ predicate on the "url_download" field.

func URLDownloadNotIn

func URLDownloadNotIn(vs ...string) predicate.Node

URLDownloadNotIn applies the NotIn predicate on the "url_download" field.

func URLHome

func URLHome(v string) predicate.Node

URLHome applies equality check predicate on the "url_home" field. It's identical to URLHomeEQ.

func URLHomeContains

func URLHomeContains(v string) predicate.Node

URLHomeContains applies the Contains predicate on the "url_home" field.

func URLHomeContainsFold

func URLHomeContainsFold(v string) predicate.Node

URLHomeContainsFold applies the ContainsFold predicate on the "url_home" field.

func URLHomeEQ

func URLHomeEQ(v string) predicate.Node

URLHomeEQ applies the EQ predicate on the "url_home" field.

func URLHomeEqualFold

func URLHomeEqualFold(v string) predicate.Node

URLHomeEqualFold applies the EqualFold predicate on the "url_home" field.

func URLHomeGT

func URLHomeGT(v string) predicate.Node

URLHomeGT applies the GT predicate on the "url_home" field.

func URLHomeGTE

func URLHomeGTE(v string) predicate.Node

URLHomeGTE applies the GTE predicate on the "url_home" field.

func URLHomeHasPrefix

func URLHomeHasPrefix(v string) predicate.Node

URLHomeHasPrefix applies the HasPrefix predicate on the "url_home" field.

func URLHomeHasSuffix

func URLHomeHasSuffix(v string) predicate.Node

URLHomeHasSuffix applies the HasSuffix predicate on the "url_home" field.

func URLHomeIn

func URLHomeIn(vs ...string) predicate.Node

URLHomeIn applies the In predicate on the "url_home" field.

func URLHomeLT

func URLHomeLT(v string) predicate.Node

URLHomeLT applies the LT predicate on the "url_home" field.

func URLHomeLTE

func URLHomeLTE(v string) predicate.Node

URLHomeLTE applies the LTE predicate on the "url_home" field.

func URLHomeNEQ

func URLHomeNEQ(v string) predicate.Node

URLHomeNEQ applies the NEQ predicate on the "url_home" field.

func URLHomeNotIn

func URLHomeNotIn(vs ...string) predicate.Node

URLHomeNotIn applies the NotIn predicate on the "url_home" field.

func ValidColumn

func ValidColumn(column string) bool

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

func ValidUntilDate

func ValidUntilDate(v time.Time) predicate.Node

ValidUntilDate applies equality check predicate on the "valid_until_date" field. It's identical to ValidUntilDateEQ.

func ValidUntilDateEQ

func ValidUntilDateEQ(v time.Time) predicate.Node

ValidUntilDateEQ applies the EQ predicate on the "valid_until_date" field.

func ValidUntilDateGT

func ValidUntilDateGT(v time.Time) predicate.Node

ValidUntilDateGT applies the GT predicate on the "valid_until_date" field.

func ValidUntilDateGTE

func ValidUntilDateGTE(v time.Time) predicate.Node

ValidUntilDateGTE applies the GTE predicate on the "valid_until_date" field.

func ValidUntilDateIn

func ValidUntilDateIn(vs ...time.Time) predicate.Node

ValidUntilDateIn applies the In predicate on the "valid_until_date" field.

func ValidUntilDateLT

func ValidUntilDateLT(v time.Time) predicate.Node

ValidUntilDateLT applies the LT predicate on the "valid_until_date" field.

func ValidUntilDateLTE

func ValidUntilDateLTE(v time.Time) predicate.Node

ValidUntilDateLTE applies the LTE predicate on the "valid_until_date" field.

func ValidUntilDateNEQ

func ValidUntilDateNEQ(v time.Time) predicate.Node

ValidUntilDateNEQ applies the NEQ predicate on the "valid_until_date" field.

func ValidUntilDateNotIn

func ValidUntilDateNotIn(vs ...time.Time) predicate.Node

ValidUntilDateNotIn applies the NotIn predicate on the "valid_until_date" field.

func Version

func Version(v string) predicate.Node

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionContains

func VersionContains(v string) predicate.Node

VersionContains applies the Contains predicate on the "version" field.

func VersionContainsFold

func VersionContainsFold(v string) predicate.Node

VersionContainsFold applies the ContainsFold predicate on the "version" field.

func VersionEQ

func VersionEQ(v string) predicate.Node

VersionEQ applies the EQ predicate on the "version" field.

func VersionEqualFold

func VersionEqualFold(v string) predicate.Node

VersionEqualFold applies the EqualFold predicate on the "version" field.

func VersionGT

func VersionGT(v string) predicate.Node

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v string) predicate.Node

VersionGTE applies the GTE predicate on the "version" field.

func VersionHasPrefix

func VersionHasPrefix(v string) predicate.Node

VersionHasPrefix applies the HasPrefix predicate on the "version" field.

func VersionHasSuffix

func VersionHasSuffix(v string) predicate.Node

VersionHasSuffix applies the HasSuffix predicate on the "version" field.

func VersionIn

func VersionIn(vs ...string) predicate.Node

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v string) predicate.Node

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v string) predicate.Node

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v string) predicate.Node

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...string) predicate.Node

VersionNotIn applies the NotIn predicate on the "version" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Node queries.

func ByBuildDate

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

ByBuildDate orders the results by the build_date field.

func ByComment

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

ByComment orders the results by the comment field.

func ByCopyright

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

ByCopyright orders the results by the copyright field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByEdgeTypes

func ByEdgeTypes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByEdgeTypes orders the results by edge_types terms.

func ByEdgeTypesCount

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

ByEdgeTypesCount orders the results by edge_types count.

func ByExternalReferences

func ByExternalReferences(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByExternalReferences orders the results by external_references terms.

func ByExternalReferencesCount

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

ByExternalReferencesCount orders the results by external_references count.

func ByFileName

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

ByFileName orders the results by the file_name field.

func ByHashes

func ByHashes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByHashes orders the results by hashes terms.

func ByHashesCount

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

ByHashesCount orders the results by hashes count.

func ByID

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

ByID orders the results by the id field.

func ByIdentifiers

func ByIdentifiers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByIdentifiers orders the results by identifiers terms.

func ByIdentifiersCount

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

ByIdentifiersCount orders the results by identifiers count.

func ByLicenseComments

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

ByLicenseComments orders the results by the license_comments field.

func ByLicenseConcluded

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

ByLicenseConcluded orders the results by the license_concluded field.

func ByName

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

ByName orders the results by the name field.

func ByNodeLists added in v0.1.4

func ByNodeLists(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByNodeLists orders the results by node_lists terms.

func ByNodeListsCount added in v0.1.4

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

ByNodeListsCount orders the results by node_lists count.

func ByNodes

func ByNodes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByNodes orders the results by nodes terms.

func ByNodesCount

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

ByNodesCount orders the results by nodes count.

func ByOriginators

func ByOriginators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOriginators orders the results by originators terms.

func ByOriginatorsCount

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

ByOriginatorsCount orders the results by originators count.

func ByPrimaryPurpose

func ByPrimaryPurpose(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByPrimaryPurpose orders the results by primary_purpose terms.

func ByPrimaryPurposeCount

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

ByPrimaryPurposeCount orders the results by primary_purpose count.

func ByReleaseDate

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

ByReleaseDate orders the results by the release_date field.

func BySourceInfo

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

BySourceInfo orders the results by the source_info field.

func BySummary

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

BySummary orders the results by the summary field.

func BySuppliers

func BySuppliers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

BySuppliers orders the results by suppliers terms.

func BySuppliersCount

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

BySuppliersCount orders the results by suppliers count.

func ByToNodes

func ByToNodes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByToNodes orders the results by to_nodes terms.

func ByToNodesCount

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

ByToNodesCount orders the results by to_nodes count.

func ByType

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

ByType orders the results by the type field.

func ByURLDownload

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

ByURLDownload orders the results by the url_download field.

func ByURLHome

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

ByURLHome orders the results by the url_home field.

func ByValidUntilDate

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

ByValidUntilDate orders the results by the valid_until_date field.

func ByVersion

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

ByVersion orders the results by the version field.

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypePACKAGE Type = "PACKAGE"
	TypeFILE    Type = "FILE"
)

Type values.

func (Type) String

func (_type Type) String() string

Jump to

Keyboard shortcuts

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