mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-03 07:45:30 +00:00
Tighten encapsulation a bit after recent backend generalization
This commit is contained in:
parent
c60859b416
commit
bb17e3b284
@ -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,
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user