2016-12-21 00:07:45 +00:00
|
|
|
#![allow(unknown_lints)] // for clippy
|
|
|
|
|
|
|
|
extern crate fallible_iterator;
|
2018-11-29 03:32:29 +00:00
|
|
|
extern crate hex;
|
2016-12-21 00:07:45 +00:00
|
|
|
extern crate phf;
|
|
|
|
extern crate postgres_protocol;
|
2016-12-20 23:33:16 +00:00
|
|
|
|
2016-12-21 00:07:45 +00:00
|
|
|
pub mod error;
|
2016-12-20 23:33:16 +00:00
|
|
|
pub mod params;
|
2016-12-26 21:29:30 +00:00
|
|
|
pub mod rows;
|
|
|
|
pub mod stmt;
|
2018-11-29 03:32:29 +00:00
|
|
|
pub mod types;
|
2016-12-21 03:50:44 +00:00
|
|
|
|
2016-12-26 21:21:20 +00:00
|
|
|
/// Contains information necessary to cancel queries for a session.
|
|
|
|
#[derive(Copy, Clone, Debug)]
|
|
|
|
pub struct CancelData {
|
|
|
|
/// The process ID of the session.
|
|
|
|
pub process_id: i32,
|
|
|
|
/// The secret key for the session.
|
|
|
|
pub secret_key: i32,
|
|
|
|
}
|
2017-03-03 06:27:12 +00:00
|
|
|
|
|
|
|
/// An asynchronous notification.
|
|
|
|
#[derive(Clone, Debug)]
|
|
|
|
pub struct Notification {
|
|
|
|
/// The process ID of the notifying backend process.
|
|
|
|
pub process_id: i32,
|
|
|
|
/// The name of the channel that the notify has been raised on.
|
|
|
|
pub channel: String,
|
|
|
|
/// The "payload" string passed from the notifying process.
|
|
|
|
pub payload: String,
|
|
|
|
}
|