indexlake-catalog-postgres 0.5.0

IndexLake postgres catalog
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod builder;
mod catalog;
mod types;

pub use builder::*;
pub use catalog::*;

pub struct SqlDisplay<'a>(pub &'a str);

impl<'a> std::fmt::Display for SqlDisplay<'a> {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        if self.0.starts_with("INSERT") && self.0.len() > 200 {
            write!(f, "{}", self.0.chars().take(200).collect::<String>())
        } else {
            write!(f, "{}", self.0)
        }
    }
}