Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tool) predicate.Tool
- func HasMetadata() predicate.Tool
- func HasMetadataWith(preds ...predicate.Metadata) predicate.Tool
- func ID(id int) predicate.Tool
- func IDEQ(id int) predicate.Tool
- func IDGT(id int) predicate.Tool
- func IDGTE(id int) predicate.Tool
- func IDIn(ids ...int) predicate.Tool
- func IDLT(id int) predicate.Tool
- func IDLTE(id int) predicate.Tool
- func IDNEQ(id int) predicate.Tool
- func IDNotIn(ids ...int) predicate.Tool
- func MetadataID(v string) predicate.Tool
- func MetadataIDContains(v string) predicate.Tool
- func MetadataIDContainsFold(v string) predicate.Tool
- func MetadataIDEQ(v string) predicate.Tool
- func MetadataIDEqualFold(v string) predicate.Tool
- func MetadataIDGT(v string) predicate.Tool
- func MetadataIDGTE(v string) predicate.Tool
- func MetadataIDHasPrefix(v string) predicate.Tool
- func MetadataIDHasSuffix(v string) predicate.Tool
- func MetadataIDIn(vs ...string) predicate.Tool
- func MetadataIDIsNil() predicate.Tool
- func MetadataIDLT(v string) predicate.Tool
- func MetadataIDLTE(v string) predicate.Tool
- func MetadataIDNEQ(v string) predicate.Tool
- func MetadataIDNotIn(vs ...string) predicate.Tool
- func MetadataIDNotNil() predicate.Tool
- func Name(v string) predicate.Tool
- func NameContains(v string) predicate.Tool
- func NameContainsFold(v string) predicate.Tool
- func NameEQ(v string) predicate.Tool
- func NameEqualFold(v string) predicate.Tool
- func NameGT(v string) predicate.Tool
- func NameGTE(v string) predicate.Tool
- func NameHasPrefix(v string) predicate.Tool
- func NameHasSuffix(v string) predicate.Tool
- func NameIn(vs ...string) predicate.Tool
- func NameLT(v string) predicate.Tool
- func NameLTE(v string) predicate.Tool
- func NameNEQ(v string) predicate.Tool
- func NameNotIn(vs ...string) predicate.Tool
- func Not(p predicate.Tool) predicate.Tool
- func Or(predicates ...predicate.Tool) predicate.Tool
- func ValidColumn(column string) bool
- func Vendor(v string) predicate.Tool
- func VendorContains(v string) predicate.Tool
- func VendorContainsFold(v string) predicate.Tool
- func VendorEQ(v string) predicate.Tool
- func VendorEqualFold(v string) predicate.Tool
- func VendorGT(v string) predicate.Tool
- func VendorGTE(v string) predicate.Tool
- func VendorHasPrefix(v string) predicate.Tool
- func VendorHasSuffix(v string) predicate.Tool
- func VendorIn(vs ...string) predicate.Tool
- func VendorLT(v string) predicate.Tool
- func VendorLTE(v string) predicate.Tool
- func VendorNEQ(v string) predicate.Tool
- func VendorNotIn(vs ...string) predicate.Tool
- func Version(v string) predicate.Tool
- func VersionContains(v string) predicate.Tool
- func VersionContainsFold(v string) predicate.Tool
- func VersionEQ(v string) predicate.Tool
- func VersionEqualFold(v string) predicate.Tool
- func VersionGT(v string) predicate.Tool
- func VersionGTE(v string) predicate.Tool
- func VersionHasPrefix(v string) predicate.Tool
- func VersionHasSuffix(v string) predicate.Tool
- func VersionIn(vs ...string) predicate.Tool
- func VersionLT(v string) predicate.Tool
- func VersionLTE(v string) predicate.Tool
- func VersionNEQ(v string) predicate.Tool
- func VersionNotIn(vs ...string) predicate.Tool
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMetadataField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByMetadataID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByVendor(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldMetadataID, FieldName, FieldVersion, FieldVendor, }
Columns holds all SQL columns for tool fields.
Functions ¶
func HasMetadata ¶
HasMetadata applies the HasEdge predicate on the "metadata" edge.
func HasMetadataWith ¶
HasMetadataWith applies the HasEdge predicate on the "metadata" edge with a given conditions (other predicates).
func MetadataID ¶
MetadataID applies equality check predicate on the "metadata_id" field. It's identical to MetadataIDEQ.
func MetadataIDContains ¶
MetadataIDContains applies the Contains predicate on the "metadata_id" field.
func MetadataIDContainsFold ¶
MetadataIDContainsFold applies the ContainsFold predicate on the "metadata_id" field.
func MetadataIDEQ ¶
MetadataIDEQ applies the EQ predicate on the "metadata_id" field.
func MetadataIDEqualFold ¶
MetadataIDEqualFold applies the EqualFold predicate on the "metadata_id" field.
func MetadataIDGT ¶
MetadataIDGT applies the GT predicate on the "metadata_id" field.
func MetadataIDGTE ¶
MetadataIDGTE applies the GTE predicate on the "metadata_id" field.
func MetadataIDHasPrefix ¶
MetadataIDHasPrefix applies the HasPrefix predicate on the "metadata_id" field.
func MetadataIDHasSuffix ¶
MetadataIDHasSuffix applies the HasSuffix predicate on the "metadata_id" field.
func MetadataIDIn ¶
MetadataIDIn applies the In predicate on the "metadata_id" field.
func MetadataIDIsNil ¶
MetadataIDIsNil applies the IsNil predicate on the "metadata_id" field.
func MetadataIDLT ¶
MetadataIDLT applies the LT predicate on the "metadata_id" field.
func MetadataIDLTE ¶
MetadataIDLTE applies the LTE predicate on the "metadata_id" field.
func MetadataIDNEQ ¶
MetadataIDNEQ applies the NEQ predicate on the "metadata_id" field.
func MetadataIDNotIn ¶
MetadataIDNotIn applies the NotIn predicate on the "metadata_id" field.
func MetadataIDNotNil ¶
MetadataIDNotNil applies the NotNil predicate on the "metadata_id" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Vendor ¶
Vendor applies equality check predicate on the "vendor" field. It's identical to VendorEQ.
func VendorContains ¶
VendorContains applies the Contains predicate on the "vendor" field.
func VendorContainsFold ¶
VendorContainsFold applies the ContainsFold predicate on the "vendor" field.
func VendorEqualFold ¶
VendorEqualFold applies the EqualFold predicate on the "vendor" field.
func VendorHasPrefix ¶
VendorHasPrefix applies the HasPrefix predicate on the "vendor" field.
func VendorHasSuffix ¶
VendorHasSuffix applies the HasSuffix predicate on the "vendor" field.
func VendorNotIn ¶
VendorNotIn applies the NotIn predicate on the "vendor" field.
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionContains ¶
VersionContains applies the Contains predicate on the "version" field.
func VersionContainsFold ¶
VersionContainsFold applies the ContainsFold predicate on the "version" field.
func VersionEqualFold ¶
VersionEqualFold applies the EqualFold predicate on the "version" field.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionHasPrefix ¶
VersionHasPrefix applies the HasPrefix predicate on the "version" field.
func VersionHasSuffix ¶
VersionHasSuffix applies the HasSuffix predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
type OrderOption ¶
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.