binaryitem

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the binaryitem type in the database.
	Label = "binary_item"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldFormat holds the string denoting the format field in the database.
	FieldFormat = "format"
	// FieldLength holds the string denoting the length field in the database.
	FieldLength = "length"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// FieldURL holds the string denoting the url field in the database.
	FieldURL = "url"
	// EdgeTransaction holds the string denoting the transaction edge name in mutations.
	EdgeTransaction = "transaction"
	// Table holds the table name of the binaryitem in the database.
	Table = "binary_items"
	// TransactionTable is the table the holds the transaction relation/edge.
	TransactionTable = "binary_items"
	// TransactionInverseTable is the table name for the Transaction entity.
	// It exists in this package in order to avoid circular dependency with the "transaction" package.
	TransactionInverseTable = "transactions"
	// TransactionColumn is the table column denoting the transaction relation/edge.
	TransactionColumn = "transaction_images"
)

Variables

Columns holds all SQL columns for binaryitem fields.

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

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

View Source
var (
	// FormatValidator is a validator for the "format" field. It is called by the builders before save.
	FormatValidator func(string) error
)

Functions

func And

func And(predicates ...predicate.BinaryItem) predicate.BinaryItem

And groups predicates with the AND operator between them.

func Content

func Content(v []byte) predicate.BinaryItem

Content applies equality check predicate on the "content" field. It's identical to ContentEQ.

func ContentEQ

func ContentEQ(v []byte) predicate.BinaryItem

ContentEQ applies the EQ predicate on the "content" field.

func ContentGT

func ContentGT(v []byte) predicate.BinaryItem

ContentGT applies the GT predicate on the "content" field.

func ContentGTE

func ContentGTE(v []byte) predicate.BinaryItem

ContentGTE applies the GTE predicate on the "content" field.

func ContentIn

func ContentIn(vs ...[]byte) predicate.BinaryItem

ContentIn applies the In predicate on the "content" field.

func ContentLT

func ContentLT(v []byte) predicate.BinaryItem

ContentLT applies the LT predicate on the "content" field.

func ContentLTE

func ContentLTE(v []byte) predicate.BinaryItem

ContentLTE applies the LTE predicate on the "content" field.

func ContentNEQ

func ContentNEQ(v []byte) predicate.BinaryItem

ContentNEQ applies the NEQ predicate on the "content" field.

func ContentNotIn

func ContentNotIn(vs ...[]byte) predicate.BinaryItem

ContentNotIn applies the NotIn predicate on the "content" field.

func Format

func Format(v string) predicate.BinaryItem

Format applies equality check predicate on the "format" field. It's identical to FormatEQ.

func FormatContains

func FormatContains(v string) predicate.BinaryItem

FormatContains applies the Contains predicate on the "format" field.

func FormatContainsFold

func FormatContainsFold(v string) predicate.BinaryItem

FormatContainsFold applies the ContainsFold predicate on the "format" field.

func FormatEQ

func FormatEQ(v string) predicate.BinaryItem

FormatEQ applies the EQ predicate on the "format" field.

func FormatEqualFold

func FormatEqualFold(v string) predicate.BinaryItem

FormatEqualFold applies the EqualFold predicate on the "format" field.

func FormatGT

func FormatGT(v string) predicate.BinaryItem

FormatGT applies the GT predicate on the "format" field.

func FormatGTE

func FormatGTE(v string) predicate.BinaryItem

FormatGTE applies the GTE predicate on the "format" field.

func FormatHasPrefix

func FormatHasPrefix(v string) predicate.BinaryItem

FormatHasPrefix applies the HasPrefix predicate on the "format" field.

func FormatHasSuffix

func FormatHasSuffix(v string) predicate.BinaryItem

FormatHasSuffix applies the HasSuffix predicate on the "format" field.

func FormatIn

func FormatIn(vs ...string) predicate.BinaryItem

FormatIn applies the In predicate on the "format" field.

func FormatLT

func FormatLT(v string) predicate.BinaryItem

FormatLT applies the LT predicate on the "format" field.

func FormatLTE

func FormatLTE(v string) predicate.BinaryItem

FormatLTE applies the LTE predicate on the "format" field.

func FormatNEQ

func FormatNEQ(v string) predicate.BinaryItem

FormatNEQ applies the NEQ predicate on the "format" field.

func FormatNotIn

func FormatNotIn(vs ...string) predicate.BinaryItem

FormatNotIn applies the NotIn predicate on the "format" field.

func HasTransaction

func HasTransaction() predicate.BinaryItem

HasTransaction applies the HasEdge predicate on the "transaction" edge.

func HasTransactionWith

func HasTransactionWith(preds ...predicate.Transaction) predicate.BinaryItem

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

func ID

func ID(id int) predicate.BinaryItem

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.BinaryItem

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.BinaryItem

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.BinaryItem

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.BinaryItem

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.BinaryItem

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.BinaryItem

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.BinaryItem

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.BinaryItem

IDNotIn applies the NotIn predicate on the ID field.

func Length

func Length(v int) predicate.BinaryItem

Length applies equality check predicate on the "length" field. It's identical to LengthEQ.

func LengthEQ

func LengthEQ(v int) predicate.BinaryItem

LengthEQ applies the EQ predicate on the "length" field.

func LengthGT

func LengthGT(v int) predicate.BinaryItem

LengthGT applies the GT predicate on the "length" field.

func LengthGTE

func LengthGTE(v int) predicate.BinaryItem

LengthGTE applies the GTE predicate on the "length" field.

func LengthIn

func LengthIn(vs ...int) predicate.BinaryItem

LengthIn applies the In predicate on the "length" field.

func LengthIsNil

func LengthIsNil() predicate.BinaryItem

LengthIsNil applies the IsNil predicate on the "length" field.

func LengthLT

func LengthLT(v int) predicate.BinaryItem

LengthLT applies the LT predicate on the "length" field.

func LengthLTE

func LengthLTE(v int) predicate.BinaryItem

LengthLTE applies the LTE predicate on the "length" field.

func LengthNEQ

func LengthNEQ(v int) predicate.BinaryItem

LengthNEQ applies the NEQ predicate on the "length" field.

func LengthNotIn

func LengthNotIn(vs ...int) predicate.BinaryItem

LengthNotIn applies the NotIn predicate on the "length" field.

func LengthNotNil

func LengthNotNil() predicate.BinaryItem

LengthNotNil applies the NotNil predicate on the "length" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.BinaryItem) predicate.BinaryItem

Or groups predicates with the OR operator between them.

func URL

URL applies equality check predicate on the "url" field. It's identical to URLEQ.

func URLContains

func URLContains(v string) predicate.BinaryItem

URLContains applies the Contains predicate on the "url" field.

func URLContainsFold

func URLContainsFold(v string) predicate.BinaryItem

URLContainsFold applies the ContainsFold predicate on the "url" field.

func URLEQ

func URLEQ(v string) predicate.BinaryItem

URLEQ applies the EQ predicate on the "url" field.

func URLEqualFold

func URLEqualFold(v string) predicate.BinaryItem

URLEqualFold applies the EqualFold predicate on the "url" field.

func URLGT

func URLGT(v string) predicate.BinaryItem

URLGT applies the GT predicate on the "url" field.

func URLGTE

func URLGTE(v string) predicate.BinaryItem

URLGTE applies the GTE predicate on the "url" field.

func URLHasPrefix

func URLHasPrefix(v string) predicate.BinaryItem

URLHasPrefix applies the HasPrefix predicate on the "url" field.

func URLHasSuffix

func URLHasSuffix(v string) predicate.BinaryItem

URLHasSuffix applies the HasSuffix predicate on the "url" field.

func URLIn

func URLIn(vs ...string) predicate.BinaryItem

URLIn applies the In predicate on the "url" field.

func URLIsNil

func URLIsNil() predicate.BinaryItem

URLIsNil applies the IsNil predicate on the "url" field.

func URLLT

func URLLT(v string) predicate.BinaryItem

URLLT applies the LT predicate on the "url" field.

func URLLTE

func URLLTE(v string) predicate.BinaryItem

URLLTE applies the LTE predicate on the "url" field.

func URLNEQ

func URLNEQ(v string) predicate.BinaryItem

URLNEQ applies the NEQ predicate on the "url" field.

func URLNotIn

func URLNotIn(vs ...string) predicate.BinaryItem

URLNotIn applies the NotIn predicate on the "url" field.

func URLNotNil

func URLNotNil() predicate.BinaryItem

URLNotNil applies the NotNil predicate on the "url" 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