Pull Oid from postgres_protocol

This commit is contained in:
Steven Fackler 2016-09-11 21:56:22 -07:00
parent 96943d7e10
commit 44bf1c94f9

View File

@ -7,6 +7,9 @@ use std::io::prelude::*;
use std::sync::Arc; use std::sync::Arc;
use byteorder::{ReadBytesExt, WriteBytesExt, BigEndian}; use byteorder::{ReadBytesExt, WriteBytesExt, BigEndian};
#[doc(inline)]
pub use postgres_protocol::message::Oid;
pub use self::types::Type; pub use self::types::Type;
pub use self::special::{Date, Timestamp}; pub use self::special::{Date, Timestamp};
use {Result, SessionInfoNew, InnerConnection, OtherNew, WrongTypeNew, FieldNew}; use {Result, SessionInfoNew, InnerConnection, OtherNew, WrongTypeNew, FieldNew};
@ -99,9 +102,6 @@ impl<'a> fmt::Debug for SessionInfo<'a> {
} }
} }
/// A Postgres OID.
pub type Oid = u32;
/// Represents the kind of a Postgres type. /// Represents the kind of a Postgres type.
#[derive(Debug, Clone, PartialEq, Eq)] #[derive(Debug, Clone, PartialEq, Eq)]
pub enum Kind { pub enum Kind {