Thomas Boerger 1ebb35b988 | 8 years ago | |
---|---|---|
.. | ||
LICENSE | 8 years ago | |
README.md | 8 years ago | |
backup.go | 8 years ago | |
callback.go | 8 years ago | |
doc.go | 8 years ago | |
error.go | 8 years ago | |
sqlite3-binding.c | 8 years ago | |
sqlite3-binding.h | 8 years ago | |
sqlite3.go | 8 years ago | |
sqlite3_fts5.go | 8 years ago | |
sqlite3_icu.go | 8 years ago | |
sqlite3_json1.go | 8 years ago | |
sqlite3_libsqlite3.go | 8 years ago | |
sqlite3_load_extension.go | 8 years ago | |
sqlite3_omit_load_extension.go | 8 years ago | |
sqlite3_other.go | 8 years ago | |
sqlite3_windows.go | 8 years ago | |
sqlite3ext.h | 8 years ago | |
tracecallback.go | 8 years ago | |
tracecallback_noimpl.go | 8 years ago |
sqlite3 driver conforming to the built-in database/sql interface
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.
API documentation can be found here: http://godoc.org/github.com/mattn/go-sqlite3
Examples can be found under the ./_example
directory
Want to build go-sqlite3 with libsqlite3 on my linux.
Use go build --tags "libsqlite3 linux"
Want to build go-sqlite3 with libsqlite3 on OS X.
Install sqlite3 from homebrew: brew install sqlite3
Use go build --tags "libsqlite3 darwin"
Want to build go-sqlite3 with icu extension.
Use go build --tags "icu"
Can't build go-sqlite3 on windows 64bit.
Probably, you are using go 1.0, go1.0 has a problem when it comes to compiling/linking on windows 64bit. See: https://github.com/mattn/go-sqlite3/issues/27
Getting insert error while query is opened.
You can pass some arguments into the connection string, for example, a URI. See: https://github.com/mattn/go-sqlite3/issues/39
Do you want to cross compile? mingw on Linux or Mac?
See: https://github.com/mattn/go-sqlite3/issues/106 See also: http://www.limitlessfx.com/cross-compile-golang-app-for-windows-from-linux.html
Want to get time.Time with current locale
Use loc=auto
in SQLite3 filename schema like file:foo.db?loc=auto
.
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 an amalgamation of code that was copied from SQLite3. The license of that code is the same as the license of SQLite3.
Yasuhiro Matsumoto (a.k.a mattn)