postgresqlgopgxbun

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


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


Solution

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