Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bigpigeon
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
Formats struct tag within Go programs
(github.com)
2 points
by
bigpigeon
6y ago
|
0 comments
2.
▲
Orm for golang Toyorm v0.4-alpha release
(bigpigeon.org)
2 points
by
bigpigeon
8y ago
|
0 comments
3.
▲
by
bigpigeon
8y ago
toyorm v0.3.1-alpha add join query
4.
▲
by
bigpigeon
8y ago
now toyorm support join operation
5.
▲
by
bigpigeon
8y ago
yes, codegen have better performance than reflect but I think text/template to generate code is not really good it hard to read and error-prone it is more like a powerful c-macro I think use go/ast to implement c++ likes template
6.
▲
by
bigpigeon
8y ago
when you want to make complex sql,toyorm maybe word better find the name = "tom" user and it subquery blog title = "first blog" e.g brick := toy.Model(&User{}).Where("=",Offsetof(User{}.Name),"tom&
7.
▲
by
bigpigeon
8y ago
In "OneToOne" and "BelongTo" Join is match but in "ManyToMany" and "OneToMany" will generate duplicate data I think add Join method and only support "One Data" preload is good way
8.
▲
by
bigpigeon
8y ago
you means use join to query and output data as table? otherwise I think “eager fetching” is better way
9.
▲
by
bigpigeon
8y ago
toyorm support half hand-writing you can bind the model and use its field in sql e.g https://github.com/bigpigeon/toyorm/blob/master/examples/sim...
10.
▲
by
bigpigeon
8y ago
preload: data association exec/query template exec: custom exec/query this is my orm great features
11.
▲
Toyorm – ORM for Go
(github.com)
68 points
by
bigpigeon
8y ago
|
34 comments
12.
▲
Toyorm – a new go orm
(github.com)
1 points
by
bigpigeon
9y ago
|
0 comments