3 ms·
Docker is great, another option I like to use is sqlite. I'm writing a small and simple application and I'm just using an sqlite database for my tests. I have
by horeszko 3y ago
Docker is great, another option I like to use is sqlite.
I'm writing a small and simple application and I'm just using an sqlite database for my tests. I have a helper function to create the db, another to add a table, and then a third to delete the db at the end.
So in total 3 functions to setup and teardown a test database. Its super quick because an sqlite db is just a file after all.
- rswskg 3y agoit's a real shame that sqlite and postgres have sql differences, otherwise I'd use it alot more