Platforms to show: All Mac Windows Linux Cross-Platform
MongoClientMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | MongoDB | MBS MongoDB Plugin | 22.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
This is a class that provides access to a MongoDB server, replica set, or sharded cluster. It maintains management of underlying sockets and routing to individual nodes
The connection is NOT thread-safe and should only be used from one thread at a time.
- event LogMessage(Level as Integer, Domain as String, Message as String)
- 6 properties
- property Handle as Integer
- property MaxBSONSize as Integer
- property MaxMessageSize as Integer
- property Parent as Variant
- property Session as MongoSessionMBS
- property URI as MongoURIMBS
- shared property LibraryVersion as String
- 10 methods
- method Collection(DatabaseName as String, CollectionName as String) as MongoCollectionMBS
- method Constructor(URI as MongoURIMBS)
- method Database(Name as String) as MongoDatabaseMBS
- method DatabasesNames(OptionsJSON as String = "") as String()
- method DefaultDatabase as MongoDatabaseMBS
- method FindDatabases(OptionsJSON as String = "") as MongoCursorMBS
- method NewCursorFromCommandReply(commandReplyJSON as String, OptionsJSON as String = "") as MongoCursorMBS
- method ServerDescription(ServerID as UInt32) as MongoServerDescriptionMBS
- method ServerDescriptions as MongoServerDescriptionMBS()
- method Watch(pipelineJSON as String, OptionsJSON as String = "") as MongoChangeStreamMBS
- 5 shared methods
- shared method DataToBinary(Data as MemoryBlock) as String New in 23.2
- shared method DataToBinary(Data as String) as String New in 23.2
- shared method LogMessage(Message as String)
- shared method NowUTC as String New in 23.2
- shared method Time(SecondsSince1970 as Double) as String New in 23.2
- 7 constants
Log Levels
Constant | Value | Description |
---|---|---|
LogLevelCritical | 1 |
Critical |
LogLevelDebug | 5 |
Debug |
LogLevelError | 0 |
Error |
LogLevelInfo | 4 |
Info |
LogLevelMessage | 3 |
Message |
LogLevelTrace | 6 |
Trace |
LogLevelWarning | 2 |
Warning |
This class has no sub classes.
Some methods using this class:
- MongoSessionMBS.Constructor(client as MongoClientMBS)
Some properties using for this class:
- MongoDatabaseMBS.Client as MongoClientMBS
Some examples using this class:
Blog Entries
- News from the MBS Xojo Plugins Version 23.2
- MonkeyBread Software Releases the MBS Xojo Plugins in version 23.2
- MBS Xojo Plugins, version 23.2pr1
- News from the MBS Xojo Plugins in Version 23.0
- News from the MBS Xojo Plugins Version 22.4
- MBS Xojo Plugins, version 22.4pr1
- Insert record to MongoDB in Xojo
Xojo Developer Magazine
The items on this page are in the following plugins: MBS MongoDB Plugin.
MongoChangeStreamMBS - MongoCollectionMBS
