d1-orm-engine 0.1.1

Table, model, batch, raw SQL engine for rust-d1-orm
Documentation
1
2
3
4
5
6
7
8
9
10
11
use d1_orm_query::{opt_val, Value};

pub trait D1Model: Sized + for<'de> serde::Deserialize<'de> {
    const TABLE: &'static str;
    const COLUMNS: &'static [&'static str];
    fn values(&self) -> Vec<Value>;
}

pub fn opt_js<T: Into<Value>>(val: Option<T>) -> Value {
    opt_val(val)
}