File Attachments
End-to-end FILE column workflow: create a table with a FILE column, upload bytes with multipart SQL, parse the returned metadata, and download the file through the same client.
Source: link/sdks/rust/examples/file-attachments/
Requires the file-uploads feature on kalam-client (included in the example’s Cargo.toml).
What it does
- Creates a temporary namespace and
documentstable with anattachment FILEcolumn - Inserts a row using
execute_with_filesandFILE("attachment") - Selects the row and parses the FILE cell with
as_bound_file(&table_id) - Downloads bytes with
download_bound_file - Verifies the payload matches and drops the namespace
Run it
Expected output (values vary per run):
Key APIs
Reuse one TableId when parsing many rows from the same table. See FILE Columns & Uploads for the full API reference.
Next
Last updated on