Alexey Palazhchenko

Results 348 comments of Alexey Palazhchenko

That was a bug. 🐞 Updated description.

@rumyantseva Does it make sense to you?

May you share your database schema?

Anonymous fields were reserved for valid future use-case, and that sounds like a valid one. Proposed syntax: ``` go //reform:parents type Parent struct { ID int `reform:"id,pk"` Name string `reform:"name"`...

See https://github.com/go-reform/reform/issues/43 and https://github.com/go-reform/reform/issues/56.

I responded in the other issue, but want to highlight one thing there: ```go func (s *Profile) SetPK(pk interface{}) { s.ID = pk.(uuid.UUID) } ``` You could replace that code...

Yes, PostgreSQL uses `INSERT … RETURNING id` syntax. `SetPK` method is never used by reform.

… for PostgreSQL. Reform always uses the code above that line for PostgreSQL.

That's why this and other tickets are still open.

@bitxel May you please check this branch? It should work for all `SELECT`s without nasty side-effects.