sqlx-postgres 0.7.4

PostgreSQL driver implementation for SQLx. Not for direct use; see the `sqlx` crate for details.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::io::Encode;

#[derive(Debug)]
pub struct Sync;

impl Encode<'_> for Sync {
    fn encode_with(&self, buf: &mut Vec<u8>, _: ()) {
        buf.push(b'S');
        buf.extend(&4_i32.to_be_bytes());
    }
}