marcboeker / go-duckdb

go-duckdb provides a database/sql driver for the DuckDB database engine.
MIT License
583 stars 96 forks source link

Replacement scan #208

Closed ajzo90 closed 1 month ago

ajzo90 commented 2 months ago

Simple implementation of replacement scan API in duckdb.

Registers a callback function that gets called when a query refer to a table that not exists in duckdb as per https://duckdb.org/docs/api/c/replacement_scans.

Currently limited to supporting int64 and string as table function arguments, but this seems like a limitation in duckdb C API.

marcboeker commented 1 month ago

@ajzo90 Thanks for the contribution. @taniabogatsch Thanks for the review.