View Source Testcontainers.DatabaseBehaviour behaviour (testcontainers v1.11.6)

A behaviour implemented by database containers used by Testcontainers.Ecto

Summary

Types

@type t() :: %{
  :image => String.t(),
  :user => String.t(),
  :password => String.t(),
  :database => String.t(),
  :port => integer() | {integer(), integer()},
  optional(atom()) => any()
}

Callbacks

@callback new() :: t()
@callback with_database(t(), String.t()) :: t()
@callback with_image(t(), String.t()) :: t()
@callback with_password(t(), String.t()) :: t()
Link to this callback

with_persistent_volume(t, binary)

View Source
@callback with_persistent_volume(t(), binary()) :: t()
@callback with_port(t(), integer() | {integer(), integer()}) :: t()
@callback with_user(t(), String.t()) :: t()