Skip to content

Commit 70b279f

Browse files
author
Christian Amor Kvalheim
committed
Updated README
1 parent 7d09055 commit 70b279f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.rdoc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,23 @@ A simple example of inserting a document.
3636
});
3737
});
3838

39+
= Important
40+
41+
The version V0.8.0 > contains a C/C++ native BSON parser, this leads to some small changes in the way you need to access the
42+
BSON classes as you need to use the right versions of the classes with the right driver.
43+
44+
For the existing javascript driver please reference BSON via
45+
46+
BSON = require('./mongodb').BSONPure
47+
48+
or when using the native bson parser use
49+
50+
BSON = require('./mongodb').BSONNative
51+
52+
To enable the driver to use the C/C++ bson parser pass it the option native_parser:true like below
53+
54+
var client = new Db('integration_tests_20', new Server("127.0.0.1", 27017, {native_parser:true}));
55+
3956
=== GitHub information
4057

4158
The source code is available at http://github.com/christkv/node-mongodb-native.

0 commit comments

Comments
 (0)