module

Prostore::Query::Renderer

Render an AST into adapter-specific SQL plus a positional argument list. Placeholder syntax comes from the adapter (? for SQLite, $N for Postgres) so the same renderer works for both backends.

Class methods

render_predicate(p : AST::Predicate, args : Array(DB::Any), next_placeholder : -> String) : String
Source
render_select(table : String, fields : Array(String), plan : Plan, adapter : Adapter::Base, count_only : Bool = false) : Rendered
Source

Nested types