sql-orm 0.2.0-rc.2

Public API crate for the sql-orm workspace.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use sql_orm::prelude::*;

#[derive(Entity, Debug, Clone)]
#[orm(table = "legacy_fragments", schema = "dbo")]
pub struct LegacyFragments {
    #[orm(primary_key)]
    id: i64,

    #[orm(default_sql = "SYSUTCDATETIME()")]
    created_at: String,

}

fn main() {}