Mediate.Schema.Fact (mediate v0.1.0)

Copy Markdown View Source

One declared fact column. It holds the kind, the column that names the subject, the column that names the object, and the element type of a set-valued column. Mediate.Schema.fact/2 records it, and the seam reads it.

Summary

Types

What the column says: an attribute of the subject, an attribute of the object, or a grant.

t()

One fact declaration, as Mediate.Schema.fact/2 records it.

Types

kind()

@type kind() :: :subject_attribute | :object_attribute | :relationship

What the column says: an attribute of the subject, an attribute of the object, or a grant.

t()

@type t() :: %Mediate.Schema.Fact{
  column: atom(),
  element: atom() | nil,
  kind: kind(),
  object: atom() | nil,
  subject: atom() | nil
}

One fact declaration, as Mediate.Schema.fact/2 records it.