questdb / nodejs-questdb-client

QuestDB Node.js Client
35 stars 8 forks source link

chore(nodejs): failproof flush #8

Closed glasstiger closed 1 year ago

glasstiger commented 1 year ago

Adding a new option, called copyBuffer. If the option is set the client will create a new buffer for each flush() call with the data belongs to the returned promise. This prevents creating duplicate rows if await is missed when calling flush() or if the calls to flush() are not serialised.