tool

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: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the tool type in the database.
	Label = "tool"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldMetadataID holds the string denoting the metadata_id field in the database.
	FieldMetadataID = "metadata_id"
	// 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"
	// FieldVendor holds the string denoting the vendor field in the database.
	FieldVendor = "vendor"
	// EdgeMetadata holds the string denoting the metadata edge name in mutations.
	EdgeMetadata = "metadata"
	// Table holds the table name of the tool in the database.
	Table = "tools"
	// MetadataTable is the table that holds the metadata relation/edge.
	MetadataTable = "tools"
	// MetadataInverseTable is the table name for the Metadata entity.
	// It exists in this package in order to avoid circular dependency with the "metadata" package.
	MetadataInverseTable = "metadata"
	// MetadataColumn is the table column denoting the metadata relation/edge.
	MetadataColumn = "metadata_id"
)

Variables

Columns holds all SQL columns for tool fields.

Functions

func And

func And(predicates ...predicate.Tool) predicate.Tool

And groups predicates with the AND operator between them.

func HasMetadata

func HasMetadata() predicate.Tool

HasMetadata applies the HasEdge predicate on the "metadata" edge.

func HasMetadataWith

func HasMetadataWith(preds ...predicate.Metadata) predicate.Tool

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

func ID

func ID(id int) predicate.Tool

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Tool

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Tool

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Tool

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Tool

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Tool

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Tool

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Tool

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Tool

IDNotIn applies the NotIn predicate on the ID field.

func MetadataID

func MetadataID(v string) predicate.Tool

MetadataID applies equality check predicate on the "metadata_id" field. It's identical to MetadataIDEQ.

func MetadataIDContains

func MetadataIDContains(v string) predicate.Tool

MetadataIDContains applies the Contains predicate on the "metadata_id" field.

func MetadataIDContainsFold

func MetadataIDContainsFold(v string) predicate.Tool

MetadataIDContainsFold applies the ContainsFold predicate on the "metadata_id" field.

func MetadataIDEQ

func MetadataIDEQ(v string) predicate.Tool

MetadataIDEQ applies the EQ predicate on the "metadata_id" field.

func MetadataIDEqualFold

func MetadataIDEqualFold(v string) predicate.Tool

MetadataIDEqualFold applies the EqualFold predicate on the "metadata_id" field.

func MetadataIDGT

func MetadataIDGT(v string) predicate.Tool

MetadataIDGT applies the GT predicate on the "metadata_id" field.

func MetadataIDGTE

func MetadataIDGTE(v string) predicate.Tool

MetadataIDGTE applies the GTE predicate on the "metadata_id" field.

func MetadataIDHasPrefix

func MetadataIDHasPrefix(v string) predicate.Tool

MetadataIDHasPrefix applies the HasPrefix predicate on the "metadata_id" field.

func MetadataIDHasSuffix

func MetadataIDHasSuffix(v string) predicate.Tool

MetadataIDHasSuffix applies the HasSuffix predicate on the "metadata_id" field.

func MetadataIDIn

func MetadataIDIn(vs ...string) predicate.Tool

MetadataIDIn applies the In predicate on the "metadata_id" field.

func MetadataIDIsNil

func MetadataIDIsNil() predicate.Tool

MetadataIDIsNil applies the IsNil predicate on the "metadata_id" field.

func MetadataIDLT

func MetadataIDLT(v string) predicate.Tool

MetadataIDLT applies the LT predicate on the "metadata_id" field.

func MetadataIDLTE

func MetadataIDLTE(v string) predicate.Tool

MetadataIDLTE applies the LTE predicate on the "metadata_id" field.

func MetadataIDNEQ

func MetadataIDNEQ(v string) predicate.Tool

MetadataIDNEQ applies the NEQ predicate on the "metadata_id" field.

func MetadataIDNotIn

func MetadataIDNotIn(vs ...string) predicate.Tool

MetadataIDNotIn applies the NotIn predicate on the "metadata_id" field.

func MetadataIDNotNil

func MetadataIDNotNil() predicate.Tool

MetadataIDNotNil applies the NotNil predicate on the "metadata_id" field.

func Name

func Name(v string) predicate.Tool

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

func NameContains

func NameContains(v string) predicate.Tool

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

func NameContainsFold

func NameContainsFold(v string) predicate.Tool

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

func NameEQ

func NameEQ(v string) predicate.Tool

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

func NameEqualFold

func NameEqualFold(v string) predicate.Tool

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

func NameGT

func NameGT(v string) predicate.Tool

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

func NameGTE

func NameGTE(v string) predicate.Tool

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Tool

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Tool

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Tool

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

func NameLTE

func NameLTE(v string) predicate.Tool

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

func NameNEQ

func NameNEQ(v string) predicate.Tool

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

func NameNotIn

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

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

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

func Vendor

func Vendor(v string) predicate.Tool

Vendor applies equality check predicate on the "vendor" field. It's identical to VendorEQ.

func VendorContains

func VendorContains(v string) predicate.Tool

VendorContains applies the Contains predicate on the "vendor" field.

func VendorContainsFold

func VendorContainsFold(v string) predicate.Tool

VendorContainsFold applies the ContainsFold predicate on the "vendor" field.

func VendorEQ

func VendorEQ(v string) predicate.Tool

VendorEQ applies the EQ predicate on the "vendor" field.

func VendorEqualFold

func VendorEqualFold(v string) predicate.Tool

VendorEqualFold applies the EqualFold predicate on the "vendor" field.

func VendorGT

func VendorGT(v string) predicate.Tool

VendorGT applies the GT predicate on the "vendor" field.

func VendorGTE

func VendorGTE(v string) predicate.Tool

VendorGTE applies the GTE predicate on the "vendor" field.

func VendorHasPrefix

func VendorHasPrefix(v string) predicate.Tool

VendorHasPrefix applies the HasPrefix predicate on the "vendor" field.

func VendorHasSuffix

func VendorHasSuffix(v string) predicate.Tool

VendorHasSuffix applies the HasSuffix predicate on the "vendor" field.

func VendorIn

func VendorIn(vs ...string) predicate.Tool

VendorIn applies the In predicate on the "vendor" field.

func VendorLT

func VendorLT(v string) predicate.Tool

VendorLT applies the LT predicate on the "vendor" field.

func VendorLTE

func VendorLTE(v string) predicate.Tool

VendorLTE applies the LTE predicate on the "vendor" field.

func VendorNEQ

func VendorNEQ(v string) predicate.Tool

VendorNEQ applies the NEQ predicate on the "vendor" field.

func VendorNotIn

func VendorNotIn(vs ...string) predicate.Tool

VendorNotIn applies the NotIn predicate on the "vendor" field.

func Version

func Version(v string) predicate.Tool

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

func VersionContains

func VersionContains(v string) predicate.Tool

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

func VersionContainsFold

func VersionContainsFold(v string) predicate.Tool

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

func VersionEQ

func VersionEQ(v string) predicate.Tool

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

func VersionEqualFold

func VersionEqualFold(v string) predicate.Tool

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

func VersionGT

func VersionGT(v string) predicate.Tool

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

func VersionGTE

func VersionGTE(v string) predicate.Tool

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

func VersionHasPrefix

func VersionHasPrefix(v string) predicate.Tool

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

func VersionHasSuffix

func VersionHasSuffix(v string) predicate.Tool

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

func VersionIn

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

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

func VersionLT

func VersionLT(v string) predicate.Tool

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

func VersionLTE

func VersionLTE(v string) predicate.Tool

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

func VersionNEQ

func VersionNEQ(v string) predicate.Tool

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

func VersionNotIn

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

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Tool queries.

func ByID

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

ByID orders the results by the id field.

func ByMetadataField

func ByMetadataField(field string, opts ...sql.OrderTermOption) OrderOption

ByMetadataField orders the results by metadata field.

func ByMetadataID

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

ByMetadataID orders the results by the metadata_id field.

func ByName

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

ByName orders the results by the name field.

func ByVendor

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

ByVendor orders the results by the vendor field.

func ByVersion

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

ByVersion orders the results by the version field.

Jump to

Keyboard shortcuts

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