Documentation

Index

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 And

      func And(predicates ...predicate.Blob) predicate.Blob

        And groups predicates with the AND operator between them.

        func HasLinks() predicate.Blob

          HasLinks applies the HasEdge predicate on the "links" edge.

          func HasLinksWith

          func HasLinksWith(preds ...predicate.Blob) predicate.Blob

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

            func HasParent

            func HasParent() predicate.Blob

              HasParent applies the HasEdge predicate on the "parent" edge.

              func HasParentWith

              func HasParentWith(preds ...predicate.Blob) predicate.Blob

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

                func ID

                func ID(id uuid.UUID) predicate.Blob

                  ID filters vertices based on their ID field.

                  func IDEQ

                  func IDEQ(id uuid.UUID) predicate.Blob

                    IDEQ applies the EQ predicate on the ID field.

                    func IDGT

                    func IDGT(id uuid.UUID) predicate.Blob

                      IDGT applies the GT predicate on the ID field.

                      func IDGTE

                      func IDGTE(id uuid.UUID) predicate.Blob

                        IDGTE applies the GTE predicate on the ID field.

                        func IDIn

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

                          IDIn applies the In predicate on the ID field.

                          func IDLT

                          func IDLT(id uuid.UUID) predicate.Blob

                            IDLT applies the LT predicate on the ID field.

                            func IDLTE

                            func IDLTE(id uuid.UUID) predicate.Blob

                              IDLTE applies the LTE predicate on the ID field.

                              func IDNEQ

                              func IDNEQ(id uuid.UUID) predicate.Blob

                                IDNEQ applies the NEQ predicate on the ID field.

                                func IDNotIn

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

                                  IDNotIn applies the NotIn predicate on the ID field.

                                  func Not

                                    Not applies the not operator on the given predicate.

                                    func Or

                                    func Or(predicates ...predicate.Blob) predicate.Blob

                                      Or groups predicates with the OR operator between them.

                                      func UUID

                                      func UUID(v uuid.UUID) predicate.Blob

                                        UUID applies equality check predicate on the "uuid" field. It's identical to UUIDEQ.

                                        func UUIDEQ

                                        func UUIDEQ(v uuid.UUID) predicate.Blob

                                          UUIDEQ applies the EQ predicate on the "uuid" field.

                                          func UUIDGT

                                          func UUIDGT(v uuid.UUID) predicate.Blob

                                            UUIDGT applies the GT predicate on the "uuid" field.

                                            func UUIDGTE

                                            func UUIDGTE(v uuid.UUID) predicate.Blob

                                              UUIDGTE applies the GTE predicate on the "uuid" field.

                                              func UUIDIn

                                              func UUIDIn(vs ...uuid.UUID) predicate.Blob

                                                UUIDIn applies the In predicate on the "uuid" field.

                                                func UUIDLT

                                                func UUIDLT(v uuid.UUID) predicate.Blob

                                                  UUIDLT applies the LT predicate on the "uuid" field.

                                                  func UUIDLTE

                                                  func UUIDLTE(v uuid.UUID) predicate.Blob

                                                    UUIDLTE applies the LTE predicate on the "uuid" field.

                                                    func UUIDNEQ

                                                    func UUIDNEQ(v uuid.UUID) predicate.Blob

                                                      UUIDNEQ applies the NEQ predicate on the "uuid" field.

                                                      func UUIDNotIn

                                                      func UUIDNotIn(vs ...uuid.UUID) predicate.Blob

                                                        UUIDNotIn applies the NotIn predicate on the "uuid" 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.

                                                          Source Files