<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>

          ThinkyRethinkDB 的 ORM 框架

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

          Thinky 是一個(gè)輕量級(jí)的 Node.js 的 ORM 框架,用于支持 RethinkDB 分布式數(shù)據(jù)庫.

          示例代碼:

          var thinky = require('thinky')();
          
          // Create a model - the table is automatically created
          var Post = thinky.createModel("Post", {
              id: String,
              title: String,
              content: String,
              idAuthor: String
          }); 
          
          var Author = thinky.createModel("Author", {
              id: String,
              name: String
          });
          
          // Join the models
          Post.belongsTo(Author, "author", "idAuthor", "id");
          瀏覽 12
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

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

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <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>
                  操逼黄| 91爱爱| 亚洲无吗高清视频 | 亚洲成人五月天 | 日本少妇xxxx |