sql-gen 0.2.3

A CLI tool for generating models based on a SQL Database using SQLx
1
2
3
4
5
6
7
8
9
use sqlx::FromRow;

#[derive(Debug, FromRow)]
pub struct MySqlEnumRow {
    pub(crate) schema: String,
    pub(crate) enum_type: String,
    pub(crate) enum_value: String,
    pub(crate) enum_type_comment: Option<String>,
}