docs: explain branch-scoped tag checkout in Python and TypeScript

This commit is contained in:
Gatefixer
2026-11-05 01:50:52 +00:00
parent 58ef9cee7b
commit 915e7422a0
3 changed files with 24 additions and 0 deletions
+15
View File
@@ -3456,6 +3456,11 @@ class Table(ABC):
version. As a consequence, calling this method will disable any read consistency
interval that was previously set.
In local mode, a tag must reference this handle's branch. A tag on another
branch raises `ValueError` without changing the handle. Use
[branches.checkout()][lancedb.table.Branches.checkout] to open a handle
scoped to that branch before checking out its tag.
This is a read-only operation that turns the table into a sort of "view"
or "detached head". Other table instances will not be affected. To make the
change permanent you can use the `[Self::restore]` method.
@@ -3884,6 +3889,11 @@ class LanceTable(Table):
Calling this method will set the table into time-travel mode. If you
wish to return to standard mode, call `checkout_latest`.
A tag must reference this handle's branch. A tag on another branch raises
`ValueError` without changing the handle. Use
[branches.checkout()][lancedb.table.Branches.checkout] to open a handle
scoped to that branch before checking out its tag.
Parameters
----------
version: int | str,
@@ -7986,6 +7996,11 @@ class AsyncTable:
version. As a consequence, calling this method will disable any read consistency
interval that was previously set.
In local mode, a tag must reference this handle's branch. A tag on another
branch raises `ValueError` without changing the handle. Use
[branches.checkout()][lancedb.table.AsyncBranches.checkout] to open a handle
scoped to that branch before checking out its tag.
This is a read-only operation that turns the table into a sort of "view"
or "detached head". Other table instances will not be affected. To make the
change permanent you can use the `[Self::restore]` method.