Closed
Description
Support converting a basic Rust value from and to a PostgresRow instance, so that the insertion and query api would be much cleaner.
For example, instead of
conn.execute("INSERT INTO person (name, time_created, data)
VALUES ($1, $2, $3)",
[&me.name as &ToSql, &me.time_created as &ToSql,
&me.data as &ToSql]);
you write
conn.execute("INSERT INTO person (name, time_created, data)
VALUES ($1, $2, $3)", me.toRow());
Metadata
Metadata
Assignees
Labels
No labels