pgschema 0.2.17

Prototype for PG-SChema with property constraints
use std::process::exit;

fn main() {
    // let mut settings = rustemo_compiler::Settings::new();
    let mut settings = rustemo_compiler::Settings::new()
        .trace(false)
        .force(true)
        // .prefer_shifts(true)
        .in_source_tree();
    settings.process_dir().unwrap();
    if std::env::var("CARGO_FEATURE_ARRAYS").is_ok() {
        settings = settings.generator_table_type(rustemo_compiler::GeneratorTableType::Arrays);
    }

    if let Err(e) = settings.process_dir() {
        eprintln!("{}", e);
        exit(1);
    }
}