tursodatabase/libsql

Idea: dynamic table-valued functions, backed by WebAssembly user-defined functions

开放

#127 创建于 2023年2月3日

 (2 条评论) (1 个反应) (0 位负责人)C (490 个派生)batch import
help wanted

仓库指标

星标
 (16,744 个星标)
PR 合并指标
 (平均合并 23小时 19分钟) (30 天内合并 1 个 PR)

描述

Table-valued functions are described here: https://www.sqlite.org/vtab.html#tabfunc2

Now that we support dynamic user-defined functions in WebAssembly, we should consider going a step further and allowing users to dynamically create table-valued functions, using (and maybe extending) the existing CREATE VIRTUAL TABLE interface. The rough idea is to simply have a functor that keeps its state in a virtual table, and uses a user-defined function to generate data.

Tribute to @fire for coming up with the idea and patiently explaining it to me multiple times until I grasped it :innocent:

贡献者指南