Godb
Languages and libraries
go database library
SHOW HN2016
How HN took it
1 positive, 7 neutral or asking, 1 mixed, 17 critical, out of 26 comments about the project. Thread score -0.41.
Idea: 0 for, 15 againstPerformance: 0 for, 2 againstDesign: 1 for, 0 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
Objections
Not really an ORM; it is a query builder with struct mapping.
From 3 comments
That's more of a query builder than an ORM: it doesn't actually use objects and only allows for expressing SQL queries in Go. In that it is similar to LINQ or HQL or SQLAlchemy…
masklinn on HNYour library is a query builder, not an ORM.
camus2 on HN> ORM is a tool to map an object model No, ORM means Object Relational Mapper. if your ORM doesn't support relations between tables, then it is not a ORM. Given a relationship…
camus2 on HN
Fragmentation of Go SQL libraries is harmful.
From 2 comments
Well, now that you're done learning I hope you'll become an sqlboiler user and maybe contribute to it to fit your use case too. Fragmentation in the sql world in Go is pretty bad…
aarondl0 on HNSplits development effort, slips developer skill across many options. Means everyone wastes time re-inventing the wheel instead of solving the problems they want to.
xupybd on HN
Reflection hurts performance.
From 1 comment
The annoying thing about ORMs in Go is that since there are no macros / annotations you either have to use code generation or reflection. Reflection is a real drag on performance.
the_duke on HN
Nested struct mapping has no example and nested SELECTs are not supported.
From 2 comments
One of the features listed is "Mapping with nested structs", but there's no example of this. Given that this would be a feature setting your project apart from many of the Go…
mdasen on HNI cannot see how to build nested SELECTs with Godb.
mci on HN
Requests
Add an example of nested structs with relations.
From 1 comment
One of the features listed is "Mapping with nested structs", but there's no example of this. Given that this would be a feature setting your project apart from many of the Go…
mdasen on HN
Support CockroachDB.
From 1 comment
Do you plan to make it work with CockroachDB?
knz42 on HN
Questions
Why build another Go ORM when alternatives exist?
From 1 comment
I'm the author of a code-generation ORM in Go (real orm, does relationships fairly robustly) https://github.com/vattle/sqlboiler and I'm curious why you needed to make another…
aarondl0 on HN
Alternatives named
sqlboiler
From 1 comment
I'm the author of a code-generation ORM in Go (real orm, does relationships fairly robustly) https://github.com/vattle/sqlboiler and I'm curious why you needed to make another…
aarondl0 on HN
upper/db
From 1 comment
Also, for others looking for a Go data layer / ORM`ish package, have a look at https://github.com/upper/db it's been in development for years, its used in production by many…
peterkieltyka on HN
sqlx
From 1 comment
Is there anything like this or sqlx but in C?
LukeB42 on HN