mz_pgwire_common/
lib.rs

1// Copyright Materialize, Inc. and contributors. All rights reserved.
2//
3// Use of this software is governed by the Business Source License
4// included in the LICENSE file.
5//
6// As of the Change Date specified in that file, in accordance with
7// the Business Source License, use of this software will be governed
8// by the Apache License, Version 2.0.
9
10//! Common PostgreSQL network ("wire") protocol logic.
11
12#![warn(clippy::as_conversions)]
13#![warn(unused_extern_crates)]
14
15mod codec;
16mod conn;
17mod format;
18mod message;
19mod severity;
20
21pub use codec::{
22    ACCEPT_SSL_ENCRYPTION, CodecError, Cursor, DecodeState, MAX_REQUEST_SIZE, Pgbuf,
23    REJECT_ENCRYPTION, decode_startup, input_err, parse_frame_len,
24};
25pub use conn::{
26    CONN_UUID_KEY, Conn, ConnectionCounter, ConnectionError, ConnectionHandle,
27    MZ_FORWARDED_FOR_KEY, UserMetadata,
28};
29pub use format::Format;
30pub use message::{
31    ErrorResponse, FrontendMessage, FrontendStartupMessage, VERSION_3, VERSION_CANCEL,
32    VERSION_GSSENC, VERSION_SSL, VERSIONS,
33};
34pub use severity::Severity;