Bloccs.Effects.DB.Mock (bloccs v0.1.1)

Copy Markdown View Source

Mock DB backend. Refuses out-of-scope table actions. Records every successful insert for test introspection via inserts/0.

Test/dev backend (the default). Its insert log is an Agent started lazily on first use and is NOT supervised — fine for tests, not a production process. Use Bloccs.Effects.DB.Ecto in production.

Summary

Functions

inserts()

@spec inserts() :: [{atom() | String.t(), map()}]

reset()

@spec reset() :: :ok