Skip to main content

FromQueryResult

Derive Macro FromQueryResult 

Source
#[derive(FromQueryResult)]
{
    // Attributes available to this derive:
    #[turso]
}
Available on crate feature macros only.
Expand description

Derives FromQueryResult for a plain struct.

Every field is read from the column of the same name, or from the one given with #[turso(column_name = "...")].