This is a little update for people who follow news about Reduct Storage and its ecosystem.
Few days ago, we released Reduct Client SDK for JavaScript v0.6.0. It supports Reduct Storage HTTP API v0.7. Now you can iterate data for a time interval without asking a long list of timestamps:
for await (const record in bucket.query("entry-1", start_time, stop_time)) {
consol.log(record.ts, record.size);
const content = await record.read();
// or use pipe
const fileStream = fs.createWriteStream(`ts_${record.size}.txt`);
record.pipe(fileStream);
}
Read more about it here.
You can install the new version with npm:
npm i reduct-js
And try it with our demo server - https://play.reduct-storage.dev (API token is reduct
).
Top comments (0)