Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Builder) predicate.Builder
- func HasSlsaAttestations() predicate.Builder
- func HasSlsaAttestationsWith(preds ...predicate.SLSAAttestation) predicate.Builder
- func ID(id uuid.UUID) predicate.Builder
- func IDEQ(id uuid.UUID) predicate.Builder
- func IDGT(id uuid.UUID) predicate.Builder
- func IDGTE(id uuid.UUID) predicate.Builder
- func IDIn(ids ...uuid.UUID) predicate.Builder
- func IDLT(id uuid.UUID) predicate.Builder
- func IDLTE(id uuid.UUID) predicate.Builder
- func IDNEQ(id uuid.UUID) predicate.Builder
- func IDNotIn(ids ...uuid.UUID) predicate.Builder
- func Not(p predicate.Builder) predicate.Builder
- func Or(predicates ...predicate.Builder) predicate.Builder
- func URI(v string) predicate.Builder
- func URIContains(v string) predicate.Builder
- func URIContainsFold(v string) predicate.Builder
- func URIEQ(v string) predicate.Builder
- func URIEqualFold(v string) predicate.Builder
- func URIGT(v string) predicate.Builder
- func URIGTE(v string) predicate.Builder
- func URIHasPrefix(v string) predicate.Builder
- func URIHasSuffix(v string) predicate.Builder
- func URIIn(vs ...string) predicate.Builder
- func URILT(v string) predicate.Builder
- func URILTE(v string) predicate.Builder
- func URINEQ(v string) predicate.Builder
- func URINotIn(vs ...string) predicate.Builder
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldURI, }
Columns holds all SQL columns for builder fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Functions ¶
func HasSlsaAttestations ¶
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 URIContains ¶
URIContains applies the Contains predicate on the "uri" field.
func URIContainsFold ¶
URIContainsFold applies the ContainsFold predicate on the "uri" field.
func URIEqualFold ¶
URIEqualFold applies the EqualFold predicate on the "uri" field.
func URIHasPrefix ¶
URIHasPrefix applies the HasPrefix predicate on the "uri" field.
func URIHasSuffix ¶
URIHasSuffix applies the HasSuffix predicate on the "uri" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.