Reputation: 91
using below command, how will we export data from rethinkDB where author='ABC'
rethinkdb export -e dbname.posts --format csv --fields title,author
Upvotes: 1
Views: 491
Reputation: 3040
You can filter your data in a new temp table and export that table:
r.db("dbname").table("post")
.filter({"author":"ABC"})
.map(function(doc){
return r.db("dbname").table("temp").insert(doc)
})
then you export the temp table
rethinkdb dump -e dbname.temp ...
Upvotes: 0