ire4ever1190/ponairi

Invalid examples in readme

Closed this issue · 1 comments

SQL queries must be with sql prefix, but they are not. Example:

ponairi/readme.md

Lines 57 to 61 in 9130428

echo db.find(Order, "SELECT * FROM Order WHERE customer = ?", john.id)
# Option[T] can also be used if the query mighn't return anything
import std/options
assert db.find(Option[Order], "SELECT * FROM Order WHERE customer = 99999").isNone

Valid example in docs - https://tempdocs.netlify.app/ponairi/stable/ponairi.html#getting-started-read

Thanks for pointing that out, will fix asap 👍