Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Is it better to use tools like [pgx](https://github.com/jackc/pgx) or stick with a ORM like GORM.
The tool for migration I use this -> https://github.com/golang-migrate/migrate.
Personally I prefer not using an ORM and just use https://sqlc.dev/ which generates idiomatic go code.
I use sqlboiler which generates an ORM from your database, and sql-migrate which is a tool for managing SQL migrations. Although you have to write your migrations in SQL, which IMHO is a plus.
I use sqlboiler which generates an ORM from your database, and sql-migrate which is a tool for managing SQL migrations. Although you have to write your migrations in SQL, which IMHO is a plus.
you can have a look at this project https://github.com/shubhamdixit863/crbackend/tree/master i have create a simple api with elasticsearch as backend ,with hexagonal design architecture ,in a similar fashion you can design something with any db