From 446f420774ce11946161bb2553720c5018a3ea4b Mon Sep 17 00:00:00 2001 From: Louis Chatriot Date: Mon, 21 Dec 2015 11:02:12 +0100 Subject: [PATCH] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index de4ba77..7168cab 100755 --- a/README.md +++ b/README.md @@ -60,6 +60,8 @@ This function fetches the data from datafile and prepares the database. **Don't persistent datastore, no command (insert, find, update, remove) will be executed before `loadDatabase` is called, so make sure to call it yourself or use the `autoload` option. +Also, if `loadDatabase` fails, all commands registered to the executor afterwards will not be executed. They will be registered and executed, in sequence, only after a successful `loadDatabase`. + ```javascript // Type 1: In-memory only datastore (no need to load the database) var Datastore = require('nedb')