You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another utility the is in kv-toolbox that could be generally useful and builds on the JSON serialization schema is the ability to import and export as NDJSON (new line delimitated JSON) which is a format often used for logs and other situations where the data payload needs to be streamed.
I would propose adapting the following from kv-toolbox:
exportEntries(db, selector, options?) - Would have overloads that returned a ReadableStream<Uint8Array>, ReadableStream<string> or a Response with a body which would stream the selected records.
importEntries(db, data, options?) - Would be able to import entries from the data source which could be ReadableStream<Uint8Array>, Blob/File, ArrayBufferView, ArrayBuffer or string.
This would allow users to provide the ability to provide interfaces to "download" data stored in a KV store as well as import it. Also because it would leverage the JSON schema it would allow implementors to do additional pre or post processing or procedural generation of data which can be stored in KV.
The text was updated successfully, but these errors were encountered:
Another utility the is in kv-toolbox that could be generally useful and builds on the JSON serialization schema is the ability to import and export as NDJSON (new line delimitated JSON) which is a format often used for logs and other situations where the data payload needs to be streamed.
I would propose adapting the following from kv-toolbox:
exportEntries(db, selector, options?)
- Would have overloads that returned aReadableStream<Uint8Array>
,ReadableStream<string>
or aResponse
with a body which would stream the selected records.importEntries(db, data, options?)
- Would be able to import entries from the data source which could beReadableStream<Uint8Array>
,Blob
/File
,ArrayBufferView
,ArrayBuffer
orstring
.This would allow users to provide the ability to provide interfaces to "download" data stored in a KV store as well as import it. Also because it would leverage the JSON schema it would allow implementors to do additional pre or post processing or procedural generation of data which can be stored in KV.
The text was updated successfully, but these errors were encountered: