keelson-macros 0.1.1

keelson's derive macros: #[derive(Bind)] for newtype column overrides and #[derive(FromRow)] for row mapping.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// `#[derive(Bind)]` has no options: a newtype is one column with one meaning.
// Reaching for a `FromRow` option on one is the mistake worth catching.

use keelson_core::Bind;

#[derive(Bind)]
struct UserId(#[keelson(rename = "user_id")] i64);

#[derive(Bind)]
#[keelson(flatten)]
struct Email(String);

fn main() {}