CampaignFlow.MockServer.Storage behaviour (CampaignFlow Client v2.2.0)
View SourceStorage behaviour for mock server persistence.
The mock server uses PostgreSQL for storage via the host application's Ecto Repo.
Configuration
Configure the mock server with your repo:
config :campaign_flow, :mock_server,
enabled: true,
repo: MyApp.Repo
Summary
Callbacks
Functions
@spec repo() :: module() | nil
Returns the configured Ecto repo, or nil if not configured.