Commit Graph

581 Commits

Author SHA1 Message Date
Conor Branagan bba480975b Add Go API for virtual tables
See https://www.sqlite.org/vtab.html for more details.

This work was started from
https://github.com/gwenn/gosqlite/blob/master/vtab.{c,go} and adds:

- Porting the API to go-sqlite3 APIs.
- Support for >= Go 1.6 without requiring the `cgocheck` flag to be changed.
- Filling out the unfinished callback functions for the `Vtable` struct.
- A simple `Context` API layer for ease of use when adding modules.

Tests are included.
2017-03-04 18:10:02 -05:00
Yasuhiro Matsumoto 3439fd2096 fix test 2017-03-05 02:37:15 +09:00
Yasuhiro Matsumoto 5b1175ef06 not use underscore 2017-03-05 00:46:52 +09:00
Yasuhiro Matsumoto 253bbf431d rename function 2017-03-05 00:45:41 +09:00
Yasuhiro Matsumoto cc256c7b14 add godoc for fixes golint 2017-03-05 00:43:26 +09:00
Yasuhiro Matsumoto 231af577dc fix typos 2017-03-05 00:34:36 +09:00
Yasuhiro Matsumoto 2fc807f668 use named field 2017-03-05 00:33:42 +09:00
mattn acf4ae4429 Merge pull request #387 from msoap/patch-1
Added available extensions to README
2017-03-02 09:08:39 +09:00
Sergey Mudrik 4fb55b1ad9 Added available extensions to README 2017-03-02 00:15:45 +03:00
Yasuhiro Matsumoto d82897d60e remove 1.6 2017-03-01 18:06:16 +09:00
Yasuhiro Matsumoto 845016ce9c test on 1.8 2017-03-01 17:29:49 +09:00
Yasuhiro Matsumoto a7b54c9ddb workaround for a compiler
Apple LLVM version 7.0.2 (clang-700.1.81)

Close #386
2017-03-01 16:44:54 +09:00
mattn ae99dd6561 Merge pull request #382 from mattn/sqlite-amalgamation-3170000
upgrade to sqlite-amalgamation-3170000
2017-03-01 15:59:06 +09:00
mattn c2ab9a4ac8 Merge pull request #279 from otoolep/src_dst_swapped
Source and destination are reversed
2017-03-01 15:57:43 +09:00
Yasuhiro Matsumoto 95df624454 upgrade to sqlite-amalgamation-3170000 2017-02-16 15:59:24 +09:00
Yasuhiro Matsumoto 2acfafad58 use variable db 2017-02-16 15:57:29 +09:00
Yasuhiro Matsumoto d03b7b541f update to 2017 2017-02-16 15:56:32 +09:00
Yasuhiro Matsumoto 588cd3292b fixes race 2017-02-11 21:48:33 +09:00
mattn 6f8cd03789 Merge pull request #378 from AlekSi/patch-1
Fix links to issues
2017-02-07 18:23:53 +09:00
Alexey Palazhchenko a5027c521a Fix links to issues 2017-02-07 10:54:49 +03:00
mattn ce9149a3c9 Merge pull request #376 from tych0/memory-faq
add a FAQ entry about :memory: races
2017-01-27 09:02:38 +09:00
Tycho Andersen ded1ba664d add a FAQ entry about :memory: races
Closes #204
Closes #309

Signed-off-by: Tycho Andersen <tycho@tycho.ws>
2017-01-26 14:55:07 -07:00
Yasuhiro Matsumoto 7ed900a7c4 fix test 2017-01-19 02:20:42 +09:00
mattn b9e7e69634 Merge pull request #375 from markbates/master
Removing an unused C import to allow for "buildable" go files. Fixes …
2017-01-19 01:19:49 +09:00
Mark Bates 5811704cf6 Removing an unused C import to allow for "buildable" go files. Fixes https://github.com/mattn/go-sqlite3/issues/374 2017-01-18 17:14:12 +01:00
Yasuhiro Matsumoto 2ce48427c4 remove fallbak for trace
close #372, #373
2017-01-19 00:56:34 +09:00
Yasuhiro Matsumoto f3a14987e0 fixes #372 2017-01-19 00:40:55 +09:00
Yasuhiro Matsumoto eff6379ba0 fix notrace 2017-01-11 01:29:59 +09:00
Yasuhiro Matsumoto b59c804b1d dummy constants 2017-01-11 01:18:51 +09:00
Yasuhiro Matsumoto efea85cb9a fixes #368 2017-01-10 00:40:58 +09:00
Yasuhiro Matsumoto a554cf198f close statement 2017-01-07 22:22:02 +09:00
Yasuhiro Matsumoto 6f2749a3ca fix race condition 2017-01-03 22:25:02 +09:00
Yasuhiro Matsumoto 2d44decb49 temporary fix BeginTx 2016-12-15 13:15:57 +09:00
Yasuhiro Matsumoto 64ccc601e6 Merge branch 'master' of https://github.com/mattn/go-sqlite3 2016-12-15 11:42:53 +09:00
Yasuhiro Matsumoto 5b064f2d05 fix #362 2016-12-15 11:42:36 +09:00
Yasuhiro Matsumoto 77eae5a3a4 fix #27 2016-12-15 11:41:22 +09:00
Yasuhiro Matsumoto 056f235aa6 fix named args 2016-12-09 13:12:14 +09:00
Yasuhiro Matsumoto 35cf400919 fix tests 2016-12-09 12:58:20 +09:00
Yasuhiro Matsumoto a160bbbc09 fix tree for tools/upgrade.go
Close #361
2016-12-09 09:08:59 +09:00
Yasuhiro Matsumoto 8ecd77c707 fix test
see https://github.com/golang/go/issues/18099
2016-12-01 12:12:18 +09:00
mattn fba66eb116 Merge pull request #356 from gconnell/import
Fix example import to point to mattn repo.
2016-11-12 01:58:19 +09:00
Graeme Connell 341bfcf7f1 Fix example import to point to mattn repo. 2016-11-11 09:50:05 -07:00
Yasuhiro Matsumoto ca5e381972 upgrade amalgamation code 2016-11-11 09:01:23 +09:00
Yasuhiro Matsumoto f043f8092b use prepare instead of Prepare 2016-11-09 01:13:34 +09:00
Yasuhiro Matsumoto 599dd7631f disable combination of libsqlite3 and trace because travis(trusty) is too old. 2016-11-08 18:27:48 +09:00
Joachim Bauch 6e9298a6b1 fix .travis.yml 2016-11-08 17:55:41 +09:00
Yasuhiro Matsumoto aa33ddc53b fix build 2016-11-08 17:24:01 +09:00
Yasuhiro Matsumoto d1009b4fa6 fix build 2016-11-08 17:12:03 +09:00
Yasuhiro Matsumoto bfeda3f4f6 fix build 2016-11-08 17:07:52 +09:00
mattn 14e5ed1773 Merge pull request #353 from fancycode/travis_tags
Test different build configurations on Travis.
2016-11-08 16:47:13 +09:00