Versions, tags, branches, and metadata
- group Versions, tags, branches, and metadata
Inspect and change table history, branches, and key-value metadata.
Functions
-
LanceDBError lancedb_table_list_versions(const LanceDBTable *table, LanceDBVersion **versions_out, LanceDBVersionMetadata **metadata_out, size_t *count_out, char **error_message)
List all versions of the table.
On success, versions_out will point to an array of LanceDBVersion structs. If metadata_out is non-NULL, it will point to a parallel array of LanceDBVersionMetadata structs (one per version). The caller must free the returned arrays using lancedb_free_versions() and lancedb_free_version_metadata() respectively. If error_message is provided and an error occurs, the caller must free the error message with lancedb_free_string().
- Parameters:
table – - pointer to LanceDBTable
versions_out – - pointer to receive the array of LanceDBVersion structs
metadata_out – - optional pointer to receive per-version metadata (NULL to skip)
count_out – - pointer to receive the number of versions
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
Error code indicating success or failure
-
LanceDBError lancedb_table_checkout(const LanceDBTable *table, uint64_t version, char **error_message)
Check out a specific version of the table.
The table becomes a read-only view of the requested version until lancedb_table_checkout_latest() or lancedb_table_restore() is called. Other table handles are not affected. If error_message is provided and an error occurs, the caller must free the error message with lancedb_free_string().
- Parameters:
table – - pointer to LanceDBTable
version – - version number to check out
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
Error code indicating success or failure
-
LanceDBError lancedb_table_checkout_tag(const LanceDBTable *table, const char *tag, char **error_message)
Check out the version referenced by a tag.
The table becomes a read-only view of the tagged version until lancedb_table_checkout_latest() or lancedb_table_restore() is called. Other table handles are not affected. If error_message is provided and an error occurs, the caller must free the error message with lancedb_free_string().
- Parameters:
table – - pointer to LanceDBTable
tag – - null-terminated C string containing the tag name
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
Error code indicating success or failure
-
LanceDBError lancedb_table_checkout_latest(const LanceDBTable *table, char **error_message)
Return the table to the latest version.
This drops any version or tag checkout and resumes tracking the latest table version. If error_message is provided and an error occurs, the caller must free the error message with lancedb_free_string().
- Parameters:
table – - pointer to LanceDBTable
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
Error code indicating success or failure
-
LanceDBError lancedb_table_restore(const LanceDBTable *table, char **error_message)
Restore the table to the currently checked out version.
This promotes the checked out version to the latest version. It fails when the table has not been checked out. On success the table tracks the latest version again. If error_message is provided and an error occurs, the caller must free the error message with lancedb_free_string().
- Parameters:
table – - pointer to LanceDBTable
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
Error code indicating success or failure
-
LanceDBError lancedb_table_list_tags(const LanceDBTable *table, const LanceDBTag **tags_out, size_t *count_out, char **error_message)
List all tags of the table.
On success, tags_out points to a read-only array of LanceDBTag structs and count_out receives its length. An empty result sets tags_out to NULL and count_out to zero. The array and its strings are owned by the library and must not be modified or freed individually. Free the whole array with lancedb_free_tags() using the returned count. If error_message is provided and an error occurs, the caller must free the error message with lancedb_free_string().
- Parameters:
table – - pointer to LanceDBTable
tags_out – - pointer to receive the read-only array of LanceDBTag structs
count_out – - pointer to receive the number of tags
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
Error code indicating success or failure
-
LanceDBError lancedb_table_get_tag_version(const LanceDBTable *table, const char *tag, uint64_t *version_out, char **error_message)
Get the version referenced by a tag.
On success, version_out is set to the version referenced by the tag. On failure, version_out is left unchanged. If error_message is provided and an error occurs, the caller must free the error message with lancedb_free_string().
- Parameters:
table – - pointer to LanceDBTable
tag – - null-terminated C string containing the tag name
version_out – - pointer to receive the tag’s version
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
Error code indicating success or failure
-
LanceDBError lancedb_table_create_tag(const LanceDBTable *table, const char *tag, uint64_t version, char **error_message)
Create a tag for a table version.
Tag creation is metadata-only and does not create a new table version. The operation fails when the tag already exists or the version is unknown. If error_message is provided and an error occurs, the caller must free the error message with lancedb_free_string().
- Parameters:
table – - pointer to LanceDBTable
tag – - null-terminated C string containing the tag name
version – - version number the tag references
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
Error code indicating success or failure
-
LanceDBError lancedb_table_delete_tag(const LanceDBTable *table, const char *tag, char **error_message)
Delete a tag from the table.
Tag deletion is metadata-only and does not create a new table version. The operation fails when the tag does not exist. If error_message is provided and an error occurs, the caller must free the error message with lancedb_free_string().
- Parameters:
table – - pointer to LanceDBTable
tag – - null-terminated C string containing the tag name
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
Error code indicating success or failure
-
LanceDBError lancedb_table_update_tag(const LanceDBTable *table, const char *tag, uint64_t version, char **error_message)
Update an existing tag to reference another table version.
Tag updates are metadata-only and do not create a new table version. The operation fails when the tag does not exist or the version is unknown. If error_message is provided and an error occurs, the caller must free the error message with lancedb_free_string().
- Parameters:
table – - pointer to LanceDBTable
tag – - null-terminated C string containing the tag name
version – - version number the tag should reference
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
Error code indicating success or failure
-
LanceDBError lancedb_table_create_branch(const LanceDBTable *table, const char *name, const LanceDBBranchSource *source, LanceDBTable **table_out, char **error_message)
Create a new branch and return a table handle scoped to it.
The returned handle is independent of the source handle: writes through it do not change the source branch, and the source handle stays usable. The caller must free the returned handle with lancedb_table_free(). If error_message is provided and an error occurs, the caller must free the error message with lancedb_free_string().
- Parameters:
table – - pointer to LanceDBTable; the handle keeps its own branch
name – - null-terminated C string containing the new branch name
source – - source reference for the branch
table_out – - pointer to receive the new branch table handle
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
Error code indicating success or failure
-
LanceDBError lancedb_table_checkout_branch(const LanceDBTable *table, const char *name, const LanceDBBranchCheckoutOptions *options, LanceDBTable **table_out, char **error_message)
Check out an existing branch and return a table handle scoped to it.
Without a version the returned handle tracks the branch head and stays writable. With a version the returned handle is pinned to that branch version and is read-only. The original handle is not modified and stays usable. The caller must free the returned handle with lancedb_table_free(). If error_message is provided and an error occurs, the caller must free the error message with lancedb_free_string().
- Parameters:
table – - pointer to LanceDBTable; the handle keeps its own branch
name – - null-terminated C string containing the branch name
options – - optional version selection for the checkout
table_out – - pointer to receive the new branch table handle
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
Error code indicating success or failure
-
LanceDBError lancedb_table_list_branches(const LanceDBTable *table, const LanceDBBranch **branches_out, size_t *count_out, char **error_message)
List the branches of the table.
On success, branches_out points to a read-only array of LanceDBBranch structs sorted by name and count_out receives its length. An empty result sets branches_out to NULL and count_out to zero. The array, its strings, and its metadata arrays are owned by the library and must not be modified or freed individually. Free the whole result with lancedb_free_branches() using the returned count. If error_message is provided and an error occurs, the caller must free the error message with lancedb_free_string().
- Parameters:
table – - pointer to LanceDBTable
branches_out – - pointer to receive the read-only array of LanceDBBranch structs
count_out – - pointer to receive the number of branches
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
Error code indicating success or failure
-
void lancedb_free_branches(const LanceDBBranch *branches, size_t count)
Free branch metadata returned by lancedb_table_list_branches.
The library owns the array, every string and every metadata array. Callers must not modify entries or free them individually, and must pass the count returned with the array. Safe to call with a NULL pointer.
- Parameters:
branches – - array of LanceDBBranch structs returned by lancedb_table_list_branches
count – - number of entries, exactly as returned by lancedb_table_list_branches
-
LanceDBError lancedb_table_delete_branch(const LanceDBTable *table, const char *name, char **error_message)
Delete a branch from the table.
Existing handles are not modified by the deletion. If error_message is provided and an error occurs, the caller must free the error message with lancedb_free_string().
- Parameters:
table – - pointer to LanceDBTable
name – - null-terminated C string containing the branch name
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
Error code indicating success or failure
-
LanceDBError lancedb_table_diff_branch(const LanceDBTable *table, const char *from_branch, LanceDBBranchDiff **diff_out, char **error_message)
Diff a branch against main on a remote table.
The SDK decides whether the table supports branch diffs. Native (embedded) tables return LANCEDB_NOT_SUPPORTED with the SDK’s message unchanged.
On entry, *diff_out and the error message are cleared. The result is published only on success, so a failure leaves *diff_out NULL. The result owns every string and nested array in SDK response order; free the whole result once with lancedb_free_branch_diff(). Do not free nested pointers individually. If error_message is provided and an error occurs, the caller must free the error message with lancedb_free_string().
- Parameters:
table – - pointer to LanceDBTable
from_branch – - null-terminated C string containing the branch to compare
diff_out – - pointer to receive the branch diff
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
Error code indicating success or failure
-
LanceDBError lancedb_table_cherry_pick(const LanceDBTable *table, const char *from_branch, int dry_run, LanceDBCherryPickResult **result_out, char **error_message)
Cherry-pick a branch onto main, or preview it with a dry run.
The SDK decides whether the table supports cherry-picking. Native (embedded) tables return LANCEDB_NOT_SUPPORTED with the SDK’s message unchanged.
An HTTP 409 that the SDK decodes as a failed cherry-pick result returns LANCEDB_SUCCESS with LANCEDB_CHERRY_PICK_STATUS_FAILED in the result. Converting a response to C can also fail, for example if an SDK string contains an embedded NUL. For a non-dry run, the server may already have applied the change when an error is returned. Check the table state before retrying.
On entry, *result_out and the error message are cleared. The result is published only on success, so a failure leaves *result_out NULL. The result owns every string and nested array; free the whole result once with lancedb_free_cherry_pick_result(). Do not free nested pointers individually or pass its embedded diff to lancedb_free_branch_diff(). If error_message is provided and an error occurs, the caller must free the error message with lancedb_free_string().
- Parameters:
table – - pointer to LanceDBTable
from_branch – - null-terminated C string containing the branch to cherry-pick
dry_run – - non-zero to request a preview without applying the cherry-pick
result_out – - pointer to receive the cherry-pick result
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
Error code indicating success or failure
-
void lancedb_free_branch_diff(LanceDBBranchDiff *diff)
Free a branch diff returned by lancedb_table_diff_branch.
The call frees every string and nested array owned by the result. The pointer and all data reachable from it must not be used afterwards. Do not free nested pointers individually or pass an embedded LanceDBCherryPickResult.diff address to this function.
- Parameters:
diff – - pointer returned by lancedb_table_diff_branch (NULL is a no-op)
-
void lancedb_free_cherry_pick_result(LanceDBCherryPickResult *result)
Free a cherry-pick result returned by lancedb_table_cherry_pick.
The call frees every string and nested array owned by the result. The pointer and all data reachable from it must not be used afterwards. Do not free nested pointers individually or pass the embedded diff to lancedb_free_branch_diff().
- Parameters:
result – - pointer returned by lancedb_table_cherry_pick (NULL is a no-op)
-
LanceDBError lancedb_table_delta(const LanceDBTable *table, const LanceDBDeltaRef *begin, const LanceDBDeltaRef *end, LanceDBTableDelta **delta_out, char **error_message)
Create a delta between two endpoints on the table’s current branch.
Both endpoints are resolved when the delta is created, so later tag moves, checkouts or table commits do not change it. Endpoints may be versions or tags; tags are resolved on the current branch. A nonempty range with reversed endpoints, an unknown version or tag, or a tag from another branch fails with LANCEDB_INVALID_INPUT. Deltas are only supported on embedded (native) tables; a remote table fails with LANCEDB_NOT_SUPPORTED.
On entry, *delta_out and the error message are cleared. Free the returned handle with lancedb_table_delta_free(). If error_message is provided and an error occurs, the caller must free the error message with lancedb_free_string().
- Parameters:
table – - pointer to LanceDBTable
begin – - required exclusive starting endpoint
end – - optional inclusive ending endpoint; NULL uses the table’s currently visible snapshot
delta_out – - pointer to receive the delta handle
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
Error code indicating success or failure
-
LanceDBError lancedb_table_current_branch(const LanceDBTable *table, char **branch_out, char **error_message)
Get the branch a table handle is scoped to.
On success, branch_out is NULL when the handle is on main, or points to an allocated null-terminated branch name. The caller must free a non-NULL name with lancedb_free_string(). On failure, branch_out is set to NULL. If error_message is provided and an error occurs, the caller must free the error message with lancedb_free_string().
- Parameters:
table – - pointer to LanceDBTable
branch_out – - pointer to receive the branch name
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
Error code indicating success or failure
-
uint64_t lancedb_table_delta_begin_version(const LanceDBTableDelta *delta)
Get the resolved begin version of a delta.
A persisted version is never 0, so 0 is a safe failure sentinel.
- Parameters:
delta – - pointer to LanceDBTableDelta (NULL returns 0)
- Returns:
The delta’s exclusive begin version, or 0 for a NULL handle
-
uint64_t lancedb_table_delta_end_version(const LanceDBTableDelta *delta)
Get the resolved end version of a delta.
A persisted version is never 0, so 0 is a safe failure sentinel.
- Parameters:
delta – - pointer to LanceDBTableDelta (NULL returns 0)
- Returns:
The delta’s inclusive end version, or 0 for a NULL handle
-
LanceDBError lancedb_table_delta_inserted_rows(const LanceDBTableDelta *delta, LanceDBQueryResult **result_out, char **error_message)
Stream rows inserted between the delta endpoints.
Row-level readers require stable row ids at both endpoints. Without them the SDK rejects the reader with LANCEDB_INVALID_INPUT when this function is called; creating the delta still succeeds. A range containing a Restore or missing transaction history is rejected the same way. Each batch carries the table columns plus _rowid, _row_created_at_version and _row_last_updated_at_version, read as of the end version.
On entry, *result_out and the error message are cleared. The returned result is one owning handle, independent of the delta and the source table. Dispose of it exactly once: call lancedb_query_result_free() without consuming it, or pass it to exactly one conversion. lancedb_query_result_to_ipc_file() consumes a non-NULL result on success or failure. lancedb_query_result_to_arrow() consumes the result when all required out-pointers are non-NULL, on success or failure; with a NULL required out-pointer it returns LANCEDB_INVALID_ARGUMENT and leaves the result with the caller. Do not free a result after a conversion consumed it. The conversion docs name the frees for returned arrays/schema and IPC bytes.
Equal endpoints return a successful empty stream that keeps this reader’s schema without requiring stable row ids. Use lancedb_query_result_to_ipc_file() to read that schema; the Arrow C Data conversion reports an empty result as NULL arrays, NULL schema and a zero count.
- Parameters:
delta – - pointer to LanceDBTableDelta
result_out – - pointer to receive the streaming result
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
LANCEDB_SUCCESS with *result_out set, otherwise the SDK error code
-
LanceDBError lancedb_table_delta_updated_rows(const LanceDBTableDelta *delta, LanceDBQueryResult **result_out, char **error_message)
Stream rows updated between the delta endpoints.
Newly inserted rows are excluded; use lancedb_table_delta_upserted_rows() for inserted and updated rows together. The stable-row-id and restore requirements are the same as for lancedb_table_delta_inserted_rows(). Each batch carries the table columns plus _rowid, _row_created_at_version and _row_last_updated_at_version, read as of the end version.
On entry, *result_out and the error message are cleared. The returned result is one owning handle, independent of the delta and the source table. Dispose of it exactly once: call lancedb_query_result_free() without consuming it, or pass it to exactly one conversion. lancedb_query_result_to_ipc_file() consumes a non-NULL result on success or failure. lancedb_query_result_to_arrow() consumes the result when all required out-pointers are non-NULL, on success or failure; with a NULL required out-pointer it returns LANCEDB_INVALID_ARGUMENT and leaves the result with the caller. Do not free a result after a conversion consumed it. The conversion docs name the frees for returned arrays/schema and IPC bytes.
Equal endpoints return a successful empty stream that keeps this reader’s schema without requiring stable row ids. Use lancedb_query_result_to_ipc_file() to read that schema; the Arrow C Data conversion reports an empty result as NULL arrays, NULL schema and a zero count.
- Parameters:
delta – - pointer to LanceDBTableDelta
result_out – - pointer to receive the streaming result
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
LANCEDB_SUCCESS with *result_out set, otherwise the SDK error code
-
LanceDBError lancedb_table_delta_upserted_rows(const LanceDBTableDelta *delta, LanceDBQueryResult **result_out, char **error_message)
Stream inserted and updated rows between the delta endpoints.
The stable-row-id and restore requirements are the same as for lancedb_table_delta_inserted_rows(). Each batch carries the table columns plus _rowid, _row_created_at_version and _row_last_updated_at_version, read as of the end version.
On entry, *result_out and the error message are cleared. The returned result is one owning handle, independent of the delta and the source table. Dispose of it exactly once: call lancedb_query_result_free() without consuming it, or pass it to exactly one conversion. lancedb_query_result_to_ipc_file() consumes a non-NULL result on success or failure. lancedb_query_result_to_arrow() consumes the result when all required out-pointers are non-NULL, on success or failure; with a NULL required out-pointer it returns LANCEDB_INVALID_ARGUMENT and leaves the result with the caller. Do not free a result after a conversion consumed it. The conversion docs name the frees for returned arrays/schema and IPC bytes.
Equal endpoints return a successful empty stream that keeps this reader’s schema without requiring stable row ids. Use lancedb_query_result_to_ipc_file() to read that schema; the Arrow C Data conversion reports an empty result as NULL arrays, NULL schema and a zero count.
- Parameters:
delta – - pointer to LanceDBTableDelta
result_out – - pointer to receive the streaming result
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
LANCEDB_SUCCESS with *result_out set, otherwise the SDK error code
-
LanceDBError lancedb_table_delta_deleted_row_ids(const LanceDBTableDelta *delta, LanceDBQueryResult **result_out, char **error_message)
Stream the ids of rows deleted between the delta endpoints.
The stable-row-id and restore requirements are the same as for lancedb_table_delta_inserted_rows(). Each batch carries one _rowid column of type UInt64; deleted rows are not reconstructed from earlier versions.
On entry, *result_out and the error message are cleared. The returned result is one owning handle, independent of the delta and the source table. Dispose of it exactly once: call lancedb_query_result_free() without consuming it, or pass it to exactly one conversion. lancedb_query_result_to_ipc_file() consumes a non-NULL result on success or failure. lancedb_query_result_to_arrow() consumes the result when all required out-pointers are non-NULL, on success or failure; with a NULL required out-pointer it returns LANCEDB_INVALID_ARGUMENT and leaves the result with the caller. Do not free a result after a conversion consumed it. The conversion docs name the frees for returned arrays/schema and IPC bytes.
Equal endpoints return a successful empty stream that keeps this reader’s schema without requiring stable row ids. Use lancedb_query_result_to_ipc_file() to read that schema; the Arrow C Data conversion reports an empty result as NULL arrays, NULL schema and a zero count.
- Parameters:
delta – - pointer to LanceDBTableDelta
result_out – - pointer to receive the streaming result
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
LANCEDB_SUCCESS with *result_out set, otherwise the SDK error code
-
void lancedb_table_delta_free(LanceDBTableDelta *delta)
Free a TableDelta.
Results already returned by a reader stay valid after the delta is freed.
- Parameters:
delta – - pointer to LanceDBTableDelta (NULL is a no-op)
-
LanceDBError lancedb_table_get_metadata(const LanceDBTable *table, const char *const *filter_keys, size_t filter_count, char ***keys_out, char ***values_out, size_t *count_out, char **error_message)
Get table metadata as key-value pairs.
This reads the dataset directly and is available only on embedded (Lance-backed) tables. On a remote table it returns LANCEDB_NOT_SUPPORTED; use lancedb_table_update_field_metadata for field metadata that goes through the SDK on both backends. To return all metadata, please set filter_keys to NULL and filter_count to zero. Any other combination of NULL and zero is considered an error. Otherwise, only metadata matching the specified keys is returned. Keys in filter_keys that do not exist in the metadata are silently skipped. On success, keys_out and values_out will point to parallel arrays of strings. The caller must free the returned arrays using lancedb_free_metadata(). If error_message is provided and an error occurs, the caller must free the error message with lancedb_free_string().
- Parameters:
table – - pointer to LanceDBTable
filter_keys – - optional array of key strings to filter by (NULL to get all metadata)
filter_count – - number of keys in filter_keys (0 to get all metadata)
keys_out – - pointer to receive array of metadata key strings
values_out – - pointer to receive array of metadata value strings
count_out – - pointer to receive number of metadata entries
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
Error code indicating success or failure
-
LanceDBError lancedb_table_set_metadata(const LanceDBTable *table, const char *const *keys, const char *const *values, size_t count, char **error_message)
Set (upsert) table metadata key-value pairs.
Existing keys will be updated with new values. New keys will be added. This writes the dataset directly and is available only on embedded (Lance-backed) tables. On a remote table it returns LANCEDB_NOT_SUPPORTED; use lancedb_table_update_field_metadata for field metadata that goes through the SDK on both backends. If error_message is provided and an error occurs, the caller must free the error message with lancedb_free_string().
- Parameters:
table – - pointer to LanceDBTable
keys – - array of null-terminated key strings
values – - array of null-terminated value strings
count – - number of key-value pairs
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
Error code indicating success or failure
-
LanceDBError lancedb_table_delete_metadata(const LanceDBTable *table, const char *const *keys, size_t count, char **error_message)
Delete table metadata keys.
Keys that do not exist are silently ignored. This writes the dataset directly and is available only on embedded (Lance-backed) tables. On a remote table it returns LANCEDB_NOT_SUPPORTED; use lancedb_table_update_field_metadata for field metadata that goes through the SDK on both backends. If error_message is provided and an error occurs, the caller must free the error message with lancedb_free_string().
- Parameters:
table – - pointer to LanceDBTable
keys – - array of null-terminated key strings to delete
count – - number of keys to delete
error_message – - optional pointer to receive detailed error message (NULL to ignore)
- Returns:
Error code indicating success or failure
-
void lancedb_free_versions(LanceDBVersion *versions, size_t count)
Free versions array returned by lancedb_table_list_versions.
- Parameters:
versions – - array of LanceDBVersion structs returned by lancedb_table_list_versions
count – - number of versions in the array
-
void lancedb_free_version_metadata(LanceDBVersionMetadata *metadata, size_t count)
Free version metadata array returned by lancedb_table_list_versions.
Safe to call with NULL pointer.
- Parameters:
metadata – - array of LanceDBVersionMetadata structs returned by lancedb_table_list_versions
count – - number of entries in the array
-
void lancedb_free_tags(const LanceDBTag *tags, size_t count)
Free tag array returned by lancedb_table_list_tags.
The library owns the array and every string in it. Callers must not modify entries or free them individually, and must pass the count returned with the array. Safe to call with NULL pointer.
- Parameters:
tags – - read-only array of LanceDBTag structs returned by lancedb_table_list_tags
count – - number of entries, exactly as returned by lancedb_table_list_tags
-
void lancedb_free_metadata(char **keys, char **values, size_t count)
Free metadata arrays returned by lancedb_table_get_metadata.
Safe to call with NULL pointers.
- Parameters:
keys – - array of key strings returned by lancedb_table_get_metadata
values – - array of value strings returned by lancedb_table_get_metadata
count – - number of entries in the arrays
-
void lancedb_free_string(char *str)
Free string returned by LanceDB functions.
- Parameters:
str – - string pointer returned by LanceDB functions
-
LanceDBError lancedb_table_list_versions(const LanceDBTable *table, LanceDBVersion **versions_out, LanceDBVersionMetadata **metadata_out, size_t *count_out, char **error_message)