Class: Moped::Database
- Inherits:
-
Object
- Object
- Moped::Database
- Defined in:
- lib/patches/db_commands.rb
Instance Method Summary collapse
Instance Method Details
#collection_names ⇒ Object
12 13 14 15 16 17 |
# File 'lib/patches/db_commands.rb', line 12 def collection_names namespaces = command(listCollections: 1, filter: { name: { "$not" => /system\.|\$/ } }) namespaces["cursor"]["firstBatch"].map do |doc| doc["name"] end end |