mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 00:36:01 +00:00
mixed mongoDB export #1044
This commit is contained in:
@@ -260,14 +260,25 @@ const driver = {
|
|||||||
highWaterMark: 100,
|
highWaterMark: 100,
|
||||||
});
|
});
|
||||||
|
|
||||||
exprValue
|
const cursorStream = exprValue.stream();
|
||||||
.forEach((row) => pass.write(transformMongoData(row)))
|
|
||||||
.then(() => {
|
cursorStream.on('data', (row) => {
|
||||||
pass.end();
|
pass.write(transformMongoData(row));
|
||||||
// pass.end(() => {
|
});
|
||||||
// pass.emit('end');
|
|
||||||
// })
|
// Called once the cursor is fully read
|
||||||
});
|
cursorStream.on('end', () => {
|
||||||
|
pass.emit('end');
|
||||||
|
});
|
||||||
|
|
||||||
|
// exprValue
|
||||||
|
// .forEach((row) => pass.write(transformMongoData(row)))
|
||||||
|
// .then(() => {
|
||||||
|
// pass.end();
|
||||||
|
// // pass.end(() => {
|
||||||
|
// // pass.emit('end');
|
||||||
|
// // })
|
||||||
|
// });
|
||||||
|
|
||||||
return pass;
|
return pass;
|
||||||
// return directly stream without header row
|
// return directly stream without header row
|
||||||
|
|||||||
Reference in New Issue
Block a user