Files
rust-postgres/postgres/src/statement.rs
Steven Fackler 26eb27e70d Support one-off queries in sync API
We can't do this in tokio-postgres while borrowing the parameters, but
it's fine in the sync API!
2018-12-21 20:13:15 -08:00

16 lines
300 B
Rust

use tokio_postgres::types::Type;
use tokio_postgres::Column;
#[derive(Clone)]
pub struct Statement(pub(crate) tokio_postgres::Statement);
impl Statement {
pub fn params(&self) -> &[Type] {
self.0.params()
}
pub fn columns(&self) -> &[Column] {
self.0.columns()
}
}