skillblob

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const DefaultCompression = CompressionNone

CompressionNone is the default value of the Compression enum.

Variables

View Source
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
)

Columns holds all SQL columns for skillblob fields.

Functions

func And

func And(predicates ...predicate.SkillBlob) predicate.SkillBlob

And groups predicates with the AND operator between them.

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

func ContentBytes(v []byte) predicate.SkillBlob

ContentBytes applies equality check predicate on the "content_bytes" field. It's identical to ContentBytesEQ.

func ContentBytesEQ

func ContentBytesEQ(v []byte) predicate.SkillBlob

ContentBytesEQ applies the EQ predicate on the "content_bytes" field.

func ContentBytesGT

func ContentBytesGT(v []byte) predicate.SkillBlob

ContentBytesGT applies the GT predicate on the "content_bytes" field.

func ContentBytesGTE

func ContentBytesGTE(v []byte) predicate.SkillBlob

ContentBytesGTE applies the GTE predicate on the "content_bytes" field.

func ContentBytesIn

func ContentBytesIn(vs ...[]byte) predicate.SkillBlob

ContentBytesIn applies the In predicate on the "content_bytes" field.

func ContentBytesLT

func ContentBytesLT(v []byte) predicate.SkillBlob

ContentBytesLT applies the LT predicate on the "content_bytes" field.

func ContentBytesLTE

func ContentBytesLTE(v []byte) predicate.SkillBlob

ContentBytesLTE applies the LTE predicate on the "content_bytes" field.

func ContentBytesNEQ

func ContentBytesNEQ(v []byte) predicate.SkillBlob

ContentBytesNEQ applies the NEQ predicate on the "content_bytes" field.

func ContentBytesNotIn

func ContentBytesNotIn(vs ...[]byte) predicate.SkillBlob

ContentBytesNotIn applies the NotIn predicate on the "content_bytes" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.SkillBlob

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.SkillBlob

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.SkillBlob

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.SkillBlob

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.SkillBlob

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.SkillBlob

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.SkillBlob

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.SkillBlob

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.SkillBlob

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasFiles

func HasFiles() predicate.SkillBlob

HasFiles applies the HasEdge predicate on the "files" edge.

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 ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.SkillBlob

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.SkillBlob

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.SkillBlob

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.SkillBlob

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.SkillBlob

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.SkillBlob

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func Sha256

func Sha256(v string) predicate.SkillBlob

Sha256 applies equality check predicate on the "sha256" field. It's identical to Sha256EQ.

func Sha256Contains

func Sha256Contains(v string) predicate.SkillBlob

Sha256Contains applies the Contains predicate on the "sha256" field.

func Sha256ContainsFold

func Sha256ContainsFold(v string) predicate.SkillBlob

Sha256ContainsFold applies the ContainsFold predicate on the "sha256" field.

func Sha256EQ

func Sha256EQ(v string) predicate.SkillBlob

Sha256EQ applies the EQ predicate on the "sha256" field.

func Sha256EqualFold

func Sha256EqualFold(v string) predicate.SkillBlob

Sha256EqualFold applies the EqualFold predicate on the "sha256" field.

func Sha256GT

func Sha256GT(v string) predicate.SkillBlob

Sha256GT applies the GT predicate on the "sha256" field.

func Sha256GTE

func Sha256GTE(v string) predicate.SkillBlob

Sha256GTE applies the GTE predicate on the "sha256" field.

func Sha256HasPrefix

func Sha256HasPrefix(v string) predicate.SkillBlob

Sha256HasPrefix applies the HasPrefix predicate on the "sha256" field.

func Sha256HasSuffix

func Sha256HasSuffix(v string) predicate.SkillBlob

Sha256HasSuffix applies the HasSuffix predicate on the "sha256" field.

func Sha256In

func Sha256In(vs ...string) predicate.SkillBlob

Sha256In applies the In predicate on the "sha256" field.

func Sha256LT

func Sha256LT(v string) predicate.SkillBlob

Sha256LT applies the LT predicate on the "sha256" field.

func Sha256LTE

func Sha256LTE(v string) predicate.SkillBlob

Sha256LTE applies the LTE predicate on the "sha256" field.

func Sha256NEQ

func Sha256NEQ(v string) predicate.SkillBlob

Sha256NEQ applies the NEQ predicate on the "sha256" field.

func Sha256NotIn

func Sha256NotIn(vs ...string) predicate.SkillBlob

Sha256NotIn applies the NotIn predicate on the "sha256" field.

func SizeBytes

func SizeBytes(v int64) predicate.SkillBlob

SizeBytes applies equality check predicate on the "size_bytes" field. It's identical to SizeBytesEQ.

func SizeBytesEQ

func SizeBytesEQ(v int64) predicate.SkillBlob

SizeBytesEQ applies the EQ predicate on the "size_bytes" field.

func SizeBytesGT

func SizeBytesGT(v int64) predicate.SkillBlob

SizeBytesGT applies the GT predicate on the "size_bytes" field.

func SizeBytesGTE

func SizeBytesGTE(v int64) predicate.SkillBlob

SizeBytesGTE applies the GTE predicate on the "size_bytes" field.

func SizeBytesIn

func SizeBytesIn(vs ...int64) predicate.SkillBlob

SizeBytesIn applies the In predicate on the "size_bytes" field.

func SizeBytesLT

func SizeBytesLT(v int64) predicate.SkillBlob

SizeBytesLT applies the LT predicate on the "size_bytes" field.

func SizeBytesLTE

func SizeBytesLTE(v int64) predicate.SkillBlob

SizeBytesLTE applies the LTE predicate on the "size_bytes" field.

func SizeBytesNEQ

func SizeBytesNEQ(v int64) predicate.SkillBlob

SizeBytesNEQ applies the NEQ predicate on the "size_bytes" field.

func SizeBytesNotIn

func SizeBytesNotIn(vs ...int64) predicate.SkillBlob

SizeBytesNotIn applies the NotIn predicate on the "size_bytes" field.

func ValidColumn

func ValidColumn(column string) bool

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

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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