Documentation Index
Fetch the complete documentation index at: https://docs.sqd.dev/llms.txt
Use this file to discover all available pages before exploring further.
S3 destination support
Overview
Writing to Amazon S3-compatible file storage services such as AWS and Filebase is supported via theS3Dest class from the @subsquid/file-store-s3 package. Use it by setting the dest field of the Database constructor argument to its instance. Constructor of S3Dest accepts the following arguments:
url: string: S3 URL in thes3://bucket/pathformat.optionsOrClient?: S3Client | S3ClientConfig: an optional S3 client or client config. By default, a simple config parameterized by environment variables is used:
Example
This saves the processor data in thetransfers-data folder of the subsquid-testing-bucket bucket at the Filebase service. The service only has one region and one endpoint, and here they are hardcoded to reduce the number of required envirionment variables and illustrate how connection parameters can be supplied programmatically. Full squid code is available in this repo.
