nicolewhite / cycli

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

Support new commands #22

Closed snow01 closed 9 years ago

snow01 commented 9 years ago

A) Support new commands -- 1) schema-constraints - shows all constraints. 2) schema-indexes - shows all indexes. 3) schema-labels - shows all labels. 4) schema-relations - shows all relationship types. 5) schema - shows all labels, relationship types, indexes, constraints. 6) refresh - refresh all schema caches - labels, relationship types, indexes, constraints cache. Useful when there is some change in schema while cycli console is open. 7) run-n - run the given cypher n times. Many a times one want to update millions of records, rather than doing in a single cypher - we can run cypher 100 times (say) each run limiting updates to 1000 (say). B) Print help in the order it is mentioned - used OrderedDict

nicolewhite commented 9 years ago

Cool!

nicolewhite commented 9 years ago

If you're eager for these functionalities in production, you can always fork cycli and put your own branch into production. I like all of these features you've added and I'll merge as soon as I get the chance to check them out locally.

snow01 commented 9 years ago

For run-n - multiline query was not picked, so fixed that. And now I am also printing run number.

snow01 commented 9 years ago

Version is still 0.2.1 after merge ?

nicolewhite commented 9 years ago

No, I just haven't done a release yet.

snow01 commented 9 years ago

okay.

nicolewhite commented 9 years ago

It's under 0.3.0 now on PyPI.

snow01 commented 9 years ago

Cool !