Supabase.Storage.ListV2Options (supabase_storage v0.5.0)
Represents the options for cursor-based pagination when querying objects within Supabase Storage.
This module encapsulates the v2 list options that provide efficient cursor-based pagination for large datasets. Unlike offset-based pagination, cursor pagination has O(1) complexity regardless of the position in the dataset.
Experimental Feature
This is marked as experimental and corresponds to the listV2() method in the JavaScript SDK.
Summary
Types
@type t() :: %Supabase.Storage.ListV2Options{ cursor: String.t() | nil, limit: integer(), with_delimiter: boolean() }
A ListV2Options consists of the following attributes:
limit: The number of files you want to be returned. Defaults to 100.cursor: The pagination cursor from a previous response. Use this to get the next page.with_delimiter: Enable folder hierarchy grouping when set to true.
Functions
@spec parse(map()) :: {:ok, t()} | {:error, Ecto.Changeset.t()}