You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-25 22:12:29 +02:00
22 lines
742 B
Plaintext
Vendored
22 lines
742 B
Plaintext
Vendored
Address = FunctionParameters["PG_IP"];
|
|
Login = "bayselonarrend";
|
|
Password = FunctionParameters["PG_Password"];
|
|
Base = "postgres";
|
|
|
|
ConnectionString = OPI_PostgreSQL.GenerateConnectionString(Address, Base, Login, Password);
|
|
Result = OPI_PostgreSQL.CreateConnection(ConnectionString);
|
|
|
|
OPI_PostgreSQL.CloseConnection(Result);
|
|
|
|
// With TLS
|
|
|
|
Address = FunctionParameters["PG_IP"];
|
|
Port = "5433";
|
|
|
|
ConnectionString = OPI_PostgreSQL.GenerateConnectionString(Address, Base, Login, Password, Port);
|
|
TLSSettings = OPI_PostgreSQL.GetTlsSettings(True);
|
|
|
|
Result = OPI_PostgreSQL.CreateConnection(ConnectionString, TLSSettings);
|
|
|
|
OPI_PostgreSQL.CloseConnection(Result);
|