aboutsummaryrefslogtreecommitdiff
path: root/_example
diff options
context:
space:
mode:
Diffstat (limited to '_example')
-rw-r--r--_example/limit/limit.go6
-rw-r--r--_example/vtable/vtable.go2
-rw-r--r--_example/vtable_eponymous_only/vtable.go2
3 files changed, 5 insertions, 5 deletions
diff --git a/_example/limit/limit.go b/_example/limit/limit.go
index bcba819..c1adfe8 100644
--- a/_example/limit/limit.go
+++ b/_example/limit/limit.go
@@ -10,9 +10,9 @@ import (
"github.com/mattn/go-sqlite3"
)
-func createBulkInsertQuery(n int, start int) (query string, args []interface{}) {
+func createBulkInsertQuery(n int, start int) (query string, args []any) {
values := make([]string, n)
- args = make([]interface{}, n*2)
+ args = make([]any, n*2)
pos := 0
for i := 0; i < n; i++ {
values[i] = "(?, ?)"
@@ -27,7 +27,7 @@ func createBulkInsertQuery(n int, start int) (query string, args []interface{})
return
}
-func bulkInsert(db *sql.DB, query string, args []interface{}) (err error) {
+func bulkInsert(db *sql.DB, query string, args []any) (err error) {
stmt, err := db.Prepare(query)
if err != nil {
return
diff --git a/_example/vtable/vtable.go b/_example/vtable/vtable.go
index 10d12a9..c65535b 100644
--- a/_example/vtable/vtable.go
+++ b/_example/vtable/vtable.go
@@ -93,7 +93,7 @@ func (vc *ghRepoCursor) Column(c *sqlite3.SQLiteContext, col int) error {
return nil
}
-func (vc *ghRepoCursor) Filter(idxNum int, idxStr string, vals []interface{}) error {
+func (vc *ghRepoCursor) Filter(idxNum int, idxStr string, vals []any) error {
vc.index = 0
return nil
}
diff --git a/_example/vtable_eponymous_only/vtable.go b/_example/vtable_eponymous_only/vtable.go
index 49fc0b7..9f22ebc 100644
--- a/_example/vtable_eponymous_only/vtable.go
+++ b/_example/vtable_eponymous_only/vtable.go
@@ -77,7 +77,7 @@ func (vc *seriesCursor) Column(c *sqlite3.SQLiteContext, col int) error {
return nil
}
-func (vc *seriesCursor) Filter(idxNum int, idxStr string, vals []interface{}) error {
+func (vc *seriesCursor) Filter(idxNum int, idxStr string, vals []any) error {
switch {
case len(vals) < 1:
vc.seriesTable.start = 0