Skip to main content

FromRow

Derive Macro FromRow 

Source
#[derive(FromRow)]
{
    // Attributes available to this derive:
    #[keelson]
}
Expand description

Implement keelson_exec::FromRow by reading one column per field, by name.

#[keelson(rename = "column")] reads a differently named column; #[keelson(flatten)] reads a nested struct out of the same row. Named fields only. See the crate documentation for the full list of what is refused and why.