137 karma · joined Dec 15, 2016 (9y ago) · 11 submissions
comment 7y ago · link · parent
Go is multiplatform, and you can easily cross-compile for other OS or other CPU architecture. It produces a single binary then it's easy to deploy. It could be useful.
Go is really easy to learn, in a single day you will have a good understanding of the language itself. It's really something interesting to learn and practice a bit, without needing weeks of work. Even if it doesn't suit you, you had not loss many time.
comment 9y ago · link · parent
You can build nested queries, doing some extra work, but it's not elegant and will not work for any cases (especially with PostgreSQL) : https://gist.github.com/samonzeweb/b1ae3e2d1f3203ee1722ac4bd...
Some work to do to add proper nested queries into godb, but for a so simple example it doesn't seem to be extremely hard.
comment 9y ago · link · parent
Why this kind of project ? Because I used Active Record (Rails), Entity Framework, played with Django ORM, ... and regretted that nothing similar exist in Go world. Instead of complaining I choose to do something, not building a full ORM by myself, but at least build something allowing me to have a better comprehension of the constraints (except of the classic "no generic").
I didn't choose to build another Go library thinking I'll build something better than others. I learned, and I got a library ;)
comment 9y ago · link · parent
comment 9y ago · link · parent
With Go the cost is ridiculous compared to round trips with database server and query execution. More productivity for just a bunch of CPU cycles. Of course each use case and constraints are different, they're is no universal rules.
Entity Framework... that is slow ! I don't know for EF Core, but EF6 is really a slow thing.
comment 9y ago · link · parent
> Isn't the R in ORM for relational?
I spoke about the nested structs. You can have nested structs for something else than relational mapping.
As I replied to masklinn , I was not sure how to qualify godb, and I admit that ORM is not a perfect qualifier.
comment 9y ago · link · parent
It's composition tool, not a relational one. Sorry.
comment 9y ago · link · parent
The purpose is to be more productive than doing all this job manually.
Many things can be improved, it's sill a young project. This project is initially a learning one : doing stuff to improve my skill, on my spare time. I tried to build something clean, and used it on some real data. Perhaps it could be useful for somebody else. Nothing more ;)
11.
Show HN: Godb is a simple Go ORM for PostgreSQL, MySQL, SQLite and SQL Server(github.com ↗)
205 points · by samonzeweb · 9y ago · 88 comments