momentary-lapse

Results 20 comments of momentary-lapse

Found [a crate](https://docs.rs/db-pool/latest/db_pool/) which basically implements an approach mentioned by @Nutomic, and here's an [example of usage](https://github.com/yasamoka/db-pool/blob/main/examples/diesel_async_postgres.rs) with diesel. Do you see any pitfalls of using it in lemmy code?

Yeah, I see. `build_db_pool_for_tests` method is currently a dummy method using a regular pool, but it should build its own. I'm currently looking how we can adopt the crate—unfortunately, it...

UPD. I contacted the owner of the repo, and he said he'll be able to finish the deadpool support this weekend (offered him assistance—let's see how it goes). I think...

db-pool now supports deadpool for postgres, but when i try using it, it says ``` error: failed to download `db-pool v0.5.0` Caused by: unable to get packages from source Caused...

Yeah, good point. I ask or prepare a pr for that. By the way, I stumbled upon another problem integrating the library. Here you have to define a closure preparing...

I explained the issue to the db-pool owner and he takes a look at his initialization function API, because providing async connection doesn't seem work in diesel case at least....

I made this draft to share some thoughts: #5846 Please take a look when you have a spare time

Are you considering any specific (common for diesel) approach to implement these test migrations, or this ticket assumes figuring it out?