1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00
Files
OpenIntegrations/docs/en/examples/PostgreSQL/CreateConnection.txt

22 lines
739 B
Plaintext
Raw Normal View History

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);