| //// |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| http://www.apache.org/licenses/LICENSE-2.0 |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| //// |
| :documentationPath: /workflow/actions/ |
| :language: en_US |
| :page-alternativeEditUrl: https://github.com/apache/incubator-hop/edit/master/plugins/misc/neo4j/src/main/doc/neo4j-cypherscript.adoc |
| = Neo4j Cypher Script |
| |
| == Description |
| |
| With this action you can execute Cypher statements in a workflow. |
| The goal is not to retrieve data but to execute various statements like creating or dropping indexes, calling APOC procedures, add or delete some static data and so on. |
| |
| == Important |
| |
| **To allow you to enter semi-colons (;) in commands, strings and so on we require you to separate commands with a semi-colon on a new line** |
| |
| == Configuration options |
| |
| |
| |=== |
| |Option |Description |
| |
| |Connection name |
| |The name of the connection on which you want to execute the cypher statements. |
| |
| |Script |
| |The script with cypher commands seperated by a semi-colon (;) on a new line. For examples see below. |
| |
| |Replace variables |
| |Check this option if you want to replace variables in the format `${VARIABLE_NAME}` in the script prior to execution. |
| |=== |
| |
| == Example |
| |
| [source,CREATE INDEX idx_person_name on :Person(name)] |
| ---- |
| CREATE INDEX idx_company_id on :Company(id) |
| ; |
| CREATE INDEX idx_company_id on :Company(id) |
| ; |
| ---- |
| |