builder

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the builder type in the database.
	Label = "builder"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldURI holds the string denoting the uri field in the database.
	FieldURI = "uri"
	// EdgeSlsaAttestations holds the string denoting the slsa_attestations edge name in mutations.
	EdgeSlsaAttestations = "slsa_attestations"
	// Table holds the table name of the builder in the database.
	Table = "builders"
	// SlsaAttestationsTable is the table that holds the slsa_attestations relation/edge.
	SlsaAttestationsTable = "slsa_attestations"
	// SlsaAttestationsInverseTable is the table name for the SLSAAttestation entity.
	// It exists in this package in order to avoid circular dependency with the "slsaattestation" package.
	SlsaAttestationsInverseTable = "slsa_attestations"
	// SlsaAttestationsColumn is the table column denoting the slsa_attestations relation/edge.
	SlsaAttestationsColumn = "built_by_id"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldURI,
}

Columns holds all SQL columns for builder fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Functions

func And

func And(predicates ...predicate.Builder) predicate.Builder

And groups predicates with the AND operator between them.

func HasSlsaAttestations

func HasSlsaAttestations() predicate.Builder

HasSlsaAttestations applies the HasEdge predicate on the "slsa_attestations" edge.

func HasSlsaAttestationsWith

func HasSlsaAttestationsWith(preds ...predicate.SLSAAttestation) predicate.Builder

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

func ID

func ID(id uuid.UUID) predicate.Builder

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Builder

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Builder

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Builder

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Builder

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Builder

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Builder

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Builder) predicate.Builder

Or groups predicates with the OR operator between them.

func URI

func URI(v string) predicate.Builder

URI applies equality check predicate on the "uri" field. It's identical to URIEQ.

func URIContains

func URIContains(v string) predicate.Builder

URIContains applies the Contains predicate on the "uri" field.

func URIContainsFold

func URIContainsFold(v string) predicate.Builder

URIContainsFold applies the ContainsFold predicate on the "uri" field.

func URIEQ

func URIEQ(v string) predicate.Builder

URIEQ applies the EQ predicate on the "uri" field.

func URIEqualFold

func URIEqualFold(v string) predicate.Builder

URIEqualFold applies the EqualFold predicate on the "uri" field.

func URIGT

func URIGT(v string) predicate.Builder

URIGT applies the GT predicate on the "uri" field.

func URIGTE

func URIGTE(v string) predicate.Builder

URIGTE applies the GTE predicate on the "uri" field.

func URIHasPrefix

func URIHasPrefix(v string) predicate.Builder

URIHasPrefix applies the HasPrefix predicate on the "uri" field.

func URIHasSuffix

func URIHasSuffix(v string) predicate.Builder

URIHasSuffix applies the HasSuffix predicate on the "uri" field.

func URIIn

func URIIn(vs ...string) predicate.Builder

URIIn applies the In predicate on the "uri" field.

func URILT

func URILT(v string) predicate.Builder

URILT applies the LT predicate on the "uri" field.

func URILTE

func URILTE(v string) predicate.Builder

URILTE applies the LTE predicate on the "uri" field.

func URINEQ

func URINEQ(v string) predicate.Builder

URINEQ applies the NEQ predicate on the "uri" field.

func URINotIn

func URINotIn(vs ...string) predicate.Builder

URINotIn applies the NotIn predicate on the "uri" field.

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 Builder queries.

func ByID

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

ByID orders the results by the id field.

func BySlsaAttestations

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

BySlsaAttestations orders the results by slsa_attestations terms.

func BySlsaAttestationsCount

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

BySlsaAttestationsCount orders the results by slsa_attestations count.

func ByURI

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

ByURI orders the results by the uri field.

Jump to

Keyboard shortcuts

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