1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-04 20:54:02 +02:00
Files
OpenIntegrations/docs/en/examples/MongoDB/ExecuteCommand.txt
T

13 lines
478 B
Plaintext
Vendored

Address = "127.0.0.1:1234";
Login = "bayselonarrend";
Password = "12we...";
ConnectionParams = New Structure("authSource", "admin");
ConnectionString = OPI_MongoDB.GenerateConnectionString(Address, , Login, Password, ConnectionParams);
Command = "listDatabases";
Data = New Structure("nameOnly", True);
Connection = OPI_MongoDB.CreateConnection(ConnectionString);
Result = OPI_MongoDB.ExecuteCommand(Connection, Command, , , Data);