Commit Graph

557 Commits

Author SHA1 Message Date
Yasuhiro Matsumoto fc03fa9989 close connection when got errors in Open 2017-03-24 08:48:29 +09:00
Yasuhiro Matsumoto 866c3293d9 fix breaking compatibility.
revert cf4bd560f1

close #394
2017-03-21 09:14:48 +09:00
Yasuhiro Matsumoto bd7fdb6033 fix test 2017-03-21 00:57:55 +09:00
Yasuhiro Matsumoto 1d0b0f0e72 disable extension when loading failed 2017-03-21 00:47:07 +09:00
Yasuhiro Matsumoto 796dcab06d fix test 2017-03-21 00:42:54 +09:00
Yasuhiro Matsumoto 0acd8f7aec fix build 2017-03-20 23:34:57 +09:00
Yasuhiro Matsumoto 997cab8094 fix build 2017-03-20 23:31:22 +09:00
Yasuhiro Matsumoto cf4bd560f1 fix build 2017-03-20 23:26:15 +09:00
Yasuhiro Matsumoto 53900fb4f0 return nil when last error is SQLITE_OK 2017-03-20 23:23:24 +09:00
Yasuhiro Matsumoto eac1dfa2a6 fix test 2017-03-05 23:02:06 +09:00
Yasuhiro Matsumoto ecc5105e21 golint 2017-03-05 22:29:09 +09:00
Yasuhiro Matsumoto 0dba8bb9aa rename 2017-03-05 22:25:33 +09:00
Yasuhiro Matsumoto 9a7131f1a9 add test env 2017-03-05 22:20:06 +09:00
Yasuhiro Matsumoto 835dea39a6 vtable is not default 2017-03-05 22:18:56 +09:00
Yasuhiro Matsumoto 32ab0d8730 refactoring 2017-03-05 22:16:51 +09:00
Yasuhiro Matsumoto d5ce94296e rename 2017-03-05 21:40:25 +09:00
Yasuhiro Matsumoto f694bb773c remove dependency of assert 2017-03-05 21:33:03 +09:00
Yasuhiro Matsumoto 0147a481cf add gorepocard badge 2017-03-05 21:05:35 +09:00
Yasuhiro Matsumoto 0ff13e6771 golint 2017-03-05 21:05:28 +09:00
Yasuhiro Matsumoto f238067266 remove type ZeroBlobLength 2017-03-05 20:55:32 +09:00
Yasuhiro Matsumoto f9e79c0a39 golint 2017-03-05 20:52:55 +09:00
Yasuhiro Matsumoto a9d61d54c6 use pointer receiver 2017-03-05 20:49:45 +09:00
Yasuhiro Matsumoto fca908b496 fix import path 2017-03-05 20:48:17 +09:00
mattn 55cd56d7ed Merge pull request #347 from DataDog/dd/vtable
Add Go API for virtual tables
2017-03-05 20:44:09 +09:00
Conor Branagan 9efa963d05 [vtable] Rename Context to SQLiteContext
To not conflict with core "context" package naming.
2017-03-04 18:37:04 -05:00
Conor Branagan 618e784627 [vtable] Add pure Go example of GitHub repo vtable. 2017-03-04 18:10:02 -05:00
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