mirror of
https://github.com/wanderer-industries/wanderer
synced 2026-05-01 23:10:30 +00:00
12 lines
436 B
Elixir
12 lines
436 B
Elixir
defmodule WandererApp.Test.DDRT do
|
|
@moduledoc """
|
|
Behaviour for DDRT functions used in the application.
|
|
This allows mocking of DDRT calls in tests.
|
|
"""
|
|
|
|
@callback insert({integer(), any()}, String.t()) :: :ok | {:error, term()}
|
|
@callback update(integer(), any(), String.t()) :: :ok | {:error, term()}
|
|
@callback delete([integer()], String.t()) :: :ok | {:error, term()}
|
|
@callback search(any(), String.t()) :: [any()]
|
|
end
|