Kitura / Swift-Kuery-ORM

An ORM for Swift, built on Codable
Apache License 2.0
212 stars 30 forks source link

Changes how date encoding and decoding works #94

Closed jaredanderton closed 5 years ago

jaredanderton commented 5 years ago

I could not get the date encoding and decoding to work with MySQL as is (converting to double), and using timeIntervalSinceReferenceDate.

I'm unaware if these are breaking changes for other databases, but there were 0 failures after the changes.

I'd like to propose these changes, in order to get ORM working with MySQL, and will happily take feedback if this needs to be reworked to work with other databases.

kilnerm commented 5 years ago

I have merged changes for supporting different date encoding formats under PR #110.