Trait tokio_postgres::ToStatement

source ·
pub trait ToStatement: Sealed { }
Expand description

A trait abstracting over prepared and unprepared statements.

Many methods are generic over this bound, so that they support both a raw query string as well as a statement which was prepared previously.

This trait is “sealed” and cannot be implemented by anything outside this crate.

Implementations on Foreign Types§


impl ToStatement for str


impl ToStatement for String