thp / minidb

Store Python objects in SQLite 3. Concise, pythonic API. Easy to write, relatively easy to read. A kind of super simple ORM, if you will. Give it a try.
https://thp.io/2010/minidb/
Other
66 stars 15 forks source link

Descending order_by? #12

Closed haimat closed 4 years ago

haimat commented 4 years ago

I would like to fetch rows in reverse order.
Is there a way to add a DESC to the order_by parameter of a query?

thp commented 4 years ago

The README has some examples how to do it --- Table.c.column.desc should work.

Matthias notifications@github.com schrieb am Di., 18. Feb. 2020, 13:29:

I would like to fetch rows in reverse order. Is there a way to add a DESC to the order_by parameter of a query?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/thp/minidb/issues/12?email_source=notifications&email_token=AABBASOTXG4AGSTOXF6FRZTRDPIDXA5CNFSM4KXDREAKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IOJTNKQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABBASPP3YOKETDJQYHPXFLRDPIDXANCNFSM4KXDREAA .

haimat commented 4 years ago

Ohh yes, have not found that in the docs.
Thanks for the quick response!