unit testing with in-memory database [duplicate]
问题 This question already has answers here : Running PostgreSQL in memory only (7 answers) Closed 5 years ago . I have PostgreSQL database. It is used for unit testing. I want to speed the tests up so I want to use some kind of in-memory databases (e.g. H2). I want to dump the database (from PostgreSQL) and the import such a dump into in-memory database. Do you have any suggestion concerning in-memory database choice? I want that database to be compatible with PostgreSQL. 回答1: I'd simply create a