More vtab API.

This commit is contained in:
Nuno Cruces
2024-01-08 19:23:32 +00:00
parent 2fb325b223
commit 69937fbee5
15 changed files with 176 additions and 55 deletions

View File

@@ -18,7 +18,7 @@ import (
func Register(db *sqlite3.Conn) {
sqlite3.CreateModule[array](db, "array", nil,
func(db *sqlite3.Conn, _, _, _ string, _ ...string) (array, error) {
err := db.DeclareVtab(`CREATE TABLE x(value, array HIDDEN)`)
err := db.DeclareVTab(`CREATE TABLE x(value, array HIDDEN)`)
return array{}, err
})
}