EctoHrana.Query (EctoHrana v0.1.0)

Copy Markdown View Source

A SQL statement, with ? or ?NNN placeholders for its parameters.

Hrana runs statements from their text: nothing is prepared or cached on the server, so preparing a query is free and a prepared query never goes stale. name is kept for DBConnection's and Ecto's statement caches.

Summary

Types

t()

@type t() :: %EctoHrana.Query{name: String.t(), statement: String.t()}