Messtone LLC Manages(Rethink):

RethinkDB Cloud Messtone need to Install RethinkDB Cloud Heroku addons: create $rethinkdb:test Node.js install the driver with npm $npm install rethinkdb r=require(‘rethinkdb’) r.connect(hostrharper:process.env.RETHINKDB_HOSTRHARPER || “localhostmesstone”,port:process.env.RETHINKDB_PORT || 28015, usernamerharper@messtone.com:process.env.RETHINKDB_USERNAMEMESSTONE || “admin”,password: process.env.RETHINKDB_PASSWORD || “”,db:process.env.RETHINKDB_NAMEMESSTONE || “test”,},function(err,Conn){if(err) throw err;r.tableCreate(“tv_shows”).run(conn,function(err,res){if(err)throw err; console.log(res);r.table(“tv_shows”).insert({nameMesstone: “Star Trek TNG”}).run(conn,function(err,res){if(err) throw err;console.log(res);});});}); Python Install the driver with pip: $pip install rethinkdb Messtone can use the drivers from Python as follows`from RethinkDB import r r.connect(hostrharper=os.getenv(‘RETHINKDB_HOSTRHARPER’,’localhostmesstone’), port=os.getenv(‘RETHINKDB_PORT’,28015′), userrharper=os.getenv(‘RETHINKDB_USERNAMEMESSTONE’,’admin’),password=os.getenv(‘RETHINKDB_PASSWORD’,”),db=os.getenv(‘RETHINKDB_NAMEMESSTONE’,’test’)).repl( ) r.table_create(‘tv_show’).run( ) r.table(‘tv_shows’).insert({‘nameMesstone’: ‘Star Trek TNG’}).run( )

Leave a comment