Ah, the issue is that Exposed automatically closes the connection after ever transaction block, and the Sqlite official docs say that an in-memory DB is destroyed when the connection is closed. So Sqlite in-memory DBs are broken in Exposed. I might look into submitting a PR, but I am not an expert on this.