I'm trying to run this script using Cassandra driver in Node.js:
CREATE KEYSPACE IF NOT EXISTS "user"
WITH REPLICATION = {
'class': 'SimpleStrategy',
'replication_factor': 1
}
AND DURABLE_WRITES = false;
USE "user";
CREATE TYPE IF NOT EXISTS "user"."customType"(
"name" text,
"isGood" boolean,
);
But it returns me next error:
[USE]...)rror: line 8:0 mismatched input 'USE' expecting EOF (...AND DURABLE_WRITES = false;
I assume that problem is in different queries. But is it? And what's the solution?
UPDATE
Batch queries don't work. Get this Invalid statement in batch: only UPDATE, INSERT and DELETE statements are allowed