Alexey Palazhchenko

Results 348 comments of Alexey Palazhchenko

That's correct that reform assumes single-column primary key for `Record`s, it is [mentioned](https://github.com/go-reform/reform/tree/v1.2.1#caveats) in README. In fact, one of the proprietary reincarnations supported multi-column PKs, but they caused too many...

> If you work with dates (like time.Time) from reform, you have to add in your model method afterFind which will convert time zones etc. Am I right? No, if...

`ErrNoRows` can be returned from some methods and is never returned from others. General rule probably can be better documented.

Various Find methods accept a single column only. More complex conditions are possible with Select methods: ```go persons, err := DB.SelectAllFrom(PersonTable, "WHERE id = ? AND name = ?", id,...

This will require reflection in runtime, and reform specifically avoids it.

https://github.com/go-reform/reform/issues/146#issuecomment-359029463 `readonly` tag sounds interesting… The last option is covered by #100.

> wanted to first see if there's a specific reason why this was excluded or cannot be done That's because I don't know how to implement that functionality with databases...

Some background on why `nil`/`NULL` is being added to the query: https://github.com/go-reform/reform/issues/146#issuecomment-359029463 See also #100.

@ugol ![Publish app and take my money!](http://cdn.memegenerator.net/instances/400x/30426104.jpg)