<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ## 數據庫 Clojure Contrib里面的jdbc庫簡化了clojure對于關系型數據庫的訪問. 它通過commit和rollback來支持事務, 支持prepared statements, 支持創建/刪除表, 插入/更新/刪除行, 以及查詢。下面的例子鏈接到一個Postgres 數據庫并且執行了一個查詢。代碼的注釋里面還提到了怎么使用jdbc來連接mysql。 ``` (use 'clojure.java.jdbc) (let [db-host "localhost" db-port 5432 ; 3306 db-name "HR"] ; The classname below must be in the classpath. (def db {:classname "org.postgresql.Driver" ; com.mysql.jdbc.Driver :subprotocol "postgresql" ; "mysql" :subname (str "//" db-host ":" db-port "/" db-name) ; Any additional map entries are passed to the driver ; as driver-specific properties. :user "mvolkmann" :password "cljfan"}) (with-connection db ; closes connection when finished (with-query-results rs ["select * from Employee"] ; closes result set when finished ; rs will be a non-lazy sequence of maps, ; one for each record in the result set. ; The keys in each map are the column names retrieved and ; their values are the column values for that result set row. (doseq [row rs] (println (row :lastname)))))) ``` `clj-record` 提供了一個類似 Ruby on Rails的ActiveRecord的數據庫訪問包. 更多關于它的信息看這里: [http://github.com/duelinmarkers/clj-record/tree/master](http://github.com/duelinmarkers/clj-record/tree/master) .
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看