Virtual table API.

This commit is contained in:
Nuno Cruces
2023-11-29 00:46:27 +00:00
parent 9bf14becaf
commit 3f05115cd7
7 changed files with 22 additions and 16 deletions

View File

@@ -103,7 +103,7 @@ func (c *Conn) VtabConfig(op VtabConfigOption, args ...any) error {
}
// VTabConstructor is a virtual table constructor function.
type VTabConstructor[T VTab] func(db *Conn, arg ...string) (T, error)
type VTabConstructor[T VTab] func(db *Conn, module, schema, table string, arg ...string) (T, error)
type module[T VTab] [2]VTabConstructor[T]