taitan-orm-parser 0.1.10

Next Generation ORM based on sqlx
Documentation
// use syn::{parse_quote, DeriveInput};
//
// pub fn input_spec() -> Vec<DeriveInput> {
//     vec![
//         parse_quote! {
//             #[table(user)]
//             #[primary(a, b, c)]
//             #[serde_struct(entity, location)]
//             #[unique(name = uk1, fields = (f1, f2))]
//             #[unique(name = uk2, fields = (f3, f4))]
//             #[index(name = idx_1, fields = (f1, f2, f3))]
//             #[index(name = idx_2, fields = (f1, f2, f3))]
//             struct Foo<'a, 'b> {
//                 a: &'a str,
//                 b: Cow<'b, str>,
//                 c: String,
//                 d: Option<Cow<'b, str>>,
//                 #[field(name = user_name, db_type = BIGINT, nullable = true, auto_inc = true)]
//                 e: Optional<Cow<'b, str>>
//             }
//         },
//         parse_quote! {
//             #[table(user)]
//             #[primary(a, b, c)]
//             struct Foo<'a, 'b> {
//                 name: &'a str,
//                 select: Cow<'b, str>,
//                 and: String,
//                 age: Option<Cow<'b, str>>,
//                 #[field(name = user_name, db_type = BIGINT, nullable = true, auto_inc = true)]
//                 primary: Optional<Cow<'b, str>>
//             }
//         },
//
//     ]
// }