[mongodb] Include bufferMaxEntries as a MongoClientOption

This commit is contained in:
Mariano A. Cortesi
2017-11-13 13:20:23 -03:00
parent 938afa59cc
commit 6b6db76b81
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -5,6 +5,7 @@
// Gady Piazza <https://github.com/kikar>
// Jason Dreyzehner <https://github.com/bitjson>
// Gaurav Lahoti <https://github.com/dante-101>
// Mariano Cortesi <https://github.com/dante-101>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -146,6 +147,9 @@ export interface DbCreateOptions {
promiseLibrary?: Object;
// https://docs.mongodb.com/manual/reference/read-concern/#read-concern
readConcern?: { level?: Object };
// Sets a cap on how many operations the driver will buffer up before giving up on getting a
// working connection, default is -1 which is unlimited.
bufferMaxEntries?: number;
}
// http://mongodb.github.io/node-mongodb-native/2.2/api/Server.html
+1 -1
View File
@@ -3,7 +3,7 @@ import mongodb = require('mongodb');
var MongoClient = mongodb.MongoClient;
var format = require('util').format;
let options = {
let options: mongodb.MongoClientOptions = {
authSource : ' ',
w : 1,
wtimeout : 300,