Commit Graph

3 Commits

Author SHA1 Message Date
Yasuhiro Matsumoto f694bb773c remove dependency of assert 2017-03-05 21:33:03 +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 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