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
use sql_orm::prelude::*;

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

    #[orm(computed_sql = "[first_name] + [last_name]")]
    full_name: String,
}

fn main() {}