1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-18 09:51:28 +02:00
Files
OpenIntegrations/docs/en/examples/MongoDB/ExecuteCommand.txt
T
Vitaly the Alpaca (bot) c25ed70ac3 Main build (Jenkins)
2026-02-13 14:09:07 +03:00

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);