certification

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the certification type in the database.
	Label = "certification"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldAnchorID holds the string denoting the anchor_id field in the database.
	FieldAnchorID = "anchor_id"
	// FieldHash holds the string denoting the hash field in the database.
	FieldHash = "hash"
	// FieldDataID holds the string denoting the data_id field in the database.
	FieldDataID = "data_id"
	// FieldProof holds the string denoting the proof field in the database.
	FieldProof = "proof"
	// Table holds the table name of the certification in the database.
	Table = "certifications"
)

Variables

View Source
var (
	// AnchorIDValidator is a validator for the "anchor_id" field. It is called by the builders before save.
	AnchorIDValidator func(int) error
	// HashValidator is a validator for the "hash" field. It is called by the builders before save.
	HashValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for certification fields.

Functions

func AnchorID

func AnchorID(v int) predicate.Certification

AnchorID applies equality check predicate on the "anchor_id" field. It's identical to AnchorIDEQ.

func AnchorIDEQ

func AnchorIDEQ(v int) predicate.Certification

AnchorIDEQ applies the EQ predicate on the "anchor_id" field.

func AnchorIDGT

func AnchorIDGT(v int) predicate.Certification

AnchorIDGT applies the GT predicate on the "anchor_id" field.

func AnchorIDGTE

func AnchorIDGTE(v int) predicate.Certification

AnchorIDGTE applies the GTE predicate on the "anchor_id" field.

func AnchorIDIn

func AnchorIDIn(vs ...int) predicate.Certification

AnchorIDIn applies the In predicate on the "anchor_id" field.

func AnchorIDLT

func AnchorIDLT(v int) predicate.Certification

AnchorIDLT applies the LT predicate on the "anchor_id" field.

func AnchorIDLTE

func AnchorIDLTE(v int) predicate.Certification

AnchorIDLTE applies the LTE predicate on the "anchor_id" field.

func AnchorIDNEQ

func AnchorIDNEQ(v int) predicate.Certification

AnchorIDNEQ applies the NEQ predicate on the "anchor_id" field.

func AnchorIDNotIn

func AnchorIDNotIn(vs ...int) predicate.Certification

AnchorIDNotIn applies the NotIn predicate on the "anchor_id" field.

func And

And groups predicates with the AND operator between them.

func DataID

func DataID(v string) predicate.Certification

DataID applies equality check predicate on the "data_id" field. It's identical to DataIDEQ.

func DataIDContains

func DataIDContains(v string) predicate.Certification

DataIDContains applies the Contains predicate on the "data_id" field.

func DataIDContainsFold

func DataIDContainsFold(v string) predicate.Certification

DataIDContainsFold applies the ContainsFold predicate on the "data_id" field.

func DataIDEQ

func DataIDEQ(v string) predicate.Certification

DataIDEQ applies the EQ predicate on the "data_id" field.

func DataIDEqualFold

func DataIDEqualFold(v string) predicate.Certification

DataIDEqualFold applies the EqualFold predicate on the "data_id" field.

func DataIDGT

func DataIDGT(v string) predicate.Certification

DataIDGT applies the GT predicate on the "data_id" field.

func DataIDGTE

func DataIDGTE(v string) predicate.Certification

DataIDGTE applies the GTE predicate on the "data_id" field.

func DataIDHasPrefix

func DataIDHasPrefix(v string) predicate.Certification

DataIDHasPrefix applies the HasPrefix predicate on the "data_id" field.

func DataIDHasSuffix

func DataIDHasSuffix(v string) predicate.Certification

DataIDHasSuffix applies the HasSuffix predicate on the "data_id" field.

func DataIDIn

func DataIDIn(vs ...string) predicate.Certification

DataIDIn applies the In predicate on the "data_id" field.

func DataIDLT

func DataIDLT(v string) predicate.Certification

DataIDLT applies the LT predicate on the "data_id" field.

func DataIDLTE

func DataIDLTE(v string) predicate.Certification

DataIDLTE applies the LTE predicate on the "data_id" field.

func DataIDNEQ

func DataIDNEQ(v string) predicate.Certification

DataIDNEQ applies the NEQ predicate on the "data_id" field.

func DataIDNotIn

func DataIDNotIn(vs ...string) predicate.Certification

DataIDNotIn applies the NotIn predicate on the "data_id" field.

func Hash

Hash applies equality check predicate on the "hash" field. It's identical to HashEQ.

func HashContains

func HashContains(v string) predicate.Certification

HashContains applies the Contains predicate on the "hash" field.

func HashContainsFold

func HashContainsFold(v string) predicate.Certification

HashContainsFold applies the ContainsFold predicate on the "hash" field.

func HashEQ

func HashEQ(v string) predicate.Certification

HashEQ applies the EQ predicate on the "hash" field.

func HashEqualFold

func HashEqualFold(v string) predicate.Certification

HashEqualFold applies the EqualFold predicate on the "hash" field.

func HashGT

func HashGT(v string) predicate.Certification

HashGT applies the GT predicate on the "hash" field.

func HashGTE

func HashGTE(v string) predicate.Certification

HashGTE applies the GTE predicate on the "hash" field.

func HashHasPrefix

func HashHasPrefix(v string) predicate.Certification

HashHasPrefix applies the HasPrefix predicate on the "hash" field.

func HashHasSuffix

func HashHasSuffix(v string) predicate.Certification

HashHasSuffix applies the HasSuffix predicate on the "hash" field.

func HashIn

func HashIn(vs ...string) predicate.Certification

HashIn applies the In predicate on the "hash" field.

func HashLT

func HashLT(v string) predicate.Certification

HashLT applies the LT predicate on the "hash" field.

func HashLTE

func HashLTE(v string) predicate.Certification

HashLTE applies the LTE predicate on the "hash" field.

func HashNEQ

func HashNEQ(v string) predicate.Certification

HashNEQ applies the NEQ predicate on the "hash" field.

func HashNotIn

func HashNotIn(vs ...string) predicate.Certification

HashNotIn applies the NotIn predicate on the "hash" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Certification

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Certification

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Certification

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ProofIsNil added in v1.3.0

func ProofIsNil() predicate.Certification

ProofIsNil applies the IsNil predicate on the "proof" field.

func ProofNotNil added in v1.3.0

func ProofNotNil() predicate.Certification

ProofNotNil applies the NotNil predicate on the "proof" 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 Certification queries.

func ByAnchorID

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

ByAnchorID orders the results by the anchor_id field.

func ByDataID

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

ByDataID orders the results by the data_id field.

func ByHash

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

ByHash orders the results by the hash field.

func ByID

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

ByID orders the results by the id field.

Jump to

Keyboard shortcuts

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