Skip to content

Add DuckDB::TableFunction bind data get/set - #8

Closed
otegami wants to merge 1 commit into
mainfrom
feature/bind-info-set-bind-data
Closed

Add DuckDB::TableFunction bind data get/set#8
otegami wants to merge 1 commit into
mainfrom
feature/bind-info-set-bind-data

Conversation

@otegami

@otegami otegami commented Jul 29, 2026

Copy link
Copy Markdown
Owner

GitHub: suketaGH-1123

Wrap duckdb_bind_set_bind_data() and duckdb_function_get_bind_data() so a table function's bind callback can stash an arbitrary Ruby object and read it back during execution. The object is kept alive and compaction-safe until DuckDB frees the bind data.
ref: https://duckdb.org/docs/stable/clients/c/api.html#duckdb_bind_set_bind_data
ref: https://duckdb.org/docs/stable/clients/c/api.html#duckdb_function_get_bind_data

GitHub: suketaGH-1123

Wrap duckdb_bind_set_bind_data() and duckdb_function_get_bind_data() so a
table function's bind callback can stash an arbitrary Ruby object and read it
back during execution. The object is kept alive and compaction-safe until
DuckDB frees the bind data.
ref: https://duckdb.org/docs/stable/clients/c/api.html#duckdb_bind_set_bind_data
ref: https://duckdb.org/docs/stable/clients/c/api.html#duckdb_function_get_bind_data
@otegami otegami closed this Jul 30, 2026
@otegami
otegami deleted the feature/bind-info-set-bind-data branch July 30, 2026 10:02
@otegami
otegami restored the feature/bind-info-set-bind-data branch July 30, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant