gorm 0.1.4

An orm that is simple to use and prevents all mistakes at compile time
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! To run this example you must enable to `migration_cli` feature flag, which
//! can be done using the following command:
//!
//! `cargo run --example migration_cli --features migration_cli`

mod tables;
use gorm::migration_cli_main;
use tables::*;

#[tokio::main]
async fn main() {
    migration_cli_main(
        CreateTablesMigration,
        "postgres://postgres:postgres@localhost/gorm_test",
    )
    .await;
}