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 |
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)
- 7 properties
- property Handle as Integer
- property MaxBSONSize as Integer
- property MaxMessageSize as Integer
- property Parent as Variant
- property Session as MongoSessionMBS
- property SSLOptions as MongoSSLOptionsMBS
- property URI as MongoURIMBS
- 3 shared properties
- shared property LibraryVersion as String
- shared property SSLLibrary as String
- shared property Trace as Boolean
- 18 methods
- method Collection(DatabaseName as String, CollectionName as String) as MongoCollectionMBS
- method Command(dbName as String, commandJSON as String) as String
- method Command(dbName as String, commandJSON as String, OptionsJSON as String) as String
- method CommandQuery(dbName as String, queryJSON as String) as MongoCursorMBS
- method CommandWithServerId(dbName as String, commandJSON as String, serverId as UInt32) as String
- 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 Ping
- method ReadCommand(dbName as String, commandJSON as String, OptionsJSON as String = "") as String
- method ReadWriteCommand(dbName as String, commandJSON as String, OptionsJSON as String = "") as String
- method ServerDescription(ServerID as UInt32) as MongoServerDescriptionMBS
- method ServerDescriptions as MongoServerDescriptionMBS()
- method Watch(pipelineJSON as String, OptionsJSON as String = "") as MongoChangeStreamMBS
- method WriteCommand(dbName as String, commandJSON as String, OptionsJSON as String = "") as String
- 5 shared methods
- shared method DataToBinary(Data as MemoryBlock) as String
- shared method DataToBinary(Data as String) as String
- shared method LogMessage(Message as String)
- shared method NowUTC as String
- shared method Time(SecondsSince1970 as Double) as String
- 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 24.2
- MonkeyBread Software Releases the MBS Xojo Plugins in version 24.2
- Watch MongoDB Database changes in Xojo
- News from the MBS Xojo Plugins Version 23.4
- MonkeyBread Software Releases the MBS Xojo Plugins in version 23.4
- News from the MBS Xojo Plugins Version 23.2
- MonkeyBread Software Releases the MBS Xojo Plugins in version 23.2
- News from the MBS Xojo Plugins in Version 23.0
- News from the MBS Xojo Plugins Version 22.4
- Insert record to MongoDB in Xojo
Xojo Developer Magazine
- 22.5, page 10: News
- 22.4, page 9: News
- 21.6, page 8: News
- 21.4, page 10: News
- 21.1, pages 94 to 95: A Database That Connects, A Mongo DB photo database used with FileMaker and Xojo by Stefanie Juchmes
Release notes
- Version 24.2
- Added more methods and properties for MongoDB to our MongoDatabaseMBS, MongoClientMBS and MongoURIMBS class.
- Version 23.4
- Added MongoSSLOptionsMBS class and SSLOptions property for MongoClientMBS class.
- Added Ping method to MongoClientMBS class.
- Added SSLLibrary function to MongoClientMBS class.
- Added Trace property for MongoClientMBS class.
- Version 23.2
- Added DataToBinary function to MongoClientMBS class.
- Added NowUTC and Time functions to MongoClientMBS class.
- Version 22.4
- Added NewCursorFromCommandReply function to MongoClientMBS class.
The items on this page are in the following plugins: MBS MongoDB Plugin.
MongoChangeStreamMBS - MongoCollectionMBS
