<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="neo4j-sh (?)$ create (t:Test {a:&quot;abc&amp;&amp;def&quot;}) return t;
Unknown command 'def&quot;})'
neo4j-sh (?)$ "><pre class="notranslate"><code class="notranslate">neo4j-sh (?)$ create (t:Test {a:"abc&amp;&amp;def"}) return t;
Unknown command 'def"})'
neo4j-sh (?)$ 
</code></pre></div>
<p dir="auto">This breaks imports from dumps where the data contains this pattern</p>
<p dir="auto">This issue ties together all bugs related to the shell's dump command.</p>
<h2 dir="auto">Schema support</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Constraints using indexes during import: there needs a way to wait for indexes to become available after creating them, otherwise the import takes forever.
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> The shell could be extended with a command to achieve the above, but this functionality might be better introduced in Cypher, some discussion occurred here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="34736039" data-permission-text="Title is private" data-url="https://github.com/neo4j/neo4j/issues/2491" data-hovercard-type="issue" data-hovercard-url="/neo4j/neo4j/issues/2491/hovercard?comment_id=44791266&amp;comment_type=issue_comment" href="https://github.com/neo4j/neo4j/issues/2491#issuecomment-44791266">#2491 (comment)</a>. Edit: there actually already is the <em>schema await</em> command which can be used for that purpose.</li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Currently indexes and schema creation statements aren't properly generated, they need to be separate statements. Issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="34736039" data-permission-text="Title is private" data-url="https://github.com/neo4j/neo4j/issues/2491" data-hovercard-type="issue" data-hovercard-url="/neo4j/neo4j/issues/2491/hovercard" href="https://github.com/neo4j/neo4j/issues/2491">#2491</a>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nawroth/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nawroth">@nawroth</a> raised the question whether this change will break the integrated live console in the manual here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35684692" data-permission-text="Title is private" data-url="https://github.com/neo4j/neo4j/issues/2576" data-hovercard-type="pull_request" data-hovercard-url="/neo4j/neo4j/pull/2576/hovercard?comment_id=46100875&amp;comment_type=issue_comment" href="https://github.com/neo4j/neo4j/pull/2576#issuecomment-46100875">#2576 (comment)</a> So this needs to be tested.</li>
</ul>
</li>
</ul>
<h2 dir="auto">Robustness</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Newline characters need to be properly escaped (also: tab, ...). Issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35687676" data-permission-text="Title is private" data-url="https://github.com/neo4j/neo4j/issues/2577" data-hovercard-type="issue" data-hovercard-url="/neo4j/neo4j/issues/2577/hovercard" href="https://github.com/neo4j/neo4j/issues/2577">#2577</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Strings containing <em>&amp;&amp;</em> confuse the shell. There might be more problems if the shell attempts to parse something inside a string. Issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35724768" data-permission-text="Title is private" data-url="https://github.com/neo4j/neo4j/issues/2579" data-hovercard-type="issue" data-hovercard-url="/neo4j/neo4j/issues/2579/hovercard" href="https://github.com/neo4j/neo4j/issues/2579">#2579</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Byte arrays are exported as int arrays. Does Cypher support byte arrays? Should it? Issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="34736039" data-permission-text="Title is private" data-url="https://github.com/neo4j/neo4j/issues/2491" data-hovercard-type="issue" data-hovercard-url="/neo4j/neo4j/issues/2491/hovercard" href="https://github.com/neo4j/neo4j/issues/2491">#2491</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Maybe (no personal experience with large data sets): scaling to allow inserting more data than fitting a single transaction. This depends on what the goal of the <em>dump</em> command is, whether it shall be usable the same way SQL people dump DBs to SQL scripts to load them into another DB or whether dump is designed for smaller data sets (this should also be documented, so people will know what to expect from the command).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Cosmetics: there shouldn't be a BEGIN/COMMIT pair for schema creation if no schema is created</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Order of dumped statements (esp. index/constrains), discussion: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="68768895" data-permission-text="Title is private" data-url="https://github.com/neo4j/neo4j/issues/4437" data-hovercard-type="pull_request" data-hovercard-url="/neo4j/neo4j/pull/4437/hovercard" href="https://github.com/neo4j/neo4j/pull/4437">#4437</a></li>
</ul>