Un-reexport some type-related types

This commit is contained in:
Steven Fackler 2015-05-25 22:09:00 -07:00
parent 3e25dc4062
commit 417fb09b13
3 changed files with 5 additions and 6 deletions

View File

@ -77,9 +77,9 @@ use std::path::PathBuf;
pub use error::{Error, ConnectError, SqlState, DbError, ErrorPosition}; pub use error::{Error, ConnectError, SqlState, DbError, ErrorPosition};
#[doc(inline)] #[doc(inline)]
pub use types::{Oid, Type, Other, Kind, ToSql, FromSql, SessionInfo}; pub use types::{ToSql, FromSql};
use io::{StreamWrapper, NegotiateSsl}; use io::{StreamWrapper, NegotiateSsl};
use types::IsNull; use types::{IsNull, Kind, Type, SessionInfo, Oid, Other};
#[doc(inline)] #[doc(inline)]
pub use types::Slice; pub use types::Slice;
use message::BackendMessage::*; use message::BackendMessage::*;

View File

@ -1,8 +1,8 @@
use std::io::prelude::*; use std::io::prelude::*;
use byteorder::{WriteBytesExt, BigEndian}; use byteorder::{WriteBytesExt, BigEndian};
use {Type, ToSql, Result, Error, Kind}; use {Result, Error};
use types::{IsNull, SessionInfo}; use types::{Type, ToSql, Kind, IsNull, SessionInfo};
/// An adapter type mapping slices to Postgres arrays. /// An adapter type mapping slices to Postgres arrays.
/// ///

View File

@ -13,13 +13,12 @@ use postgres::{HandleNotice,
Connection, Connection,
GenericConnection, GenericConnection,
SslMode, SslMode,
Type,
Kind,
Error, Error,
ConnectError, ConnectError,
DbError, DbError,
IntoConnectParams, IntoConnectParams,
IsolationLevel}; IsolationLevel};
use postgres::types::{Type, Kind};
use postgres::SqlState::{SyntaxError, use postgres::SqlState::{SyntaxError,
QueryCanceled, QueryCanceled,
UndefinedTable, UndefinedTable,