azure-table-streamer
WARNING: this package makes some serious assumptions about how you use table storage, this is not general purpose
A module to read/write text records to azure table storage.
Data is appended to a given partition, RowKeys are automatically generated.
Install
npm install azure-table-streamer
Usage
Set up the module:
// you must require azurevar azure = ; var AzureTableStreamer = ;var streamer = ;
Write stream:
var writer = streamer // write a single recordwriter; // or pipeprocessstdin;
Read stream:
var reader = streamer reader; // or pipereader;
How it works
Table Storage is optimised for append writes. This module observes that, and creates row keys for you in ascending order (using a timestamp).
The table entity will have one field value
, which holds the text streamed into it.
There is no delete or update.
License
MIT