Platforms to show: All Mac Windows Linux Cross-Platform
MongoDatabaseMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | MongoDB | MBS MongoDB Plugin | 22.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This class provides access to a MongoDB database. This handle is useful for actions a particular database object. It is not a container for collection objects.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 3 properties
- property Client as MongoClientMBS
- property Handle as Integer
- property Name as String
- 10 methods
- method Aggregate(pipelineJSON as String, OptionsJSON as String = "") as MongoCursorMBS
- method Collection(Name as String) as MongoCollectionMBS
- method CollectionNames(OptionsJSON as String = "") as String()
- method Command(commandJSON as String, OptionsJSON as String = "") as String
- method Constructor Private
- method Copy as MongoDatabaseMBS
- method CreateCollection(Name as String, OptionsJSON as String = "") as MongoCollectionMBS
- method FindCollections(OptionsJSON as String = "") as MongoCursorMBS
- method HasCollection(Name as String) as Boolean
- method Watch(pipelineJSON as String, OptionsJSON as String = "") as MongoChangeStreamMBS
This class has no sub classes.
Some methods using this class:
- MongoClientMBS.Database(Name as String) as MongoDatabaseMBS
- MongoClientMBS.DefaultDatabase as MongoDatabaseMBS
Some examples using this class:
Blog Entries
- Watch MongoDB Database changes in Xojo
- MBS Xojo Plugins, version 23.1pr2
- News from the MBS Xojo Plugins in Version 23.0
- Insert record to MongoDB in Xojo
Release notes
- Version 23.1
- Added Aggregate method to MongoDatabaseMBS class.
The items on this page are in the following plugins: MBS MongoDB Plugin.
MongoCursorMBS - MongoExceptionMBS