Re: [sqlalchemy] Re: testing patterns with sqlalchemy 2.0

2022-09-02 Thread Jonathan Vanasco
> When taking this approach, how do you ensure the accumulated schema migrations end up with a database that matches the one that create_all gives you? Sadly, I don't. I've actually been working on a test to ensure every table and column in the model exists in the database! > Creating a

Re: [sqlalchemy] Re: testing patterns with sqlalchemy 2.0

2022-09-02 Thread Elmer de Looff
On Fri, Sep 2, 2022, 08:47 Chris Withers wrote: > On 01/09/2022 20:00, Jonathan Vanasco wrote: > > > > > Create an empty schema from the models using create_all? > > > > This is what I usually do with smaller projects. > > When taking this approach, how do you ensure the accumulated schema >

Re: [sqlalchemy] Re: testing patterns with sqlalchemy 2.0

2022-09-02 Thread Chris Withers
On 01/09/2022 20:00, Jonathan Vanasco wrote: > Create an empty schema from the models using create_all? This is what I usually do with smaller projects. When taking this approach, how do you ensure the accumulated schema migrations end up with a database that matches the one that