buggins / ddbc

DDBC is DB Connector for D language (similar to JDBC)
78 stars 45 forks source link

Support std.datetime.systime.SysTime #62

Closed zhaopuming closed 5 years ago

zhaopuming commented 6 years ago

getDateTime and setDateTime only support up to precision in seconds, but msecs and usecs are useful in many situations, and are supported by postegresql's timestamp type.

SingingBush commented 5 years ago

I've made a start on this but it'll take a while to write all the tests. It needs to be for all drivers so there's also the problem of ensuring that the CI is testing all db types

SingingBush commented 5 years ago

So far I've got this done for the SQLite driver in a feature/systime branch on my fork. I'll continue with the remaining drivers when I can

SingingBush commented 5 years ago

This is now merged. See the example usage in example/source/testddbc.d

@zhaopuming Could you build from the current master and give it a go.