Sqlx Meta
A library derived as a slim version of sqlx-crud to provide metadata about the entity it marks, design to only provide the building blocks for you to build your own queries.
Getting started
Add to your dependencies:
= "0.1.0"
And mark your entity with SqlxMeta
:
Build your own query (prefer lazy_static
when it doesn't really change):
lazy_static!
Use the update_binds
or insert_binds
methods to save up typing:
use ;
f.update_binds.fetch_optional.await?;