Do you know some frameworks written in Golang similar to Spring Data JPA? I am looking for something which allow me to easy work between Golang structs and MySQL database tables. I was looking for it in Google, not found. Cheers.
GORM is the most popular ORM for golang. However featurewise it is not even close to JPA or spring-data-jpa. There are also many gotchas you will have to manage in order to produce a good solution using GORM. There are many other ORMs, none coming close to spring-data-jpa.
The advised solution will depend on whether simple queries will be sufficient for you. If you have to write more complex queries, the best way would be to use sqlx for that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With