Skip to content

Commit 8ebdeba

Browse files
committed
Modified Readme
1 parent c91001e commit 8ebdeba

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##JugglingDB Adapter for DynamoDB version 0.1.9
1+
##JugglingDB Adapter for DynamoDB version 0.1.9-1
22
* Adapter is still in development stage. The stable release will be 0.2.0 and will offer rich functionalities along
33
with lots of tests.
44
* Always use the latest version of this adapter, preferably >= 0.1.5. The latest version has more features and lots of bug fixes. Versions
@@ -107,7 +107,7 @@ If this file is missing, the adapter will try to read host, port , IDs and key f
107107
- If tableStatus property is not specified, the adapter automatically checks table status every 1000 ms. To turn this off, specify `waitTillActive` as false.
108108

109109
#### Created Event
110-
- Unlike other adapters, dynamodb adapter creates table when schema.define is called. Since the schema.define function does not accept a callback, listen to the `created` event to check for table creation. The adapter also fires off a secondary `created-modelName` event right after `created`. `modelname` is the model's name in LOWERCASE. The secondary event can be used to resolve ambiguities as to which model was created.
110+
- Unlike other adapters, dynamodb adapter creates table when schema.define is called. Since the schema.define function does not accept a callback, listen to the `created` event to check for table creation. The adapter also fires off a secondary `created-modelName` event right after `created` where `modelname` is the model's name in LOWERCASE. The secondary event can be used to resolve ambiguities as to which model was created.
111111

112112
- Additionally, if checking for table status is enabled, the `created` event is emitted after the table status is `ACTIVE`.
113113

@@ -131,15 +131,11 @@ If this file is missing, the adapter will try to read host, port , IDs and key f
131131
```javascript
132132
// Assume there are 4 models. Check test/relations.test.js for an example.
133133
var modelCount = 0;
134-
schemaDynamo.adapter.emitter.on("created", function(err){
135-
if (err) {
136-
console.log("Error creating tables for model:", User);
137-
} else {
134+
schemaDynamo.adapter.emitter.on("created", function(){
138135
modelCount++;
139136
if (modelCount == 4) {
140137
//.......Do stuff
141138
}
142-
}
143139
});
144140
```
145141

0 commit comments

Comments
 (0)