guregu / null

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

Implement null.Timestamp #33

Closed dotzero closed 4 years ago

dotzero commented 6 years ago

Implement null.Timestamp that use custom marshaler to UnixTimestamp and unmarshaler from UnixTimestamp.

cihantas commented 5 years ago

Any reason why this is not merged?

dotzero commented 5 years ago

@guregu Is there any chance that you could merge this pr?

guregu commented 4 years ago

I appreciate this PR and see how it could be useful, but I'm limiting the scope of this package to types supported by driver.Value. Other types are not "natively" supported by the sql package and therefore makes this equivalent to a custom text marshaler, which is not what I intended this package to be. If this type gets added to driver.Value, I'd be happy to support it. Feel free to fork this package and add support for whatever you'd like.