1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-06-16 04:03:20 +02:00
Files
OpenIntegrations/docs/en/examples/MySQL/CreateConnection.txt
T
Vitaly the Alpaca (bot) 34b60068f2 Main build (Jenkins)
2025-06-27 14:27:03 +03:00

22 lines
699 B
Plaintext
Vendored

Address = FunctionParameters["PG_IP"];
Login = "bayselonarrend";
Password = FunctionParameters["PG_Password"];
Base = "";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
Result = OPI_MySQL.CreateConnection(ConnectionString);
OPI_MySQL.CloseConnection(Result);
// With TLS
Address = FunctionParameters["PG_IP"];
Port = "3307";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
TLSSettings = OPI_MySQL.GetTlsSettings(True);
Result = OPI_MySQL.CreateConnection(ConnectionString, TLSSettings);
OPI_MySQL.CloseConnection(Result);