Framework similar to Spring Data JPA in Golang
Asked Answered
W

1

8

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.

Wingding answered 30/5, 2017 at 12:13 Comment(3)
google.com/search?q=golang+orm+mysqlStreaky
orm - i missed that word, and i learn something, i wish to know why sb do not like this question, i am stupid, please be more tolerant, i am learningWingding
SO is indeed quite intolerant towards questions that are vague or open like yours. Often with reason, but it can be annoying when you really cannot make it more specific.Streaky
R
6

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.

Renascent answered 21/7, 2020 at 10:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.