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; mod select;
pub struct Connection { pub struct Connection {
pub(super) stream: TcpStream, stream: TcpStream,
// Do we think that there is data in the read buffer to be decoded // Do we think that there is data in the read buffer to be decoded
stream_readable: bool, stream_readable: bool,

View File

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

View File

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