Open Ekleog opened 11 months ago
You don't need to embed if you're using a globally installed version. Just use something like sqlx or another library to handle communications.
Using a globally-installed version does not mean that I'm assuming the user has the daemon running, or that the user has a user able to access the currently-running daemon.
I still need to spin up/tear down the cluster in this case.
My use case additionally requires the data to be put in /tmp, because it's for fuzzing and I'd literally blow up my hard disk otherwise.
You can see my current code here, if you're interested in what I would like to replace with pg-embed.
I'm looking into pg-embed, and it looks pretty nice!
However, I definitely do not want to be downloading the postgres binary and running it as though everything with it would be fine. Especially considering I'm on NixOS, so downloaded binaries just never work. But I cannot find a way to disable the fetch step in the docs, to just use a globally-installed postgres binary.
Do you know if it's currently possible, and if not whether you'd be interesting in adding this feature?