Databases¶
On this page
Databases¶
The driver provides various helpers on database objects for executing commands, getting collection lists, and administrative tasks.
List Collections¶
To get a list of collections or collection names for a database, use
collections
and collection_names
, respectively.
Arbitrary Comands¶
To execute any command on the database, use the command
method.
Drop Database¶
To drop a database, use the drop
method.