From 2f2ca582efd29ba9f194950b24e44af819cee319 Mon Sep 17 00:00:00 2001 From: Pascal Desmarets Date: Fri, 23 Nov 2018 22:44:25 +0100 Subject: [PATCH] USE statement after CREATE --- forward_engineering/helpers/keyspaceHelper.js | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/forward_engineering/helpers/keyspaceHelper.js b/forward_engineering/helpers/keyspaceHelper.js index 58c04a50..86203d47 100644 --- a/forward_engineering/helpers/keyspaceHelper.js +++ b/forward_engineering/helpers/keyspaceHelper.js @@ -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}`; diff --git a/package.json b/package.json index f1027df9..cd33a1bc 100644 --- a/package.json +++ b/package.json @@ -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",