Tokio Postgres Dynamic Query
Note The code can be found here. I recently searched for this and could not find an adequate result, so I decided to make a post and a corresponding repo to demonstrate this. Sometimes you need to build a query at runtime and in doing so, you will need to create a dynamic query. You can use tokio postgres to do this but it’s not entirely straight forward.