3 ms·
SQLite might be the easiest to configure, but some other RDBMSs have an option to run in memory too (e.g. MySQL's MEMORY storage engine). Also, as a last resort
by curun1r 11y ago
SQLite might be the easiest to configure, but some other RDBMSs have an option to run in memory too (e.g. MySQL's MEMORY storage engine). Also, as a last resort, you can always configure the DB to write to an in-memory file system.
This strategy is, in essence, mocking the FS layer in DB tests.
- TylerE 11y agoOften those modes don't have the same semantics, which is dangerous for testing.
- coldtea 11y agoAfter some point it's diminishing returns though. Obviously nothing can be 100% tested.
- TylerE 11y agoOften those modes don't have the same semantics, which is dangerous for testing.
- TylerE 11y agoOften those modes don't have the same semantics, which is dangerous for testing.