Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.BinaryItem) predicate.BinaryItem
- func Content(v []byte) predicate.BinaryItem
- func ContentEQ(v []byte) predicate.BinaryItem
- func ContentGT(v []byte) predicate.BinaryItem
- func ContentGTE(v []byte) predicate.BinaryItem
- func ContentIn(vs ...[]byte) predicate.BinaryItem
- func ContentLT(v []byte) predicate.BinaryItem
- func ContentLTE(v []byte) predicate.BinaryItem
- func ContentNEQ(v []byte) predicate.BinaryItem
- func ContentNotIn(vs ...[]byte) predicate.BinaryItem
- func Format(v string) predicate.BinaryItem
- func FormatContains(v string) predicate.BinaryItem
- func FormatContainsFold(v string) predicate.BinaryItem
- func FormatEQ(v string) predicate.BinaryItem
- func FormatEqualFold(v string) predicate.BinaryItem
- func FormatGT(v string) predicate.BinaryItem
- func FormatGTE(v string) predicate.BinaryItem
- func FormatHasPrefix(v string) predicate.BinaryItem
- func FormatHasSuffix(v string) predicate.BinaryItem
- func FormatIn(vs ...string) predicate.BinaryItem
- func FormatLT(v string) predicate.BinaryItem
- func FormatLTE(v string) predicate.BinaryItem
- func FormatNEQ(v string) predicate.BinaryItem
- func FormatNotIn(vs ...string) predicate.BinaryItem
- func HasTransaction() predicate.BinaryItem
- func HasTransactionWith(preds ...predicate.Transaction) predicate.BinaryItem
- func ID(id int) predicate.BinaryItem
- func IDEQ(id int) predicate.BinaryItem
- func IDGT(id int) predicate.BinaryItem
- func IDGTE(id int) predicate.BinaryItem
- func IDIn(ids ...int) predicate.BinaryItem
- func IDLT(id int) predicate.BinaryItem
- func IDLTE(id int) predicate.BinaryItem
- func IDNEQ(id int) predicate.BinaryItem
- func IDNotIn(ids ...int) predicate.BinaryItem
- func Length(v int) predicate.BinaryItem
- func LengthEQ(v int) predicate.BinaryItem
- func LengthGT(v int) predicate.BinaryItem
- func LengthGTE(v int) predicate.BinaryItem
- func LengthIn(vs ...int) predicate.BinaryItem
- func LengthIsNil() predicate.BinaryItem
- func LengthLT(v int) predicate.BinaryItem
- func LengthLTE(v int) predicate.BinaryItem
- func LengthNEQ(v int) predicate.BinaryItem
- func LengthNotIn(vs ...int) predicate.BinaryItem
- func LengthNotNil() predicate.BinaryItem
- func Not(p predicate.BinaryItem) predicate.BinaryItem
- func Or(predicates ...predicate.BinaryItem) predicate.BinaryItem
- func URL(v string) predicate.BinaryItem
- func URLContains(v string) predicate.BinaryItem
- func URLContainsFold(v string) predicate.BinaryItem
- func URLEQ(v string) predicate.BinaryItem
- func URLEqualFold(v string) predicate.BinaryItem
- func URLGT(v string) predicate.BinaryItem
- func URLGTE(v string) predicate.BinaryItem
- func URLHasPrefix(v string) predicate.BinaryItem
- func URLHasSuffix(v string) predicate.BinaryItem
- func URLIn(vs ...string) predicate.BinaryItem
- func URLIsNil() predicate.BinaryItem
- func URLLT(v string) predicate.BinaryItem
- func URLLTE(v string) predicate.BinaryItem
- func URLNEQ(v string) predicate.BinaryItem
- func URLNotIn(vs ...string) predicate.BinaryItem
- func URLNotNil() predicate.BinaryItem
- func ValidColumn(column string) bool
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldFormat, FieldLength, FieldContent, FieldURL, }
Columns holds all SQL columns for binaryitem fields.
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.
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 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 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 ¶
func Not(p predicate.BinaryItem) predicate.BinaryItem
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 ¶
func URL(v string) predicate.BinaryItem
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.