pg-proto 0.1.0

Session-typed PostgreSQL wire protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use bytes::Bytes;
use pg_proto::{Conn, codec::Execute, session::Building};

fn illegal<S, C>(building: Conn<S, Building, C>) {
    let execute = Execute {
        portal: Bytes::new(),
        max_rows: 0,
    };
    let _ = building.push_execute(&execute);
}

fn main() {}