Fluffy.Sandbox (Fluffy v0.1.1)

Copy Markdown View Source

Integrates Ecto SQL sandbox ownership with a Fluffy test scope.

Summary

Functions

Returns the sandbox allowance module or MFA used by Phoenix Ecto.

Returns the Phoenix socket connect-info key required by the configured header.

Returns the HTTP header used to transport encoded sandbox metadata.

Types

allowance()

@type allowance() :: module() | {module(), atom(), list()}

Functions

allowance()

@spec allowance() :: allowance()

Returns the sandbox allowance module or MFA used by Phoenix Ecto.

connect_info()

@spec connect_info() :: :user_agent | :x_headers

Returns the Phoenix socket connect-info key required by the configured header.

header()

@spec header() :: String.t()

Returns the HTTP header used to transport encoded sandbox metadata.

on_mount(atom, params, session, socket)