db_connection v0.1.0 DBConnection.Result protocol

The DBConnection.query protocol is responsible for preparing and encoding queries before they are passed to a connection.

Summary

Types

t :: term

Functions

decode(result, opts)

Specs

decode(any, Keyword.t) :: any

Decode a query.

This function is called to decode a result term return from a query.

See DBConnection.query/3 and DBConnection.execute/3.