impl_table 0.1.1

Generate table binding and utils for rust-postgres and rusqlite.
Documentation

                let id_field = syn::Field {
                    attrs: vec![
                        syn::Attribute {
                            pound_token: syn::Token![#](proc_macro2::Span::call_site()),
                            style: syn::AttrStyle::Outer,
                            bracket_token: syn::token::Bracket {
                                span: proc_macro2::Span::call_site()
                            },
                            path: syn::parse_quote!{ primary_key },
                            tts: proc_macro2::TokenStream::new(),
                        },
                    ],
                    vis: syn::Visibility::Inherited,
                    ident: Some(syn::Ident::new("id", proc_macro2::Span::call_site())),
                    colon_token: Some(syn::Token![:](proc_macro2::Span::call_site())),
                    ty: syn::Type::Verbatim(syn::TypeVerbatim { tts: quote!{ i64 } }),
                };
                named_fields.named.insert(0usize, id_field);
                                return_error_with_msg!(format!("Unrecognized switch {}." , name));
                            return_error_with_msg!(format!("Unrecognized function parameter {:?}.", param));
                    return_error_with_msg!(format!("Unrecognized function {}.", name));