Permalink
Browse files

improve README.md

  • Loading branch information...
Devon-Olivier committed Dec 26, 2012
1 parent 638c771 commit efc93742a0cd2ad627e0140bca1509195f9d9c28
Showing with 8 additions and 0 deletions.
  1. +8 −0 README.md
View
@@ -187,6 +187,8 @@ mongoLottoplusDriver.getDrawDateRange(range, function(error, draws){
draws.forEach(function(draw){
console.log(draw);
});
+ //close database c'est tres important
+ mongoLottoplusDriver.close(function(){});
});
```
#### `.getDrawNumberRange(range, drawNumberRangeCallback)`
@@ -227,6 +229,8 @@ mongoLottoplusDriver.getDrawNumberRange(range, function(error, draws){
draws.forEach(function(draw){
console.log(draw);
});
+ //close database c'est tres important
+ mongoLottoplusDriver.close(function(){});
});
```
#### `.storeDraws(draws, storeDrawsCallback)`
@@ -237,3 +241,7 @@ Store the draws in the lottoplus mongo database.
no arguments after storing `draws` in the `draws` collection of the database.
`draws` is an array of objects representing the draws.
+
+#### `.close(closeCallback)`
+
+close database connection and call `closeCallback` with no arguments

0 comments on commit efc9374

Please sign in to comment.