Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Blob) predicate.Blob
- func Count(v int) predicate.Blob
- func CountEQ(v int) predicate.Blob
- func CountGT(v int) predicate.Blob
- func CountGTE(v int) predicate.Blob
- func CountIn(vs ...int) predicate.Blob
- func CountLT(v int) predicate.Blob
- func CountLTE(v int) predicate.Blob
- func CountNEQ(v int) predicate.Blob
- func CountNotIn(vs ...int) predicate.Blob
- func HasLinks() predicate.Blob
- func HasLinksWith(preds ...predicate.Blob) predicate.Blob
- func HasParent() predicate.Blob
- func HasParentWith(preds ...predicate.Blob) predicate.Blob
- func ID(id uuid.UUID) predicate.Blob
- func IDEQ(id uuid.UUID) predicate.Blob
- func IDGT(id uuid.UUID) predicate.Blob
- func IDGTE(id uuid.UUID) predicate.Blob
- func IDIn(ids ...uuid.UUID) predicate.Blob
- func IDLT(id uuid.UUID) predicate.Blob
- func IDLTE(id uuid.UUID) predicate.Blob
- func IDNEQ(id uuid.UUID) predicate.Blob
- func IDNotIn(ids ...uuid.UUID) predicate.Blob
- func Not(p predicate.Blob) predicate.Blob
- func Or(predicates ...predicate.Blob) predicate.Blob
- func UUID(v uuid.UUID) predicate.Blob
- func UUIDEQ(v uuid.UUID) predicate.Blob
- func UUIDGT(v uuid.UUID) predicate.Blob
- func UUIDGTE(v uuid.UUID) predicate.Blob
- func UUIDIn(vs ...uuid.UUID) predicate.Blob
- func UUIDLT(v uuid.UUID) predicate.Blob
- func UUIDLTE(v uuid.UUID) predicate.Blob
- func UUIDNEQ(v uuid.UUID) predicate.Blob
- func UUIDNotIn(vs ...uuid.UUID) predicate.Blob
- func ValidColumn(column string) bool
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 )
View Source
var Columns = []string{ FieldID, FieldUUID, FieldCount, }
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 Count ¶
Count applies equality check predicate on the "count" field. It's identical to CountEQ.
func CountNotIn ¶
CountNotIn applies the NotIn predicate on the "count" field.
func HasLinksWith ¶
HasLinksWith applies the HasEdge predicate on the "links" edge with a given conditions (other predicates).
func HasParentWith ¶
HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.