MasoniteFramework / orm

Masonite ORM is a beautiful Python ORM. It's also a nearly drop in replacement of the Orator ORM
https://orm.masoniteproject.com
MIT License
161 stars 47 forks source link

Adds oldest, latest methods to QueryBuilder, fixes #790 #795

Closed yubarajshrestha closed 1 year ago

yubarajshrestha commented 1 year ago

fixes MasoniteFramework/orm#790

yubarajshrestha commented 1 year ago

I don't really like the order by raw solution here. If we do the order by raw it won't work with postgres or sql server

for field in fields:
    self.order_by(field, "desc")

Updated to order_by.

BSN4 commented 1 year ago

tests?

yubarajshrestha commented 1 year ago

This looks better but will need some tests to make me feel comfortable with it

Done

yubarajshrestha commented 1 year ago

This looks better but will need some tests to make me feel comfortable with it

Done