Created
September 30, 2016 14:03
-
-
Save edinsoncs/a3a5f0544dc8d41076ea6f8d97d198ba 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
var r = require('rethinkdb'); | |
r.connect({ host: 'localhost', port: 28015 }, function(err, conn) { | |
if (err) { | |
return err; | |
} else { | |
r.db('usuarios').table('paises') | |
.insert({ | |
'name': 'Edinson', | |
'skills': 'Developer Frontend and Backend', | |
'Hobby': 'Listen to music', | |
'live': 'Argentina', | |
'from': 'Peruvian', | |
'job': 'Programmer' | |
}).run(conn, function(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