How can I save my cypher query permanently? Let me explain my problem: I save the query with the button "save" (you can seethe "star button" at the top of this image), but when I copy or move the folder of database I loose every query I saved.
如何永久保存密码查询?让我解释一下我的问题:我用“save”按钮保存查询(您可以在这个图像的顶部看到“star按钮”),但是当我复制或移动数据库的文件夹时,我将丢失所保存的每个查询。
Any suggestion?
任何建议吗?
2 个解决方案
#1
1
Cypher queries are software. They're source code. The web interface to neo4j gives you an easy way to enter them, and save them temporarily and so on. But I would recommend that you look at cypher queries you want to save as source code; don't use the web interface to try to do this.
密码查询软件。他们的源代码。对neo4j的web界面提供了一种简单的方法来输入它们,并暂时保存它们。但是我建议您查看您想要保存为源代码的cypher查询;不要使用web界面来尝试这样做。
Fortunately, if you look at your cypher queries as source code, you can use any of the thousands of tools available for source code; IDEs, version tracking (such as git) and so on. The bottom line though is that your queries are software in and of themselves, and should be tracked like software (if you intend to modify them and use them over and over through time).
幸运的是,如果将密码查询视为源代码,您可以使用源代码可用的数千种工具中的任何一种;ide,版本跟踪(如git)等等。但是,底线是您的查询本身就是软件,应该像软件一样被跟踪(如果您打算修改它们并在一段时间内不断地使用它们)。
If it's quick and dirty, save your cypher queries in myQueries.cypher
in your home user directory, and they'll always be there for you.
如果它又快又脏,请将密码查询保存在myQueries中。在你的家庭用户目录中的密码,他们将永远在那里为你。
#2
1
Actually the cypher queries are saved in your browser's local storage.
实际上,cypher查询保存在浏览器的本地存储中。
Which is tied to the URL (e.g. localhost:7474) so even if you move the storage file it shouldn't affect your stored queries.
它与URL绑定(例如localhost:7474),因此即使移动了存储文件,也不会影响存储的查询。
If you want to store your queries in the db, you can check out my server extension: cypher-rs which allows something like that.
如果您想在db中存储查询,可以查看我的服务器扩展名:cypher-rs,它允许类似的操作。
#1
1
Cypher queries are software. They're source code. The web interface to neo4j gives you an easy way to enter them, and save them temporarily and so on. But I would recommend that you look at cypher queries you want to save as source code; don't use the web interface to try to do this.
密码查询软件。他们的源代码。对neo4j的web界面提供了一种简单的方法来输入它们,并暂时保存它们。但是我建议您查看您想要保存为源代码的cypher查询;不要使用web界面来尝试这样做。
Fortunately, if you look at your cypher queries as source code, you can use any of the thousands of tools available for source code; IDEs, version tracking (such as git) and so on. The bottom line though is that your queries are software in and of themselves, and should be tracked like software (if you intend to modify them and use them over and over through time).
幸运的是,如果将密码查询视为源代码,您可以使用源代码可用的数千种工具中的任何一种;ide,版本跟踪(如git)等等。但是,底线是您的查询本身就是软件,应该像软件一样被跟踪(如果您打算修改它们并在一段时间内不断地使用它们)。
If it's quick and dirty, save your cypher queries in myQueries.cypher
in your home user directory, and they'll always be there for you.
如果它又快又脏,请将密码查询保存在myQueries中。在你的家庭用户目录中的密码,他们将永远在那里为你。
#2
1
Actually the cypher queries are saved in your browser's local storage.
实际上,cypher查询保存在浏览器的本地存储中。
Which is tied to the URL (e.g. localhost:7474) so even if you move the storage file it shouldn't affect your stored queries.
它与URL绑定(例如localhost:7474),因此即使移动了存储文件,也不会影响存储的查询。
If you want to store your queries in the db, you can check out my server extension: cypher-rs which allows something like that.
如果您想在db中存储查询,可以查看我的服务器扩展名:cypher-rs,它允许类似的操作。