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>

        reviseRethinkDB 的 Clojure 客戶端

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

        revise 是 RethinkDBClojure 客戶端開發(fā)包。特點(diǎn)是:異步、無鎖、高效以及易用。

        示例代碼:

        (require '[bitemyapp.revise.connection :refer [connect close]])
        (require '[bitemyapp.revise.query :as r])
        (require '[bitemyapp.revise.core :refer [run]])
        
        ;; connect returns the connection agent
        (let [local-conn  (connect) ;; defaults to localhost
              ;; pass in connection options map to specify beyond the defaults
              remote-conn (connect {:host "99.99.99.1"
                                    :port 28015
                                    :auth-key ""})
              ;; running a query against a connection returns a promise, the API
              ;; and underlying implementation are asynchronous.
              response (-> (r/db "test") (r/table-create-db "authors") (run local-conn))]
          ;; dereference the promise to block on it.
          (println @response)
          ;; We are done using the connection
          (close local-conn))
        瀏覽 18
        點(diǎn)贊
        評論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報
        評論
        圖片
        表情
        推薦
        點(diǎn)贊
        評論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報
        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>
            色色网的五月天 | 日本操逼视频免费观看 | 国产在线不卡 | 酒吧站着做爰视频 | 日本一级淫片演员 | 91久久丝袜国产露脸动漫 | 国产成人久久777777 | 国产女人18毛片水真多水真多 | 澳门成人网站 | 天天操屄网 |