Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Blob) 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" // 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 the holds the parent relation/edge. ParentTable = "blobs" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "blob_parent" // LinksTable is the table the 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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
View Source
var Columns = []string{ FieldID, FieldUUID, }
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 Blob type.
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 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 ¶ added in v0.4.3
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.