dinoco_compiler 0.0.1

The Dinoco schema compiler for parsing, validating, and analyzing database schemas.
Documentation
1
2
3
4
5
6
7
8
9
10
use dinoco_compiler::compile;

fn main() {
    let raw = std::fs::read_to_string("schema.dinoco").unwrap();

    match compile(&raw) {
        Ok(data) => println!("{:?}", data),
        Err(err) => println!("{:?}", err),
    }
}