Open source Nest implementation

#4 Running db-server as build dependency

Opened by fzzr on October 14, 2021
fzzr on October 14, 2021

IMHO, Required running database to just build the project - is a bad (terrible, really) practice.

That way making alive db as build-dependency,

But really it’s a execution/run-dependency.

zj on October 14, 2021

@fzzr Yeah, you’re right it’s currently a build dependency. This is also why nix-shell is used, and I felt the developer experience was OK as such.

The reason it’s a build dependency is through the sqlx dependency, which on build time checks the SQL schema and creates type safe queries. This is a feature I like very much.

Not sure if there’s another dependency that you’d recommend? I’m fairly new to Rust as well as their ecosystem, it seems you have more experience, do you have a suggestion to resolve this issue?

fzzr on October 14, 2021

👌 Understood.

I’ll think about it and try to make more flexible build solution.