sqlite3 driver for go using database/sql
Go to file
Ian Lance Taylor 8c66b9cf5e callback: use handles rather than passing Go pointers
The cgo pointer passing rules forbid passing a Go pointer to C if that
pointer points to memory containing other Go pointers.  This is true
even if the Go pointer is converted to uintptr.

This change fixes the code to use a handle instead, and to look up the
handle in the callback function.
2016-01-29 13:18:39 -08:00
_example remove binary file 2015-09-16 10:47:42 +09:00
code Upgrade sqlite amalgamation to latest 3.10.2 2016-01-22 13:15:37 +03:00
sqlite3_test Merge branch 'pr/207' 2015-11-02 11:53:42 +09:00
.gitignore add .gitignore 2014-11-14 17:20:14 +09:00
.travis.yml go cover has moved 2014-11-14 00:23:32 +01:00
LICENSE Add LICENSE file 2014-08-18 16:52:12 +09:00
README.md Update README.md 2016-01-28 20:28:43 -05:00
backup.go Rename sqlite3.{c,h} to sqlite3-binding.{c,h} 2015-03-11 16:19:50 -04:00
callback.go callback: use handles rather than passing Go pointers 2016-01-29 13:18:39 -08:00
callback_test.go Move argument converters to callback.go, and optimize return value handling. 2015-08-21 16:37:45 -07:00
doc.go Implement support for passing Go functions as custom functions to SQLite. 2015-08-21 13:39:50 -07:00
error.go Add one blank line for godoc 2014-08-18 17:00:59 +09:00
error_test.go Add test for ErrNo.Extend() 2015-01-26 18:38:13 +09:00
sqlite3-binding.c hack to use libsqlite3 2015-06-12 13:26:42 +09:00
sqlite3-binding.h hack to use libsqlite3 2015-06-12 13:26:42 +09:00
sqlite3.go callback: use handles rather than passing Go pointers 2016-01-29 13:18:39 -08:00
sqlite3_fts3_test.go Clean up tempfiles in tests 2015-11-03 13:52:28 +01:00
sqlite3_icu.go added icu extension support 2015-08-20 03:02:59 +03:00
sqlite3_libsqlite3.go hack to use libsqlite3 2015-06-12 13:26:42 +09:00
sqlite3_load_extension.go introduce ability to pass sqlite_omit_load_extension 2015-09-04 14:46:16 -07:00
sqlite3_omit_load_extension.go introduce ability to pass sqlite_omit_load_extension 2015-09-04 14:46:16 -07:00
sqlite3_other.go remove -lpthread. related issue #201 2015-04-28 08:58:25 +09:00
sqlite3_test.go Clean up tempfiles in tests 2015-11-03 13:52:28 +01:00
sqlite3_windows.go Fix compile for old mingw32 2015-12-30 00:19:24 +02:00

README.md

go-sqlite3

Build Status Coverage Status GoDoc

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

go-sqlite3 is cgo package. If you want to build your app using go-sqlite3, you need gcc. However, if you install go-sqlite3 with go install github.com/mattn/go-sqlite3, you don't need gcc to build your app anymore.

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)