Remove back compat reexport

This commit is contained in:
Steven Fackler 2016-03-03 21:48:25 -08:00
parent 7d07e61e9c
commit 4373eff16f
4 changed files with 8 additions and 9 deletions

View File

@ -67,9 +67,6 @@ use std::time::Duration;
#[cfg(any(feature = "unix_socket", all(unix, feature = "nightly")))] #[cfg(any(feature = "unix_socket", all(unix, feature = "nightly")))]
use std::path::PathBuf; use std::path::PathBuf;
// FIXME remove in 0.12
pub use transaction::{Transaction, IsolationLevel};
use error::{Error, ConnectError, SqlState, DbError}; use error::{Error, ConnectError, SqlState, DbError};
use io::{StreamWrapper, NegotiateSsl}; use io::{StreamWrapper, NegotiateSsl};
use message::{Frontend, Backend, RowDescriptionEntry}; use message::{Frontend, Backend, RowDescriptionEntry};
@ -79,6 +76,7 @@ use rows::{Rows, LazyRows};
use stmt::{Statement, Column}; use stmt::{Statement, Column};
use types::{IsNull, Kind, Type, SessionInfo, Oid, Other, WrongType, ToSql, FromSql, Field}; use types::{IsNull, Kind, Type, SessionInfo, Oid, Other, WrongType, ToSql, FromSql, Field};
use url::Url; use url::Url;
use transaction::{Transaction, IsolationLevel};
#[macro_use] #[macro_use]
mod macros; mod macros;

View File

@ -7,8 +7,8 @@ use std::fmt;
use std::ops::Deref; use std::ops::Deref;
use std::slice; use std::slice;
use {Result, Transaction, SessionInfoNew, RowsNew, LazyRowsNew, StatementInternals, use {Result, SessionInfoNew, RowsNew, LazyRowsNew, StatementInternals, WrongTypeNew};
WrongTypeNew}; use transaction::Transaction;
use types::{FromSql, SessionInfo, WrongType}; use types::{FromSql, SessionInfo, WrongType};
use stmt::{Statement, Column}; use stmt::{Statement, Column};
use error::Error; use error::Error;

View File

@ -10,8 +10,9 @@ use error::{Error, DbError};
use types::{SessionInfo, Type, ToSql}; use types::{SessionInfo, Type, ToSql};
use message::{WriteMessage, Backend, Frontend}; use message::{WriteMessage, Backend, Frontend};
use rows::{Rows, LazyRows}; use rows::{Rows, LazyRows};
use {bad_response, Connection, Transaction, StatementInternals, Result, RowsNew, InnerConnection, use transaction::Transaction;
SessionInfoNew, LazyRowsNew, DbErrorNew, ColumnNew, StatementInfo, TransactionInternals}; use {bad_response, Connection, StatementInternals, Result, RowsNew, InnerConnection, SessionInfoNew,
LazyRowsNew, DbErrorNew, ColumnNew, StatementInfo, TransactionInternals};
/// A prepared statement. /// A prepared statement.
pub struct Statement<'conn> { pub struct Statement<'conn> {

View File

@ -13,8 +13,8 @@ use std::io;
use std::io::prelude::*; use std::io::prelude::*;
use std::time::Duration; use std::time::Duration;
use postgres::{HandleNotice, Connection, GenericConnection, SslMode, IntoConnectParams, use postgres::{HandleNotice, Connection, GenericConnection, SslMode, IntoConnectParams};
IsolationLevel, transaction}; use postgres::transaction::{self, IsolationLevel};
use postgres::error::{Error, ConnectError, DbError}; use postgres::error::{Error, ConnectError, DbError};
use postgres::types::{Oid, Type, Kind, WrongType}; use postgres::types::{Oid, Type, Kind, WrongType};
use postgres::error::SqlState::{SyntaxError, use postgres::error::SqlState::{SyntaxError,