Skip to content

Commit ab2290e

Browse files
Mesut Can Gurlephilwebb
authored andcommitted
Improve Cassandra sample README documentation
Update the README file in `spring-boot-sample-data-cassandra` with details of how to setup the keyspace and create the tables. Closes gh-7737
1 parent 44d6c3e commit ab2290e

File tree

1 file changed

+9
-1
lines changed
  • spring-boot-samples/spring-boot-sample-data-cassandra

1 file changed

+9
-1
lines changed
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1+
= Spring Boot Sample Data Cassandra
12

3+
To run the project, need to run below `cql` commands on Cassandra.
24

3-
CREATE KEYSPACE mykeyspace WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
5+
== Keyspace Creation in Cassandra
6+
[source,indent=0]
7+
----
8+
CREATE KEYSPACE mykeyspace WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
9+
----
410

11+
== Table Creation in Cassandra
12+
Run `cql` using the link:src/test/resources/setup.cql[setup script] located in resources folder.

0 commit comments

Comments
 (0)