Skip to main content

PreparedQuery

Trait PreparedQuery 

Source
pub trait PreparedQuery<Params> {
    type Output: DecodeRow;
}
Expand description

Runs a prepare!{}-built query, resolving its named placeholders from params first. Separate from LoadExt only because the values arrive at the call rather than being baked into the query: one Prepared is meant to serve many calls, and .resolve() clones the template rather than re-rendering it.

Required Associated Types§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<Params: PreparedParams, Output: DecodeRow> PreparedQuery<Params> for Prepared<Postgres, Params, Output>

Source§

type Output = Output

Implementors§