I don't know about you, but I find it very annoying to have to synch my Cypher scripts manually. Is there any way to sync your favorite scripts with GitHub?
There are a few related features that we're looking at in this area:
- Mounting file system folders as projects, which would let you add a GitHub repository as a Desktop Project
- Save Browser queries as files (today they're just kept in localStorage)
There are some open questions:
A. Save queries individually, or as a collection?
B. Maintain the shallow folders, or allow nested searching for *.cypher within a project?
What do you mean with question A. save queries individually or as a collection?
I like that there's development addressing functionality around saving queries and allowing for source control to be utilized.
For a) there has been some discussion about having a single file which contains many separate cypher scripts. Except when used for data loading, individual cypher scripts tend to be short. So the thinking was that we could just have one file which lists many small scripts. That already exists in the form of a multi-statement script, where each query is separated by a
I prefer individual files. But the discussion has come up so I was looking for more perspectives.
Oh definitely individual files per cypher script. One large file that is delimited would be mess, especially when it comes to version control or if a colleague wanted just one script and you wanted to share with them, they're not going to want your whole collection.