sqlite3 driver for go using database/sql
Go to file
cds 40b65367c5 Added missing db.Close() and rows.Close() calls; fixes tests on vmhgfs filesystems.
Individual tests were never successfully removing 'foo.db' (the error was ignored), which caused everything but the first test to fail on my vmhgfs filesystem.  Adding the relevant defer db.Close() and rows.Close() calls fixed the leaks, enabling os.Remove() to work.
2012-09-11 09:23:21 -05:00
example remove Makefile. 2012-05-15 20:49:45 +09:00
.travis.yml add travis recepi. 2012-03-30 00:39:03 +09:00
README.mkd MacPorts -> Homebrew 2012-08-06 17:24:53 -06:00
sqlite3.go gofmt + fix erroneous t.Errorf("foo:", err) statements to t.Error("foo:", err) . 2012-09-11 08:35:53 -05:00
sqlite3_test.go Added missing db.Close() and rows.Close() calls; fixes tests on vmhgfs filesystems. 2012-09-11 09:23:21 -05: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