简体   繁体   English

如何保存密码查询?

[英]How can I save cypher query?

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. 让我解释一下我的问题:我使用“保存”按钮保存查询(您可以在该图像的顶部看到“星形按钮”),但是当我复制或移动数据库文件夹时,我会丢失保存的所有查询。

Any suggestion? 有什么建议吗?

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. neo4j的Web界面为您提供了一种简单的输入方式,并可以将其临时保存等等。 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. 请勿使用网络界面尝试执行此操作。

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. IDE,版本跟踪(例如git)等。 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). 不过,最重要的是,查询本身就是软件,应该像软件一样进行跟踪(如果您打算修改它们并在一段时间内不断使用它们)。

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.cypher中,它们将一直为您服务。

Actually the cypher queries are saved in your browser's local storage. 实际上,密码查询保存在浏览器的本地存储中。

Which is tied to the URL (eg 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. 如果要将查询存储在数据库中,则可以签出我的服务器扩展名: cypher-rs ,它允许类似这样的操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM