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
(Split from #18)
Using the prepared statements, as queries are binary, it would be possible to use streams as input parameters for blobs.
Use cases
Store streams coming from network or large files.
Sample
varfs=require('fs');//a file stream, it could be any readable streamvarfileStream=fs.createReadStream(filePath);varquery='INSERT INTO table1 (id, big_blob) VALUES (?, ?)';//pass the stream as an argumentclient.executeAsPrepared(query,[1,fileStream],function(err){//...});
The text was updated successfully, but these errors were encountered:
(Split from #18)
Using the prepared statements, as queries are binary, it would be possible to use streams as input parameters for blobs.
Use cases
Sample
The text was updated successfully, but these errors were encountered: