We can't do this in tokio-postgres while borrowing the parameters, but it's fine in the sync API!
16 lines
300 B
Rust
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()
|
|
}
|
|
}
|