How to rename table name in RethinkDb

Viewed 39

how to rename table name in rethinkdb for example r.db("rethinkdb").table("data").get("emp100") I want to change emp100 to emp200. how to change that name in rethindb?

1 Answers

You have to make the change in the db_config table:

r.db('rethinkdb')   
 .table('db_config')   
 .filter({ name: 'emp100' })   
 .update({ name: 'emp200'})
Related