db_connection v0.1.0 DBConnection.Query protocol
The DBConnection.query
protocol is responsible for preparing and
encoding queries before they are passed to a connection.
Summary
Types
t :: term
Functions
Specs
encode(any, Keyword.t) :: any
Encodes a query.
This function is called to encode a query once it has been prepared by a connection.
Specs
prepare(any, Keyword.t) :: any
Prepare a query.
This function is called to prepare a query term for use with a connection callback module, either to prepare it further using the connection itself or for a query.