DbClient
create
Inserts the given
bundle
object into the Supabase table. Throws an error if the operation fails.
readAll
Retrieves all records from the table and returns them as an array of
Bundle
. Throws an error on failure.
find
Finds the first
Bundle
that matches the given conditions. Returnsnull
if no match is found. Other errors are thrown as is.
findAll
Finds multiple
Bundle
records matching the given conditions, optionally applying sorting based on the provided fields and directions.
update
Updates the existing record whose
bundleId
matches the givenbundle
.
delete
Deletes the record from Supabase that matches the given
bundleId
.
toUint8Array
Retrieves all
bundle
records, serializes them to JSON, and encodes them as aUint8Array
.