class DuckDB::ClientContext
DuckDB::ClientContext represents a DuckDB client context object.
Instances are returned by DuckDB::ScalarFunction::BindInfo#client_context during the bind phase of a scalar function.
Public Instance Methods
Source
static VALUE rbduckdb_client_context_connection_id(VALUE self) {
rubyDuckDBClientContext *ctx;
TypedData_Get_Struct(self, rubyDuckDBClientContext, &client_context_data_type, ctx);
return ULL2NUM(duckdb_client_context_get_connection_id(ctx->client_context));
}
Returns the connection id of the client context.