public ReplicaStatusTable(LightningPersistence lmdb, string tableName, string replicaId) { _lmdb = lmdb; _replicaId = replicaId; _table = _lmdb.OpenTable(tableName); _clockKey = new TableKey(KEY_CLOCK); _countersKey = new TableKey(KEY_COUNTERS); }
public void TestCreateTable() { using (var persistence = new LightningPersistence(_config)) { using (var table = persistence.OpenTable("testtable")) { } } Assert.Pass(); }
public KvTable(LightningPersistence lmdb, string kvTableName, string replicaId, ReplicaStatusTable statusTable, ExpiryTable expiryTable, KvMetadataTable metadataTable, WriteLogTable wlTable, Func <VectorClock> currentClock, Func <WriteTransaction, VectorClock> incrementClock, Func <Item[], Task> updateNotifier) { _lmdb = lmdb; _replicaId = replicaId; StatusTable = statusTable; _kvTable = _lmdb.OpenTable(kvTableName); _expiryTable = expiryTable; _metadataTable = metadataTable; _wlTable = wlTable; _currentClock = currentClock; _incrementClock = incrementClock; _updateNotifier = updateNotifier; }
public ReplicationTable(LightningPersistence lmdb, string tableName) { _lmdb = lmdb; // _replicaId = replicaId; _table = _lmdb.OpenTable(tableName); }
public WriteLogTable(LightningPersistence lmdb, string tableName, string replicaId) { _lmdb = lmdb; _replicaId = replicaId; _table = _lmdb.OpenTable(tableName); }
public KvMetadataTable(LightningPersistence lmdb, string tableName) { _lmdb = lmdb; _table = _lmdb.OpenTable(tableName); }
public LmdbLightClient(LightningConfig config) { _lmdb = new LightningPersistence(config); _kvTable = _lmdb.OpenTable("kv"); }