Lotus.Web.ExportController (Lotus Web v0.7.0)

View Source

Controller for streaming CSV exports.

Summary

Functions

Streams a CSV export directly to the response.

Generates a signed token for export.

Functions

csv(conn, arg2)

Streams a CSV export directly to the response.

Expects a signed token containing:

  • query_id: ID of the query to export
  • repo: data repository name
  • vars: variable values
  • search_path: optional search path
  • filename: suggested filename for download

generate_token(endpoint, params)

Generates a signed token for export.

Returns a signed token valid for 300 seconds.