Created
August 30, 2016 17:16
-
-
Save chuck0523/e97dbfaacf876644002f46230f5ad7be to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
r = require('rethinkdb') | |
r.connect({host: 'localhost', port: 28015}, (err, conn) => { | |
if(err) throw err | |
r.db('test').tableCraete('tv_shows').run(conn, (err, res) => { | |
if(err) throw err | |
console.log(res) | |
r.table('tv_shows').insert({name: 'Star Wars'}).run(conn, (err, res) => { | |
if(err) throw err | |
console.log(res) | |
}) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment