Skip to content

Commit

Permalink
USE <keyspace> statement after CREATE <keyspace>
Browse files Browse the repository at this point in the history
  • Loading branch information
pdesmarets committed Nov 23, 2018
1 parent 475d5d8 commit 2f2ca58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion forward_engineering/helpers/keyspaceHelper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { tab, retrieveContainerName, retrivePropertyFromConfig } = require('./generalHelper');

const getCreateStatement = (name, replication, durableWrites) => `CREATE KEYSPACE IF NOT EXISTS "${name}" \n${tab(replication)}\n${durableWrites};`;
const getCreateStatement = (name, replication, durableWrites) => `CREATE KEYSPACE IF NOT EXISTS "${name}" \n${tab(replication)}\n${durableWrites}; \n\nUSE "${name}";`;

const getSimpleStrategy = (factor) => `'class' : 'SimpleStrategy',\n'replication_factor' : ${factor}`;

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Cassandra",
"version": "0.1.17",
"versionDate": "2018-09-18",
"version": "0.1.18",
"versionDate": "2018-11-23",
"author": "hackolade",
"engines": {
"hackolade": "2.1.x",
Expand Down

0 comments on commit 2f2ca58

Please sign in to comment.