Repository navigation
Closed
Labels
abi-changeABI change will break code that was compiled against older versions of the libraryenhancementNew feature or request
Description
Context & SDK Reference
lancedb-c (src/connection.rs) currently binds only uri, storage_option, and session on lancedb::ConnectBuilder, and only supports a single-string namespace parameter on a subset of operations (create_namespace, drop_namespace, list_namespaces, drop_table, rename_table).
Reference APIs in the pinned lancedb SDK (v0.42.0-beta.21, lancedb::connection):
ConnectBuilder:api_key,region,host_override,sql_host_override,read_consistency_interval,client_config(ClientConfig:user_agent,retry_config,timeout_config,extra_headers,tls_config, etc.),namespace_client_property/namespace_client_properties,manifest_enabled,aws_creds.connect_namespace(ns_impl, properties)->ConnectNamespaceBuilder(storage_option,read_consistency_interval,session,namespace_client_property,pushdown_operation).Connection:describe_namespace,list_tables,drop_all_tables,read_consistency, and multi-levelnamespace_path: &[String]acrosstable_names,create_table,open_table,drop_table,rename_table,list_namespaces,create_namespace,drop_namespace,describe_namespace.
Proposed C API Scope
- Extend
LanceDBConnectBuilderwith setters for:api_key,region,host_overrideread_consistency_interval(e.g., seconds/milliseconds duration; distinguish unset / immediate0/ interval)client_config(flat C struct or builder setters covering timeouts, retries, user agent, extra headers, TLS options exposed bylancedb::remote::ClientConfig)namespace_client_property/manifest_enabled
- Expose
lancedb_connect_namespace(...)and its builder (storage_option,read_consistency_interval,session,execute,free) for connecting directly to aLanceNamespaceimplementation (dir,rest, etc.). - Standardize multi-level namespace paths across Connection APIs (
const char* const* namespace_path, size_t namespace_path_len, withNULL/0representing the root namespace), covering:list_namespaces,create_namespace,drop_namespace,describe_namespacetable_names(TableNamesBuilder::namespace),drop_table,rename_table,drop_all_tablescreate_tableandopen_tablenamespace path wiring (coordinated with the table builder options issue).
Non-Goals
- Enterprise control-plane APIs (
create_secret,create_storage_integration,create_view,create_property_graph,execute_query_async, OAuth interactive flows). - Embedding registry binding (
ConnectBuilder::embedding_registry).
Acceptance Criteria
- Rust FFI implementation and
include/lancedb.hdeclarations stay in exact parity, with clear ownership andlancedb_free_*functions for all returned handles/strings. - Zero-initialized / NULL optional fields preserve
lancedbSDK defaults. - C++ Catch2 tests exercise
read_consistency_interval, multi-level namespace CRUD (create/list/describe/drop),connect_namespace(e.g.,dirnamespace), and remote builder configuration error/validation paths, passing CI and valgrind.
Metadata
Metadata
Assignees
Labels
abi-changeABI change will break code that was compiled against older versions of the libraryenhancementNew feature or request
Activity
connection: keep remote settings out of native storage
connection: gate remote SDK setters behind the remote feature
connection: expose simple connect settings and read consistency (#152)
connection: clarify namespace storage and execute contracts
connection: add direct namespace builder (#167)
Xuanwo commentedon Nov 23, 2026
The C API now exposes remote connection settings and client configuration (#152, #169), direct namespace connections (#167), and multi-level namespace paths for namespace and table operations (#137, #153, #151). The tests cover read consistency, nested namespace management, direct
dirconnections, and remote configuration validation. The landed main commit32591cfpassed native CI, including the Linux Valgrind suites.Main CI