<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          neo4j-clientNeo4j 的命令行界面

          聯(lián)合創(chuàng)作 · 2023-09-30 23:26

          neo4j-client 是 Neo4j 的命令行 shell (CLI)。它支持與 Neo4j 服務(wù)器的安全連接,發(fā)送語句(包括多行語句)、持久命令行歷史記錄以及將結(jié)果渲染成表或 CSV。

          neo4j-client 使用 Bolt 網(wǎng)絡(luò)協(xié)議,并可在任何支持 Bolt 的服務(wù)器上工作。

          環(huán)境要求:

          neo4j-client 可在 GNU/Linux, Mac OS X 和 FreeBSD 平臺上運行,需要 neo4j 3.0.0 或更高版本。

          neo4j-client 的用法

          Example interactive usage:

          $ neo4j-client -u neo4j localhost
          The authenticity of host 'localhost:7687' could not be established.
          TLS certificate fingerprint is ded0fd2e893cd0b579f47f7798e10cb68dfa2fd3bc9b3c973157da81bab451d74f9452ba99a9c5f66dadb8a360959e5ebd8abb2d7c81230841e60531a96d268.
          Would you like to trust this host (NO/yes/once)? yes
          Password: *****
          neo4j> :help
          Enter commands or cypher statements at the prompt.
          Commands always begin with a colon (:) and conclude at the end of the line,
          for example `:help`. Statements do not begin with a colon (:), may span
          multiple lines, are terminated with a semi-colon (;) and will be sent to
          the Neo4j server for evaluation.
          Available commands:
          :quit                  Exit the shell
          :connect '<url>'       Connect to the specified URL
          :connect host [port]   Connect to the specified host (and optional port)
          :disconnect            Disconnect the client from the server
          :export                Display currently exported parameters
          :export name=val ...   Export parameters for queries
          :unexport name ...     Unexport parameters for queries
          :reset                 Reset the session with the server
          :set                   Display current option values
          :set option=value ...  Set shell options
          :unset option ...      Unset shell options
          :status                Show the client connection status
          :help                  Show usage information
          :format (table|csv)    Set the output format
          :width (<n>|auto)      Set the number of columns in the table output
          For more information, see the neo4j-client(1) manpage.
          neo4j>
          neo4j> :status
          Connected to 'neo4j://neo4j@localhost:7687'
          neo4j>
          neo4j> MATCH (n:Person) RETURN n LIMIT 3;
          +----------------------------------------------------------------------------+
          | n                                                                          |
          +----------------------------------------------------------------------------+
          | (:Person{born:1964,name:"Keanu Reeves"})                                   |
          | (:Person{born:1967,name:"Carrie-Anne Moss"})                               |
          | (:Person{born:1961,name:"Laurence Fishburne"})                             |
          +----------------------------------------------------------------------------+
          neo4j>
          neo4j> :set
           echo=off           // echo non-interactive commands before rendering results
           insecure=no        // do not attempt to establish secure connections
           format=table       // set the output format (`table` or `csv`).
           outfile=           // redirect output to a file
           username="neo4j"   // the default username for connections
           width=auto         // the width to render tables (`auto` for term width)
          neo4j>
          neo4j> :quit
          $

          Example non-interactive usage:

          $ echo "MATCH (n:Person) RETURN n.name AS name, n.born AS born LIMIT 3" | \
               neo4j-client -u neo4j -P localhost > result.csv
          Password: *****
          $
          $ cat result.csv
          "name","born"
          "Keanu Reeves",1964
          "Carrie-Anne Moss",1967
          "Laurence Fishburne",1961
          $
          瀏覽 23
          點贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  激情婷婷五月天 | 四虎三级| 黄色激情五月天 | 操逼视频一级 | 久久人妻免费视频 |