Tighten encapsulation a bit after recent backend generalization

This commit is contained in:
Ryan Leckey 2019-08-06 23:15:03 -07:00
parent c60859b416
commit bb17e3b284
3 changed files with 3 additions and 8 deletions

View File

@ -17,7 +17,7 @@ mod prepare;
mod select;
pub struct Connection {
pub(super) stream: TcpStream,
stream: TcpStream,
// Do we think that there is data in the read buffer to be decoded
stream_readable: bool,

View File

@ -4,7 +4,7 @@ mod connection;
pub use connection::Connection;
pub(crate) mod protocol;
mod protocol;
pub mod types;

View File

@ -1,9 +1,4 @@
use crate::{
backend::Backend,
deserialize::FromSql,
postgres::{protocol::DataRow, Postgres},
types::SqlType,
};
use crate::{backend::Backend, deserialize::FromSql, postgres::Postgres, types::SqlType};
pub trait RawRow {
fn is_empty(&self) -> bool;