Jido. Memory. Store. Postgres
(Jido Memory v1.0.0)
View Source
Postgres-backed memory store.
This adapter persists canonical Jido.Memory.Record structs in Postgres
through a caller-owned Ecto repo. jido_memory keeps Ecto and Postgrex as
optional dependencies, so callers must add and start their own repo.
Options
:repo(required) - caller-owned Ecto repo module:table(optional, default"jido_memory_records") - table name:prefix(optional) - Postgres schema name:repo_opts(optional, default[]) - options passed toEcto.Adapters.SQL.query/4:ensure_table?(optional, defaultfalse) - create the table and indexes fromensure_ready/1, intended for development and integration tests
Tests can provide :query_fn as a four-arity function with the same argument
shape as Ecto.Adapters.SQL.query/4.
The table stores a full binary Record payload in a bytea column and keeps
only the basic query fields duplicated in columns for filtering.