MongoClientMBS shared methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to MongoClientMBS class.

MongoClientMBS.DataToBinary(Data as MemoryBlock) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method MongoDB MBS MongoDB Plugin 23.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Converts the data to a binary object.

Converts a string or MemoryBlock to JSON for MongoDB.
Reads the bytes, converts to base64 and embeds it in a $binary JSON for use in MongoDB.

See also:

MongoClientMBS.DataToBinary(Data as String) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method MongoDB MBS MongoDB Plugin 23.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Converts the data to a binary object.
Example

Dim json As String = MongoClientMBS.DataToBinary("Hello World")

MessageBox json

// shows: { "$binary" : { "base64" : "SGVsbG8gV29ybGQ=", "subType" : "00" }

Converts a string or MemoryBlock to JSON for MongoDB.
Reads the bytes, converts to base64 and embeds it in a $binary JSON for use in MongoDB.

See also:

MongoClientMBS.LogMessage(Message as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method MongoDB MBS MongoDB Plugin 22.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sends message through MongoDB logging system.

See also:

MongoClientMBS.NowUTC as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method MongoDB MBS MongoDB Plugin 23.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Create a new JSON value with current date and time.

Value is in GMT/UTC.
e.g. { "$date" : "2023-03-09T11:39:34Z" }

MongoClientMBS.Time(SecondsSince1970 as Double) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method MongoDB MBS MongoDB Plugin 23.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Create a new JSON value with given timestamp.

Please pass time as seconds since 1970 and in UTC time zone.

e.g. { "$date" : "2023-03-09T11:39:34Z" }

The items on this page are in the following plugins: MBS MongoDB Plugin.


💬 Ask a question or report a problem