2025-06-27 11:47:43 +03:00
|
|
|
Address = FunctionParameters["PG_IP"];
|
2025-03-27 20:05:59 +03:00
|
|
|
Login = "bayselonarrend";
|
2025-06-27 11:47:43 +03:00
|
|
|
Password = FunctionParameters["PG_Password"];
|
2025-03-27 20:05:59 +03:00
|
|
|
Base = "";
|
|
|
|
|
|
|
|
|
|
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
|
|
|
|
|
Result = OPI_MySQL.CreateConnection(ConnectionString);
|
|
|
|
|
|
|
|
|
|
OPI_MySQL.CloseConnection(Result);
|
2025-04-02 14:56:42 +03:00
|
|
|
|
|
|
|
|
// With TLS
|
|
|
|
|
|
|
|
|
|
Address = "api.athenaeum.digital";
|
|
|
|
|
Port = "3307";
|
|
|
|
|
|
|
|
|
|
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
|
|
|
|
|
TLSSettings = OPI_MySQL.GetTlsSettings(False);
|
|
|
|
|
|
|
|
|
|
Result = OPI_MySQL.CreateConnection(ConnectionString, TLSSettings);
|
|
|
|
|
|
|
|
|
|
OPI_MySQL.CloseConnection(Result);
|