pg-srv 0.3.0

Library for emulating a PostgreSQL server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Implementation for Extended Query

#[cfg(feature = "with-chrono")]
use crate::{DateValue, TimestampValue};

#[derive(Debug, PartialEq)]
pub enum BindValue {
    String(String),
    Int64(i64),
    Float64(f64),
    Bool(bool),
    #[cfg(feature = "with-chrono")]
    Timestamp(TimestampValue),
    #[cfg(feature = "with-chrono")]
    Date(DateValue),
    Null,
}