This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-zerotierone/ext/librethinkdbxx/test/upstream/meta/composite.py.yaml
2017-11-02 07:05:11 -07:00

15 lines
601 B
YAML

desc: Tests meta operations in composite queries
tests:
- py: r.expr([1,2,3]).for_each(r.db_create('db_' + r.row.coerce_to('string')))
ot: ({'dbs_created':3,'config_changes':arrlen(3)})
- py: |
r.db_list().set_difference(["rethinkdb", "test"]).for_each(lambda db_name:
r.expr([1,2,3]).for_each(lambda i:
r.db(db_name).table_create('tbl_' + i.coerce_to('string'))))
ot: partial({'tables_created':9})
- py: r.db_list().set_difference(["rethinkdb", "test"]).for_each(r.db_drop(r.row))
ot: partial({'dbs_dropped':3,'tables_dropped':9})