Golang SQLCipher driver conforming to the built-in database/sql interface and using the latest sqlite3 code.
Go to file
Graeme Connell 9c24784fe1 Use file in os.TempDir() for tests.
Sometimes it's best to not create files in the directories where code lives...
for example, that directory might be read-only, or folks might be using
source-control or build systems that disallow that behavior.  To fix this, we
create a file in the temp directory and use it instead.

We don't use ioutil.TempFile(), since that actually creates the file, and we'd
like the tests to run as if the file had never existed.  We use 16 bytes from
crypto/rand to avoid people doing bad things with symlinks in the temp
directory.
2013-05-09 11:37:39 -06:00
example add example code using bulk insert. 2012-12-26 09:53:22 +09: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 Fix typo 2013-03-15 23:01:23 +09:00
sqlite3.go Treat int as 64bit 2013-04-09 15:18:47 +09: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 Use file in os.TempDir() for tests. 2013-05-09 11:37:39 -06: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

FAQ

LICENSE

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