Augusto Roman 7b0d180ce9 Store/retrieve timezones for time.Time values.
Previously, the timezone information for a provided value was discarded
and the value always stored as in UTC.  However, sqlite allows specifying
the timezone offsets and handles those values appropriately.  This change
stores the timezone information and parses it out if present, otherwise
it defaults to UTC as before.

One additional bugfix:  Previously, a unix timestamp in seconds was
parsed in the local timezone (rather than UTC), in contrast to a unix
timestamp in milliseconds that was parsed in UTC.

While fixing that extra bug, I cleaned up the parsing code -- no need to
convert to a string and then parse it back again and risk a parse error,
just to check the number of digits.

The tests were extended to cover non-UTC timezones storage & retrieval,
meaningful unix timestamps, and correct handling of a trailing Z.
2015-10-09 22:59:25 -07:00
2015-09-16 10:47:42 +09:00
2015-06-12 13:26:42 +09:00
2014-11-14 17:20:14 +09:00
2014-11-14 00:23:32 +01:00
2015-09-16 15:58:07 +09:00
2015-01-26 18:38:13 +09:00
2014-08-18 17:00:59 +09:00
2014-08-18 16:52:12 +09:00
2015-08-20 03:02:59 +03:00
2015-08-20 03:02:59 +03:00
2015-06-12 13:26:42 +09:00
2015-06-12 13:26:42 +09:00
2015-06-12 13:26:42 +09:00

go-sqlite3

Build Status Coverage Status

Description

sqlite3 driver conforming to the built-in database/sql interface

Installation

This package can be installed with the go get command:

go get github.com/mattn/go-sqlite3

Documentation

API documentation can be found here: http://godoc.org/github.com/mattn/go-sqlite3

Examples can be found under the ./_example directory

FAQ

License

MIT: http://mattn.mit-license.org/2012

sqlite3-binding.c, sqlite3-binding.h, sqlite3ext.h

The -binding suffix was added to avoid build failures under gccgo.

In this repository, those files are amalgamation code that copied from SQLite3. The license of those codes are depend on the license of SQLite3.

Author

Yasuhiro Matsumoto (a.k.a mattn)

Description
No description provided
Readme 50 MiB
Languages
C 96.2%
Go 3.4%
C++ 0.3%