MnemosyneEcto.Ecto.Links (mnemosyne_ecto v0.2.0)

Copy Markdown View Source

Ecto type that stores graph edge links as a JSON map.

On the Elixir side, links are %{atom() => MapSet.t(String.t())}. On the DB side, they are %{String.t() => [String.t()]} stored as JSON (jsonb on PostgreSQL, TEXT/JSON on SQLite). Portable across both engines because it relies only on Ecto's :map base type.

Summary

Functions

Callback implementation for Ecto.Type.embed_as/1.

Functions

embed_as(_)

Callback implementation for Ecto.Type.embed_as/1.