1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00
Files
OpenIntegrations/docs/en/examples/MongoDB/ExecuteCommand.txt

15 lines
509 B
Plaintext
Raw Normal View History

2025-11-04 21:08:54 +03:00
 Address = "127.0.0.1:1234";
Login = "bayselonarrend";
Password = "12we...";
Base = "main";
2025-11-04 21:18:33 +03:00
ConnectionParams = New Structure("authSource", "admin");
ConnectionString = OPI_MongoDB.GenerateConnectionString(Address, Base, Login, Password, ConnectionParams);
Command = "listDatabases";
Data = New Structure("nameOnly", True);
Connection = OPI_MongoDB.CreateConnection(ConnectionString);
Result = OPI_MongoDB.ExecuteCommand(Connection, Command, , , Data);