K
K
Kroid2014-08-03 20:07:59
SQL
Kroid, 2014-08-03 20:07:59

Why is there no analogue of Ruby ActiveRecord in Go?

All the Go database libraries I've looked at are pretty dull compared to SQLAlchemy in python or ActiveRecord in ruby. Would like to know why? Is it just that not enough time has passed and the small community has passed, or are there some limitations in the architecture of the language itself?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
t0pep0, 2014-08-04
@Kroid

Because, first of all, you don't have to write in Go as in Ruby\python.
Secondly, such an ORM will use reflection in too many places, and this is not good for a compiled language. IMHO: reflection is like GOTO, use only in case of emergency
As for ORM for Go - I recommend looking towards gorm https://github.com/jinzhu/gorm

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question