Quantcast
Channel: Gary Sieling » Uncategorized
Viewing all articles
Browse latest Browse all 12

RethinkDB cursor to array in python

$
0
0

The following code will retrieve query results as an array:

r.connect("localhost", 28015).repl()
db = r.db("search")
table = db.table("industries")
cursor = table.filter(lambda x: x['search_query'] == value)
rows = [x for x in cursor]

The post RethinkDB cursor to array in python appeared first on Gary Sieling.


Viewing all articles
Browse latest Browse all 12

Latest Images

Trending Articles





Latest Images