sqlite3 driver for go using database/sql
Go to file
lye dcd44f5118 Add support for extracting 2006-01-02 formatted timestamps.
SQLite3 stores timestamps very naively -- they're completely untyped,
and can contain any value. The previous implementation always inserts
values in the 'datetime' format, and returns an error when attempting to
extract a field with a different format.

Some legacy databases, unfortunately, were generated using the 'date'
SQLite3 function, which produces rows in the '2006-01-02' format. This
patch adds a special case so that these rows can be extracted without
error.
2012-11-03 19:45:58 -05:00
example Switched example back to mattn's repo. 2012-10-28 22:28:49 -07:00
.travis.yml Updated to newer go support in travis-ci. It is both simpler and should test faster. 2012-10-28 22:24:18 -07:00
README.mkd MacPorts -> Homebrew 2012-08-06 17:24:53 -06:00
sqlite3.go Add support for extracting 2006-01-02 formatted timestamps. 2012-11-03 19:45:58 -05:00
sqlite3.h Modified for windows support. 2012-10-27 19:58:40 -07:00
sqlite3_other.go Modified for windows support. 2012-10-27 19:58:40 -07:00
sqlite3_test.go Add support for extracting 2006-01-02 formatted timestamps. 2012-11-03 19:45:58 -05:00
sqlite3_windows.c Modified for windows support. 2012-10-27 19:58:40 -07:00
sqlite3_windows.go Modified for windows support. 2012-10-27 19:58:40 -07:00
sqlite3ext.h Modified for windows support. 2012-10-27 19:58:40 -07:00

README.mkd

go-sqlite3

DESCRIPTION

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

INSTALLATION

It requires pkg-config. You can also confirm that permissions and dependancies are setup by running pkg-config --cflags --libs sqlite3.

If you are using Homebrew on Mac OS X, you can install with:

brew install pkgconfig
brew install sqlite3

If you are using Ubuntu, you can install with:

sudo apt-get install pkg-config
sudo apt-get install sqlite3  
sudo apt-get install libsqlite3-dev 

If you are using Windows, you can get pkg-config from below.

http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/

Go does not support static linking for external C library; sqlite3 should be built as a shared library. If it runs on Windows, it needs dll.

Finally, this package can be installed with the go get command:

go get github.com/mattn/go-sqlite3

LICENSE

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