So, opening two database connections each with the filename ":memory:" will create two independent in-memory databases.