mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-30 13:20:59 +00:00
16 lines
311 B
Rust
16 lines
311 B
Rust
// 'x: execution
|
|
#[allow(clippy::module_name_repetitions)]
|
|
pub struct PgOutput<'x> {
|
|
buffer: &'x mut Vec<u8>,
|
|
}
|
|
|
|
impl<'x> PgOutput<'x> {
|
|
pub(crate) fn new(buffer: &'x mut Vec<u8>) -> Self {
|
|
Self { buffer }
|
|
}
|
|
|
|
pub(crate) fn buffer(&mut self) -> &mut Vec<u8> {
|
|
self.buffer
|
|
}
|
|
}
|