RethinkDB
RethinkDB(使用ReQL 為query language)
brew update && brew install rethinkdbhttp://localhost:8080/npm install rethinkdbr = require('rethinkdb');
var connection = null;
r.connect( {host: 'localhost', port: 28015}, function(err, conn) {
if (err) throw err;
connection = conn;
console.log(conn);
})r = require('rethinkdb');
r.connect( {host: 'localhost', port: 28015}, function(err, connection) {
if (err) throw err;
r.db('test').tableCreate('authors').run(connection, function(err, result) {
if (err) throw err;
console.log(JSON.stringify(result, null, 2));
});
});取得資料
體驗rethinkDB的realtime
Last updated