add a provider for Dynamo
@@ -8,6 +8,7 @@ import com.scalar.db.api.DistributedTransactionManager;
import com.scalar.db.config.DatabaseConfig;
import com.scalar.db.storage.cassandra.Cassandra;
import com.scalar.db.storage.cosmos.Cosmos;
+import com.scalar.db.storage.dynamo.Dynamo;
import com.scalar.db.transaction.consensuscommit.ConsensusCommitManager;
public class TransactionModule extends AbstractModule {
@@ -32,4 +33,9 @@ public class TransactionModule extends AbstractModule {
Cosmos provideCosmos() {
return new Cosmos(config);
}
+
+ @Provides
+ Dynamo provideDynamo() {
+ return new Dynamo(config);
+ }
}
