Trillo Workbench Lessons
  • Introduction
    • Sample Application
  • Introduction to Lessons
    • IDE Lessons
    • Annotated Directory Structure
  • New classes using workbench UI
  • Save many records into tables using the workbench UI
  • New function using Workbench UI
  • Introduction to Code Lessons
    • Anatomy of Trillo Function
  • Begin Code Lessons
    • Paginated list
    • Pagination using SQL Query
    • DataIterator
    • Read file from cloud storage bucket
    • Generating signed URL for a file download
    • Import a CSV file from bucket into BigQuery
    • Query a dataset of BigQuery
    • Using an Document AI Processor
    • Chat using GenAI
    • Function calling another function
    • Accessing Runtime Context
    • Write a workflow (pipeline for data processing)
  • Appendixes
    • ServerlessFunction
    • Map, List and Tree
    • Logs and Audit Logs
    • DataRequest Class
    • DataResponse Class
    • DataIterator Class
    • Result
Powered by GitBook
On this page

Begin Code Lessons

Important Note: Trillo functions are written under default package. This is due to an initial design decision to keep functions like scripts. But we realize that this is a limitation that prevents us from organizing code in logical folders. This is being corrected and a fix will be available soon. For now, this document is based on the assumption that Trillo functions are written using the default package (i.e. no package name is specified).

Important Note 2: Any function you test using IDE can be deployed on the cloud using Trillo Workbench UI by following these steps.

  1. Create a new function using UI (as shown in a lesson above). Give it the same name as the function in the IDE.

  2. Copy code from the IDE.

  3. Paste into Trillo Workbench.

  4. Save.

  5. It is deployed in the cloud.

  6. You can test it using the API tab using parameters defined in the corresponding parameter file.

PreviousAnatomy of Trillo FunctionNextPaginated list

Last updated 1 year ago