blob

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the blob type in the database.
	Label = "blob"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUUID holds the string denoting the uuid field in the database.
	FieldUUID = "uuid"
	// FieldCount holds the string denoting the count field in the database.
	FieldCount = "count"
	// EdgeParent holds the string denoting the parent edge name in mutations.
	EdgeParent = "parent"
	// EdgeLinks holds the string denoting the links edge name in mutations.
	EdgeLinks = "links"
	// Table holds the table name of the blob in the database.
	Table = "blobs"
	// ParentTable is the table that holds the parent relation/edge.
	ParentTable = "blobs"
	// ParentColumn is the table column denoting the parent relation/edge.
	ParentColumn = "blob_parent"
	// LinksTable is the table that holds the links relation/edge. The primary key declared below.
	LinksTable = "blob_links"
)

Variables

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

Columns holds all SQL columns for blob fields.

View Source
var ForeignKeys = []string{
	"blob_parent",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "blobs" table and are not defined as standalone fields in the schema.

View Source
var (
	// LinksPrimaryKey and LinksColumn2 are the table columns denoting the
	// primary key for the links relation (M2M).
	LinksPrimaryKey = []string{"blob_id", "link_id"}
)

Functions

func And

func And(predicates ...predicate.Blob) predicate.Blob

And groups predicates with the AND operator between them.

func Count

func Count(v int) predicate.Blob

Count applies equality check predicate on the "count" field. It's identical to CountEQ.

func CountEQ

func CountEQ(v int) predicate.Blob

CountEQ applies the EQ predicate on the "count" field.

func CountGT

func CountGT(v int) predicate.Blob

CountGT applies the GT predicate on the "count" field.

func CountGTE

func CountGTE(v int) predicate.Blob

CountGTE applies the GTE predicate on the "count" field.

func CountIn

func CountIn(vs ...int) predicate.Blob

CountIn applies the In predicate on the "count" field.

func CountLT

func CountLT(v int) predicate.Blob

CountLT applies the LT predicate on the "count" field.

func CountLTE

func CountLTE(v int) predicate.Blob

CountLTE applies the LTE predicate on the "count" field.

func CountNEQ

func CountNEQ(v int) predicate.Blob

CountNEQ applies the NEQ predicate on the "count" field.

func CountNotIn

func CountNotIn(vs ...int) predicate.Blob

CountNotIn applies the NotIn predicate on the "count" field.

func HasLinks() predicate.Blob

HasLinks applies the HasEdge predicate on the "links" edge.

func HasLinksWith

func HasLinksWith(preds ...predicate.Blob) predicate.Blob

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

func HasParent

func HasParent() predicate.Blob

HasParent applies the HasEdge predicate on the "parent" edge.

func HasParentWith

func HasParentWith(preds ...predicate.Blob) predicate.Blob

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

func ID

func ID(id uuid.UUID) predicate.Blob

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Blob

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Blob

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Blob

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Blob

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Blob

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Blob

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func UUID

func UUID(v uuid.UUID) predicate.Blob

UUID applies equality check predicate on the "uuid" field. It's identical to UUIDEQ.

func UUIDEQ

func UUIDEQ(v uuid.UUID) predicate.Blob

UUIDEQ applies the EQ predicate on the "uuid" field.

func UUIDGT

func UUIDGT(v uuid.UUID) predicate.Blob

UUIDGT applies the GT predicate on the "uuid" field.

func UUIDGTE

func UUIDGTE(v uuid.UUID) predicate.Blob

UUIDGTE applies the GTE predicate on the "uuid" field.

func UUIDIn

func UUIDIn(vs ...uuid.UUID) predicate.Blob

UUIDIn applies the In predicate on the "uuid" field.

func UUIDLT

func UUIDLT(v uuid.UUID) predicate.Blob

UUIDLT applies the LT predicate on the "uuid" field.

func UUIDLTE

func UUIDLTE(v uuid.UUID) predicate.Blob

UUIDLTE applies the LTE predicate on the "uuid" field.

func UUIDNEQ

func UUIDNEQ(v uuid.UUID) predicate.Blob

UUIDNEQ applies the NEQ predicate on the "uuid" field.

func UUIDNotIn

func UUIDNotIn(vs ...uuid.UUID) predicate.Blob

UUIDNotIn applies the NotIn predicate on the "uuid" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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