aboutsummaryrefslogtreecommitdiff
path: root/_example/vtable
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 /_example/vtable
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 '_example/vtable')
-rw-r--r--_example/vtable/vtable.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/_example/vtable/vtable.go b/_example/vtable/vtable.go
index cc0f308..13e2624 100644
--- a/_example/vtable/vtable.go
+++ b/_example/vtable/vtable.go
@@ -3,7 +3,7 @@ package main
import (
"encoding/json"
"fmt"
- "github.com/mattn/go-sqlite3"
+ "github.com/DataDog/go-sqlite3"
"io/ioutil"
"net/http"
)
@@ -73,7 +73,7 @@ type ghRepoCursor struct {
repos []GithubRepo
}
-func (vc *ghRepoCursor) Column(c *sqlite3.Context, col int) error {
+func (vc *ghRepoCursor) Column(c *sqlite3.SQLiteContext, col int) error {
switch col {
case 0:
c.ResultInt(vc.repos[vc.index].ID)