blob: a9fa8fe0603ad79d51e923ec5f448fbd1425e2f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Returns a unique database name:
// db0, db1, ...
var uniqueDBName = (function() {
var i = 0;
return function() {
return 'db' + i++;
};
})();
// Returns a unique collection name:
// coll0, coll1, ...
var uniqueCollName = (function() {
var i = 0;
return function() {
return 'coll' + i++;
};
})();
|