Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.SkillBlob) predicate.SkillBlob
- func CompressionEQ(v Compression) predicate.SkillBlob
- func CompressionIn(vs ...Compression) predicate.SkillBlob
- func CompressionNEQ(v Compression) predicate.SkillBlob
- func CompressionNotIn(vs ...Compression) predicate.SkillBlob
- func CompressionValidator(c Compression) error
- func ContentBytes(v []byte) predicate.SkillBlob
- func ContentBytesEQ(v []byte) predicate.SkillBlob
- func ContentBytesGT(v []byte) predicate.SkillBlob
- func ContentBytesGTE(v []byte) predicate.SkillBlob
- func ContentBytesIn(vs ...[]byte) predicate.SkillBlob
- func ContentBytesLT(v []byte) predicate.SkillBlob
- func ContentBytesLTE(v []byte) predicate.SkillBlob
- func ContentBytesNEQ(v []byte) predicate.SkillBlob
- func ContentBytesNotIn(vs ...[]byte) predicate.SkillBlob
- func CreatedAt(v time.Time) predicate.SkillBlob
- func CreatedAtEQ(v time.Time) predicate.SkillBlob
- func CreatedAtGT(v time.Time) predicate.SkillBlob
- func CreatedAtGTE(v time.Time) predicate.SkillBlob
- func CreatedAtIn(vs ...time.Time) predicate.SkillBlob
- func CreatedAtLT(v time.Time) predicate.SkillBlob
- func CreatedAtLTE(v time.Time) predicate.SkillBlob
- func CreatedAtNEQ(v time.Time) predicate.SkillBlob
- func CreatedAtNotIn(vs ...time.Time) predicate.SkillBlob
- func HasFiles() predicate.SkillBlob
- func HasFilesWith(preds ...predicate.SkillVersionFile) predicate.SkillBlob
- func ID(id uuid.UUID) predicate.SkillBlob
- func IDEQ(id uuid.UUID) predicate.SkillBlob
- func IDGT(id uuid.UUID) predicate.SkillBlob
- func IDGTE(id uuid.UUID) predicate.SkillBlob
- func IDIn(ids ...uuid.UUID) predicate.SkillBlob
- func IDLT(id uuid.UUID) predicate.SkillBlob
- func IDLTE(id uuid.UUID) predicate.SkillBlob
- func IDNEQ(id uuid.UUID) predicate.SkillBlob
- func IDNotIn(ids ...uuid.UUID) predicate.SkillBlob
- func Not(p predicate.SkillBlob) predicate.SkillBlob
- func Or(predicates ...predicate.SkillBlob) predicate.SkillBlob
- func Sha256(v string) predicate.SkillBlob
- func Sha256Contains(v string) predicate.SkillBlob
- func Sha256ContainsFold(v string) predicate.SkillBlob
- func Sha256EQ(v string) predicate.SkillBlob
- func Sha256EqualFold(v string) predicate.SkillBlob
- func Sha256GT(v string) predicate.SkillBlob
- func Sha256GTE(v string) predicate.SkillBlob
- func Sha256HasPrefix(v string) predicate.SkillBlob
- func Sha256HasSuffix(v string) predicate.SkillBlob
- func Sha256In(vs ...string) predicate.SkillBlob
- func Sha256LT(v string) predicate.SkillBlob
- func Sha256LTE(v string) predicate.SkillBlob
- func Sha256NEQ(v string) predicate.SkillBlob
- func Sha256NotIn(vs ...string) predicate.SkillBlob
- func SizeBytes(v int64) predicate.SkillBlob
- func SizeBytesEQ(v int64) predicate.SkillBlob
- func SizeBytesGT(v int64) predicate.SkillBlob
- func SizeBytesGTE(v int64) predicate.SkillBlob
- func SizeBytesIn(vs ...int64) predicate.SkillBlob
- func SizeBytesLT(v int64) predicate.SkillBlob
- func SizeBytesLTE(v int64) predicate.SkillBlob
- func SizeBytesNEQ(v int64) predicate.SkillBlob
- func SizeBytesNotIn(vs ...int64) predicate.SkillBlob
- func ValidColumn(column string) bool
- type Compression
- type OrderOption
- func ByCompression(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByFilesCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func BySha256(opts ...sql.OrderTermOption) OrderOption
- func BySizeBytes(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the skillblob type in the database. Label = "skill_blob" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldSha256 holds the string denoting the sha256 field in the database. FieldSha256 = "sha256" // FieldSizeBytes holds the string denoting the size_bytes field in the database. FieldSizeBytes = "size_bytes" // FieldCompression holds the string denoting the compression field in the database. FieldCompression = "compression" // FieldContentBytes holds the string denoting the content_bytes field in the database. FieldContentBytes = "content_bytes" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeFiles holds the string denoting the files edge name in mutations. EdgeFiles = "files" // Table holds the table name of the skillblob in the database. Table = "skill_blobs" // FilesTable is the table that holds the files relation/edge. FilesTable = "skill_version_files" // FilesInverseTable is the table name for the SkillVersionFile entity. // It exists in this package in order to avoid circular dependency with the "skillversionfile" package. FilesInverseTable = "skill_version_files" // FilesColumn is the table column denoting the files relation/edge. FilesColumn = "content_blob_id" )
const DefaultCompression = CompressionNone
CompressionNone is the default value of the Compression enum.
Variables ¶
var ( // Sha256Validator is a validator for the "sha256" field. It is called by the builders before save. Sha256Validator func(string) error // DefaultSizeBytes holds the default value on creation for the "size_bytes" field. DefaultSizeBytes int64 // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldSha256, FieldSizeBytes, FieldCompression, FieldContentBytes, FieldCreatedAt, }
Columns holds all SQL columns for skillblob fields.
Functions ¶
func CompressionEQ ¶
func CompressionEQ(v Compression) predicate.SkillBlob
CompressionEQ applies the EQ predicate on the "compression" field.
func CompressionIn ¶
func CompressionIn(vs ...Compression) predicate.SkillBlob
CompressionIn applies the In predicate on the "compression" field.
func CompressionNEQ ¶
func CompressionNEQ(v Compression) predicate.SkillBlob
CompressionNEQ applies the NEQ predicate on the "compression" field.
func CompressionNotIn ¶
func CompressionNotIn(vs ...Compression) predicate.SkillBlob
CompressionNotIn applies the NotIn predicate on the "compression" field.
func CompressionValidator ¶
func CompressionValidator(c Compression) error
CompressionValidator is a validator for the "compression" field enum values. It is called by the builders before save.
func ContentBytes ¶
ContentBytes applies equality check predicate on the "content_bytes" field. It's identical to ContentBytesEQ.
func ContentBytesEQ ¶
ContentBytesEQ applies the EQ predicate on the "content_bytes" field.
func ContentBytesGT ¶
ContentBytesGT applies the GT predicate on the "content_bytes" field.
func ContentBytesGTE ¶
ContentBytesGTE applies the GTE predicate on the "content_bytes" field.
func ContentBytesIn ¶
ContentBytesIn applies the In predicate on the "content_bytes" field.
func ContentBytesLT ¶
ContentBytesLT applies the LT predicate on the "content_bytes" field.
func ContentBytesLTE ¶
ContentBytesLTE applies the LTE predicate on the "content_bytes" field.
func ContentBytesNEQ ¶
ContentBytesNEQ applies the NEQ predicate on the "content_bytes" field.
func ContentBytesNotIn ¶
ContentBytesNotIn applies the NotIn predicate on the "content_bytes" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasFilesWith ¶
func HasFilesWith(preds ...predicate.SkillVersionFile) predicate.SkillBlob
HasFilesWith applies the HasEdge predicate on the "files" edge with a given conditions (other predicates).
func Sha256 ¶
Sha256 applies equality check predicate on the "sha256" field. It's identical to Sha256EQ.
func Sha256Contains ¶
Sha256Contains applies the Contains predicate on the "sha256" field.
func Sha256ContainsFold ¶
Sha256ContainsFold applies the ContainsFold predicate on the "sha256" field.
func Sha256EqualFold ¶
Sha256EqualFold applies the EqualFold predicate on the "sha256" field.
func Sha256HasPrefix ¶
Sha256HasPrefix applies the HasPrefix predicate on the "sha256" field.
func Sha256HasSuffix ¶
Sha256HasSuffix applies the HasSuffix predicate on the "sha256" field.
func Sha256NotIn ¶
Sha256NotIn applies the NotIn predicate on the "sha256" field.
func SizeBytes ¶
SizeBytes applies equality check predicate on the "size_bytes" field. It's identical to SizeBytesEQ.
func SizeBytesEQ ¶
SizeBytesEQ applies the EQ predicate on the "size_bytes" field.
func SizeBytesGT ¶
SizeBytesGT applies the GT predicate on the "size_bytes" field.
func SizeBytesGTE ¶
SizeBytesGTE applies the GTE predicate on the "size_bytes" field.
func SizeBytesIn ¶
SizeBytesIn applies the In predicate on the "size_bytes" field.
func SizeBytesLT ¶
SizeBytesLT applies the LT predicate on the "size_bytes" field.
func SizeBytesLTE ¶
SizeBytesLTE applies the LTE predicate on the "size_bytes" field.
func SizeBytesNEQ ¶
SizeBytesNEQ applies the NEQ predicate on the "size_bytes" field.
func SizeBytesNotIn ¶
SizeBytesNotIn applies the NotIn predicate on the "size_bytes" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Compression ¶
type Compression string
Compression defines the type for the "compression" enum field.
const ( CompressionNone Compression = "none" CompressionGzip Compression = "gzip" )
Compression values.
func (Compression) String ¶
func (c Compression) String() string
type OrderOption ¶
OrderOption defines the ordering options for the SkillBlob queries.
func ByCompression ¶
func ByCompression(opts ...sql.OrderTermOption) OrderOption
ByCompression orders the results by the compression field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByFiles ¶
func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByFiles orders the results by files terms.
func ByFilesCount ¶
func ByFilesCount(opts ...sql.OrderTermOption) OrderOption
ByFilesCount orders the results by files count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func BySha256 ¶
func BySha256(opts ...sql.OrderTermOption) OrderOption
BySha256 orders the results by the sha256 field.
func BySizeBytes ¶
func BySizeBytes(opts ...sql.OrderTermOption) OrderOption
BySizeBytes orders the results by the size_bytes field.