Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Commit

Permalink
extend public API (#16)
Browse files Browse the repository at this point in the history
* re-exprot types module

* expose ConnId and ConnSecretKey alias types
  • Loading branch information
alex-dukhno committed Nov 4, 2020
1 parent 8856bee commit 6775c33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pg_wire"
version = "0.3.0"
version = "0.3.1"
description = "Server Side implementation of PostgreSQL Wire Protocol"
license = "Apache-2.0"
repository = "https://github.com/alex-dukhno/pg_wire"
Expand Down
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub use hand_shake::{Process as HandShakeProcess, Request as HandShakeRequest, S
pub use message_decoder::{MessageDecoder, Status as MessageDecoderStatus};
pub use messages::{BackendMessage, ColumnMetadata, FrontendMessage};
pub use result::{Error, Result};
pub use types::{NotSupportedOid, PgType, Value};

mod cursor;
mod format;
Expand All @@ -38,6 +39,6 @@ pub type ClientParams = Vec<(String, String)>;
/// PostgreSQL OID [Object Identifier](https://www.postgresql.org/docs/current/datatype-oid.html)
pub type Oid = u32;
/// Connection ID
pub(crate) type ConnId = i32;
pub type ConnId = i32;
/// Connection secret key
pub(crate) type ConnSecretKey = i32;
pub type ConnSecretKey = i32;

0 comments on commit 6775c33

Please sign in to comment.