Depo v1.5.1 Depo.DB

A DB is a GenServer that manages an open database connection and a cache of prepared SQL statements.

Summary

Functions

Invoked in some cases to retrieve a formatted version of the GenServer status

Functions

format_status(, list)

Invoked in some cases to retrieve a formatted version of the GenServer status.

This callback can be useful to control the appearance of the status of the GenServer. For example, it can be used to return a compact representation of the GenServer’s state to avoid having large state terms printed.

pdict_and_state is a two-elements list [pdict, state] where pdict is a list of {key, value} tuples representing the current process dictionary of the GenServer and state is the current state of the GenServer.

Callback implementation for GenServer.format_status/2.