db_connection v0.1.3 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 after it is returned by a connection callback module.

See DBConnection.execute/3 and DBConnection.execute_close/3.