RethinkDB native connector work, minor fixes.

This commit is contained in:
Adam Ierymenko
2017-11-02 07:05:11 -07:00
parent a6203ed038
commit 4e88c80a22
219 changed files with 33295 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
desc: Tests manipulation operations on tables
table_variable_name: tbl
tests:
# Add some data
- cd: tbl.insert([{"a":["k1","v1"]},{"a":["k2","v2"]}])
# Coerce to an object (after map)
- js: tbl.map(r.row("a")).coerce_to("object")
rb: tbl.map{|row| row["a"]}.coerce_to("object")
py: tbl.map(r.row["a"]).coerce_to("object")
ot: {"k1":"v1","k2":"v2"}
# Coerce to an array
- cd: tbl.limit(1).type_of()
ot: "SELECTION<STREAM>"
- cd: tbl.limit(1).coerce_to('array').type_of()
ot: "ARRAY"