1. <strong id="7actg"></strong>
    2. <table id="7actg"></table>

    3. <address id="7actg"></address>
      <address id="7actg"></address>
      1. <object id="7actg"><tt id="7actg"></tt></object>

        neo4j-clientNeo4j 的命令行界面

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

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

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

        環(huán)境要求:

        neo4j-client 可在 GNU/Linux, Mac OS X 和 FreeBSD 平臺(tái)上運(yùn)行,需要 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
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        評(píng)論
        圖片
        表情
        推薦
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        1. <strong id="7actg"></strong>
        2. <table id="7actg"></table>

        3. <address id="7actg"></address>
          <address id="7actg"></address>
          1. <object id="7actg"><tt id="7actg"></tt></object>
            男女啪啪av | 国产乱婬AV片免费观看 | 日本在线观看一区 | 国产黄免费| 欧美性爱在线网站 | 欧美日韩黄色电影 | 国产操| 最近亚洲中文字幕在线 | 亚洲淫片 | 久热超国产|