1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00
Files
OpenIntegrations/docs/en/examples/MongoDB/GetDatabase.txt
Vitaly the Alpaca (bot) 9573d15172 Main build (Jenkins)
2025-11-04 21:18:33 +03:00

13 lines
442 B
Plaintext
Vendored

Address = "127.0.0.1:1234";
Login = "bayselonarrend";
Password = "12we...";
Base = "main";
ConnectionParams = New Structure("authSource", "admin");
ConnectionString = OPI_MongoDB.GenerateConnectionString(Address, Base, Login, Password, ConnectionParams);
Connection = OPI_MongoDB.CreateConnection(ConnectionString);
Base = "test_db";
Result = OPI_MongoDB.GetDatabase(Connection, Base);