go-sqlcipher/README.mkd

59 lines
1.8 KiB
Markdown
Raw Normal View History

2011-12-03 16:57:40 +04:00
go-sqlite3
==========
2013-05-11 17:01:06 +04:00
[![Build Status](https://travis-ci.org/mattn/go-sqlite3.png?branch=master)](https://travis-ci.org/mattn/go-sqlite3)
2011-12-03 16:57:40 +04:00
DESCRIPTION
-----------
2012-07-09 03:45:22 +04:00
sqlite3 driver conforming to the built-in database/sql interface
2011-12-03 16:57:40 +04:00
2012-03-29 07:46:32 +04:00
INSTALLATION
------------
2012-07-09 03:45:22 +04:00
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](http://mxcl.github.com/homebrew/) on Mac OS X, you can install with:
2012-07-09 03:45:22 +04:00
brew install pkgconfig
brew install sqlite3
2012-07-09 03:45:22 +04:00
If you are using Ubuntu, you can install with:
sudo apt-get install pkg-config sqlite3 libsqlite3-dev
2012-07-09 03:45:22 +04:00
2012-03-29 07:46:32 +04:00
If you are using Windows, you can get pkg-config from below.
http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/
2012-07-09 03:45:22 +04:00
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
2012-03-29 07:48:11 +04:00
2013-02-13 13:27:35 +04:00
FAQ
---
2013-02-13 13:38:12 +04:00
* Can't build go-sqlite3 on windows 64bit.
2013-02-13 13:27:35 +04:00
2013-06-18 15:40:15 +04:00
> Probably, you are using go 1.0, go1.0 has a problem when it comes to compiling/linking on windows 64bit.
2013-02-13 13:38:12 +04:00
> See: https://github.com/mattn/go-sqlite3/issues/27
2013-02-13 13:27:35 +04:00
2013-02-13 13:38:12 +04:00
* Getting insert error while query is opened.
2013-02-13 13:27:35 +04:00
2013-06-18 15:40:15 +04:00
> You can pass some arguments into the connection string, for example, a URI.
2013-02-13 13:38:12 +04:00
> See: https://github.com/mattn/go-sqlite3/issues/39
2013-02-13 13:27:35 +04:00
2013-03-15 17:59:50 +04:00
* Can't build go-sqlite3. I got error of pkg-config.
2013-06-18 15:40:15 +04:00
> Probably, you didn't set PKG_CONFIG_PATH environment variable.
2013-03-15 18:01:23 +04:00
> Add PKG_CONFIG_PATH=/path/to/pkgconfig into your bashrc (something for
> your shell), Or do `export PKG_CONFIG_PATH=/path/to/pkgconfig` in bash.
2013-03-15 17:59:50 +04:00
> See: https://github.com/mattn/go-sqlite3/issues/45
2011-12-03 16:57:40 +04:00
LICENSE
-------
2012-03-29 07:46:32 +04:00
MIT: http://mattn.mit-license.org/2012