taitan-orm-parser 0.1.10

Next Generation ORM based on sqlx
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::fmt::Display;
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize)]
pub enum SqlType {
    Insert,
    Upsert
}

impl Display for SqlType {
    fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            SqlType::Insert => write!(fmt, "Insert"),
            SqlType::Upsert => write!(fmt, "Upsert"),
        }
    }
}