Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 10.8 KB

File metadata and controls

21 lines (17 loc) · 10.8 KB

TextqlRPCPublicAppComputeFunction

ComputeFunction is a declared server-side function invocable from the app via the bridge. Exactly one of code (python, runs on the app's worker), sql (plain SQL on the app's private DB), tql (inline TQL source), or tql_path (a Context Library .tql) must be set. TQL variants are real TQL (compiled at save time) executed against a connector; sql is the app-state path (:name params bound server-side, reserved :_now / :_uuid).

Fields

Field Type Required Description
name Optional[str] ➖ N/A
description Optional[str] ➖ N/A
params List[models.TextqlRPCPublicAppComputeFunctionParam] ➖ N/A
returns OptionalNullable[str] ➖ N/A
code Optional[str] ➖ N/A
tql_path OptionalNullable[str] ➖ N/A
tql OptionalNullable[str] ➖ N/A
grant Optional[models.TextqlRPCPublicDashboardGrant] ➖ Grant is an author allowlist gating a data source or compute function. A viewer whose
effective role names intersect roles, or whose member id is listed in members, may call it.
Absent grant = org-visible (today's behavior); an empty grant object is invalid.