new SimpleStatement(statement.getQueryString(), "local"); assertThat(v5SizeOf(statementWithAnonymousValue)) .isEqualTo( statement.getQueryString(), ImmutableMap.<String, Object>of("key", "local")); assertThat(v5SizeOf(statementWithNamedValue)) .isEqualTo(
/** * Execute a CQL script template located in the class path and * inject provided values into the template to produce the actual script * * @param scriptTemplateLocation the location of the script template in the class path * @param values template values */ public void executeScriptTemplate(String scriptTemplateLocation, Map<String, Object> values) { final List<SimpleStatement> statements = buildStatements(loadScriptAsLines(scriptTemplateLocation, values)); for (SimpleStatement statement : statements) { if (isDMLStatement(statement)) { DML_LOGGER.debug("\tSCRIPT : {}\n", statement.getQueryString()); } else { DDL_LOGGER.debug("\tSCRIPT : {}\n", statement.getQueryString()); } session.execute(statement); } }
new SimpleStatement(statement.getQueryString(), "local"); assertThat(v5SizeOf(statementWithAnonymousValue)) .isEqualTo( statement.getQueryString(), ImmutableMap.<String, Object>of("key", "local")); assertThat(v5SizeOf(statementWithNamedValue)) .isEqualTo(