prisma-client-go icon indicating copy to clipboard operation
prisma-client-go copied to clipboard

use go:embed for prisma engines

Open steebchen opened this issue 4 years ago • 2 comments

https://golang.org/pkg/embed/

steebchen avatar May 16 '21 08:05 steebchen

@steebchen does go:embed work for detecting migration files already or does that need a new issue?

bshihr avatar May 20 '21 22:05 bshihr

@bshihr Can you maybe create a new issue or discussion and elaborate on your use case? Right now the only thing packed into the final go binary is the prisma query engine, because it is needed at runtime. The migrations are usually run on generate time, which requires the go module to be installed anyway, so packing migration files would not solve anything at this point.

steebchen avatar May 21 '21 12:05 steebchen