Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
samonzeweb
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
samonzeweb
8y ago
I definitely recommend Go. Not only for the language itself, but for the lesson about simplicity it provides. Sometimes developers using others languages uses and abuses of features to be productif, smart, ... causing more damage than benef
2.
▲
by
samonzeweb
10y ago
It's not really implemented yet. 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/b1ae
3.
▲
by
samonzeweb
10y ago
The projet started as a learning one. I made some independent and experimental component from time to time, and then glued them together, rewriting some parts, ... Why this kind of project ? Because I used Active Record (Rails), Entity Fram
4.
▲
by
samonzeweb
10y ago
I don't know CockroachDB, but if there is a Go sql driver (compatible with database/sql") and it uses standard SQL, you can write an adapter, see : https://github.com/samonzeweb/godb/tree/master
5.
▲
by
samonzeweb
10y ago
I took care of that, caching structs metadata to limit useless repetitive introspections, and others simple stuffs. But of course if will always be slower than manually crafted code. With Go the cost is ridiculous compared to round trips wi
6.
▲
by
samonzeweb
10y ago
As it was stated, godb isn't really an ORM. The README and documentation was updated. Now godb is just "a Go query builder and struct mapper". Thanks for all comments :)
7.
▲
by
samonzeweb
10y ago
> > It's composition tool, not a relational one. Sorry. > 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 maskli
8.
▲
by
samonzeweb
10y ago
Nested structs are shown in the documentation : https://godoc.org/github.com/samonzeweb/godb#hdr-Structs_map... It's composition tool, not a relational one. Sorry.
9.
▲
by
samonzeweb
10y ago
We agree. In fact I did not know how to qualify * exactly * godb.
10.
▲
by
samonzeweb
10y ago
I agree, it’s a simple tool. As mentioned in the README, it’s not a full-featured ORM, but it does more than building queries as it maps Go structs with databases content (on this point I disagree as it use objects). The purpose is to be mo
11.
▲
Show HN: Godb is a simple Go ORM for PostgreSQL, MySQL, SQLite and SQL Server
(github.com)
205 points
by
samonzeweb
10y ago
|
88 comments