rustorm 0.0.5

A simple ORM and code generator for rust
extern crate rustorm;

use rustorm::db::postgres::Postgres;
use rustorm::codegen;
use rustorm::codegen::Config;

/// this will generate needed model code for tests in ./examples/gen directory
fn main(){
    let pg = Postgres::with_connection("postgres://postgres:p0stgr3s@localhost/bazaar_v6");
    let config =  Config{
            base_module:Some("gen".to_string()),
            include_table_references:true,
            use_condensed_name:true,
            generate_table_meta:true,
            base_dir:"./examples".to_string(),
        };
    codegen::generate_all(&pg, &config);
}