aboutsummaryrefslogtreecommitdiff
path: root/vtable.go
diff options
context:
space:
mode:
authorConor Branagan <conor.branagan@gmail.com>2017-03-04 18:15:00 -0500
committerConor Branagan <conor.branagan@gmail.com>2017-03-04 18:37:04 -0500
commit9efa963d05cac8b780d1cb3abbd8493a94f1db82 (patch)
tree6c075e6971ff66ff98a6c6e8e31f5509de68aeb6 /vtable.go
parent[vtable] Add pure Go example of GitHub repo vtable. (diff)
downloadgolite-9efa963d05cac8b780d1cb3abbd8493a94f1db82.tar.gz
golite-9efa963d05cac8b780d1cb3abbd8493a94f1db82.tar.xz
[vtable] Rename Context to SQLiteContext
To not conflict with core "context" package naming.
Diffstat (limited to 'vtable.go')
-rw-r--r--vtable.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vtable.go b/vtable.go
index 907e2dc..40ce2ea 100644
--- a/vtable.go
+++ b/vtable.go
@@ -294,7 +294,7 @@ func goVEof(pCursor unsafe.Pointer) C.int {
//export goVColumn
func goVColumn(pCursor, cp unsafe.Pointer, col int) *C.char {
vtc := lookupHandle(uintptr(pCursor)).(*sqliteVTabCursor)
- c := (*Context)(cp)
+ c := (*SQLiteContext)(cp)
err := vtc.vTabCursor.Column(c, col)
if err != nil {
return mPrintf("%s", err.Error())
@@ -349,7 +349,7 @@ type VTabCursor interface {
// http://sqlite.org/vtab.html#xeof
EOF() bool
// http://sqlite.org/vtab.html#xcolumn
- Column(c *Context, col int) error
+ Column(c *SQLiteContext, col int) error
// http://sqlite.org/vtab.html#xrowid
Rowid() (int64, error)
}