moonlifedb
Version:
A JSON database with a bunch of tools and typescript support.
28 lines (27 loc) • 933 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ShardCollection = void 0;
const CoreCheck_1 = require("../CoreCheck");
const lib = new CoreCheck_1.Memory();
class ShardCollection {
name;
indexing;
shardCount;
/**
* NOT SUPPORTED YET
*
* ShardCollection to create multiple tables connected in one.
* @param options
* @param name
* @param indexing used to create truth table, where for every shard is stated a key. Remember that key is still unique.
* @param shardCount means how many shards you want to have. Recomended to use "auto" parameter
*/
constructor(options) {
this.name = options.name;
options.indexing
? this.indexing = options.indexing
: this.indexing = false;
this.shardCount = options.shardCount;
}
}
exports.ShardCollection = ShardCollection;