Today we are going to discuss that how can we use the Scala with the Cockroach DB? As we all know that Cockroach DB is a distributed SQL database built on top of a transactional and consistent key-value store and now we are going to use it with the Scala. But before starting the journey, To those who have caught the train late,😉 this is what has happened till now:
Now before starting the code please setup Cockroach DB on your local environment.
We have to follow these steps for setting up CockroachDB in your local environment.
- We can download the Cockroach DB from here and follow the instruction which mentions there.
- Now run the following commands for starting the Nodes:
# Start node 1: cockroach start --insecure --store=CockroachTest-1 --host=localhost # In a new terminal, start node 2: cockroach start --insecure --store=CockroachTest-2 --host=localhost --port=26258 --http-port=8081 --join=localhost:26257…
View original post 317 more words