mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-28 16:02:47 +00:00
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:
co-authored by
Claude Opus 5.5
parent
9fa9b77926
commit
87c87facd2
@@ -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.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user