feat: connect to a data table with every role of the job's viewer

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-10-12 20:39:46 +02:00
co-authored by Claude Opus 5.5
parent 9fa9b77926
commit 87c87facd2
30 changed files with 462 additions and 34 deletions
@@ -696,10 +696,13 @@ def send_teams_message(conversation_id: str, text: str, success: bool = True, ca
# role: Connect as this data table role instead of the data table's default one.
# Only meaningful on a data table under roles, and only for a role you are a
# tenant of.
# as_viewer: Connect with every role of the job's viewer at once: the user of the
# app the job runs for, or whoever ran the script. The server resolves who that
# is. Cannot be combined with role.
#
# Returns:
# DataTableClient instance
def datatable(name: str = 'main', *, role: Optional[str] = None)
def datatable(name: str = 'main', *, role: Optional[str] = None, as_viewer: bool = False)
# Get a DuckLake client for DuckDB queries.
#