guregu / null

reasonable handling of nullable values
BSD 2-Clause "Simplified" License
1.86k stars 238 forks source link

Implement a NullTime type #7

Closed gawry closed 9 years ago

gawry commented 9 years ago

When using gorp or other ORMs it would be nice to be able to do the same with the Time type

doxavore commented 9 years ago

I would definitely use this. pq's NullTime stops where database/sql types do, in that they won't marshal nicely.

If such a PR was opened, would it be accepted? Or is there some underlying reason this hasn't been implemented?

guregu commented 9 years ago

There's a few reasons I haven't accepted that PR #6

Regarding the last concern, it's not like there's a String type in SQL, so NullTime fits with the current NullString and would be fine.

Basically, with a little clean up it would be OK

guregu commented 9 years ago

Added in #9, release v2.2