buggins / ddbc

DDBC is DB Connector for D language (similar to JDBC)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support std.datetime.systime.SysTime

zhaopuming opened this issue · comments

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.

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

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

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.