2025-06-27 11:47:43 +03:00
|
|
|
Address = FunctionParameters["PG_IP"];
|
2025-02-13 21:31:59 +03:00
|
|
|
Login = "bayselonarrend";
|
2025-06-27 11:47:43 +03:00
|
|
|
Password = FunctionParameters["PG_Password"];
|
2025-02-13 21:31:59 +03:00
|
|
|
Base = "postgres";
|
|
|
|
|
|
|
|
|
|
ConnectionString = OPI_PostgreSQL.GenerateConnectionString(Address, Base, Login, Password);
|
|
|
|
|
Result = OPI_PostgreSQL.CreateConnection(ConnectionString);
|
2025-02-14 15:29:42 +03:00
|
|
|
|
|
|
|
|
OPI_PostgreSQL.CloseConnection(Result);
|
2025-03-11 21:09:03 +03:00
|
|
|
|
|
|
|
|
// With TLS
|
|
|
|
|
|
|
|
|
|
Address = "api.athenaeum.digital";
|
|
|
|
|
Port = "5433";
|
|
|
|
|
|
|
|
|
|
ConnectionString = OPI_PostgreSQL.GenerateConnectionString(Address, Base, Login, Password, Port);
|
|
|
|
|
TLSSettings = OPI_PostgreSQL.GetTlsSettings(False);
|
|
|
|
|
|
|
|
|
|
Result = OPI_PostgreSQL.CreateConnection(ConnectionString, TLSSettings);
|
|
|
|
|
|
|
|
|
|
OPI_PostgreSQL.CloseConnection(Result);
|