Home > Mobile >  Using an in-memory db with pgx and bun (Golang)
Using an in-memory db with pgx and bun (Golang)

Time:10-10

I have just started using pgx and bun with Golang and I need to start testing my repository implementation. I am struggling to understand if I can use an embedded postgres db and what would be the best choice. Any suggestion is more than welcome

Thank you

CodePudding user response:

No, PostgreSQL cannot run as an embedded database. It can run as in-memory database, however, if you give it enough memory.

  • Related