logo
  • 教程列表
  • SO官方文檔
  • 開始使用 Node
    • 從 NPM 安裝 RethinkDB 軟體包
    • 建立與 RethinkDB 的連線
    • 列出所有資料庫
    • 建立一個新資料庫
    • 在資料庫上建立一個新表
    • 將文件插入表中
    • 從表中查詢文件
  1. StackOverflow 文件
  2. rethinkdb 教程
  3. 開始使用 Node
  4. 從表中查詢文件

從表中查詢文件

Created: November-22, 2018

r.connect({host: 'localhost', port: 28015})
.then((conn) => {
    // Can also use .get({id: 1})
    return r.db("stackoverflow").table("examples").get(1).run(conn)
}).then((result) => {
    console.log(result);
})
  • 將文件插入表中

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明