Jaymon / prom

A PostgreSQL or SQLite orm for Python
MIT License
22 stars 4 forks source link

Embedded queries don't auto-create tables #109

Closed Jaymon closed 3 years ago

Jaymon commented 4 years ago

I had a query like this:

bar_q = Bar.query.select_foo_id().is_bar_id(1)
foo_ids = Foo.query.select_foo_id().in_foo_id(bar_q).is_che_id(2).values()

And it threw an error saying the Bar table didn't exist, so I need to update the error checking to account for that