Hacker News new | past | comments | ask | show | jobs | submit login

Check out gorm [0] to ease your database interaction pains; it's worked out nicely for me many times.

[0] https://github.com/jinzhu/gorm




I don't have direct experience, but quoting from this[0] seems to indicate that gorm may still have some issues compared to current standard options in the Ruby or Python ecosystems.

"The ORM we ended up using for e.g. our settlement service, Gorm, is not anywhere near the level of maturity of ActiveRecord, and to get its (valuable!) feature set you have to tolerate a) throwing out most of the benefits of using a type-safe language and b) programming bugs which can cause statements which certainly look like they should generate SQL queries to just silently not generate SQL queries. In general, working with the database has been so painful in Go that I have been instead either a) hitting a REST endpoint on an internal API to have Rails do the DB access then return formatted JSON (which Go can actually consume fairly decently) or b) throwing the data at NSQ."

[0] http://www.kalzumeus.com/2015/08/20/designing-and-building-s...


Of course, maturity takes time.

Go is still much newer than Python and Ruby. There's no getting around this fact.


I've come to think the limitations of Go orms are not due to the lack of maturity, but to inherent limitations of the language that are officialy not going to be removed anytime soon ( because they are seen as a feature by the authors).

Something like linq for example seems simply impossible to code in go.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: