0
0
mirror of https://gitlab.com/cznic/sqlite.git synced 2025-07-07 00:15:24 +00:00
Files
go-sqlite/sqlite.go
Dan Peterson 064df839a4 driver: support _time_format DSN query param
Building on the _pragma query param support added in 508747c9, support
a new _time_format query param.

If _time_format is set to "sqlite", written times use the time package
format "2006-01-02 15:04:05.999999999-07:00". This is the format
mattn/go-sqlite3 uses and is format 4 at
https://sqlite.org/lang_datefunc.html#time_values.

By default, times are formatted with time.Time.String. This maintains
compatibility with existing users of the driver.

Fixes #47
2021-10-23 15:36:02 -03:00

36 KiB