import rethinkdb as r
con=r.connect(host='localhost')
How do I ping? How do I used existing connection to ping DB server?
import rethinkdb as r
con=r.connect(host='localhost')
How do I ping? How do I used existing connection to ping DB server?
If you want to check that the connection is still healthy and running queries, you could do something like r.expr(0).run(conn) == 0
.