Current section

Files

Jump to
testcontainers lib container behaviours database.ex
Raw

lib/container/behaviours/database.ex

defmodule Testcontainers.Container.Behaviours.Database do
@callback new() :: t()
@callback with_image(t(), String.t()) :: t()
@callback with_user(t(), String.t()) :: t()
@callback with_password(t(), String.t()) :: t()
@callback with_database(t(), String.t()) :: t()
@callback with_port(t(), integer() | {integer(), integer()}) :: t()
@type t :: %{
:image => String.t(),
:user => String.t(),
:password => String.t(),
:database => String.t(),
:port => integer() | {integer(), integer()},
optional(atom()) => any()
}
end