nicolewhite / cycli

A Command Line Interface for Neo4j's Cypher.
MIT License
272 stars 25 forks source link

Update schema and autocompleter automatically after any write queries #25

Open nicolewhite opened 9 years ago

nicolewhite commented 9 years ago

Add a function for detecting if the query is a write query. If it is, update the schema and the autocompleter.

snow01 commented 9 years ago

Let's not assume cycli console would be the only console. Queries can come from web-console, or another code. Adding logic to automatic refresh does make sense, but let's not remove the keyword.

nicolewhite commented 9 years ago

That is a good point. Okay.

snow01 commented 9 years ago

Cool !

nicolewhite commented 9 years ago

Manually calling refresh should also update the autocompleter in addition to the schema.