aacanakin

Joined 14 years ago

Karma
271
Submissions
23
Member since
Sep 3
open-source enthusiast, developer & gopher.

@aacanakin https://github.com/aacanakin

View on Hacker News

Recent submissions

Comment · 7 years ago
"While async and await are not available yet, lots of improvements to the language itself have been made over the past years"

It's 2019 guys. Please.

Comment · 10 years ago
Comment · 10 years ago
There is a table api in qb much like yours. See https://github.com/aacanakin/qb/blob/master/table_test.go. The session api converts tags into table object. I really like the column definitions. Maybe I can convert the definition implementation like you.
Comment · 10 years ago
Comment · 10 years ago
The struct tags are grouped like type, constraints, etc. The groups of struct tags is more Gorm currently can't auto migrate keys with foreign keys. There is an issue I've commented but the issue is open for a long time.

There are also some missing features qb doesn't have and gorm has. For instance, you can define relationships in gorm while in qb, you can only define foreign keys using `qb:"constraints:ref(col, table)"`.

Moreover, I am not entirely sure but I don't think enforcing types is possible in gorm. In qb, consider this struct;

type User struct { id string `qb:"type:uuid; constraints:primary_key"` }

qb understands this as a uuid type although it has string definitions. These are the main reasons why I created qb.

The relationship feature is not clear in my mind. I'd like to have feedback on relationships.

Comment · 10 years ago
it's like an orm but you can also build queries using builder api. It's like sqlalchemy.
Comment · 10 years ago
Comment · 11 years ago
In a golang conference, the presenter talking about youtube's vitess said: "If vitess servers are down, then youtube is down. That's how golang is crucial for youtube"
Comment · 11 years ago
I'll put source code on github.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton