1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00
Files
OpenIntegrations/docs/en/examples/PostgreSQL/CreateConnection.txt
Vitaly the Alpaca (bot) ad6ba5cbe8 Main build (Jenkins)
2025-03-11 21:09:03 +03:00

22 lines
699 B
Plaintext
Vendored

Address = "127.0.0.1";
Login = "bayselonarrend";
Password = "12we...";
Base = "postgres";
ConnectionString = OPI_PostgreSQL.GenerateConnectionString(Address, Base, Login, Password);
Result = OPI_PostgreSQL.CreateConnection(ConnectionString);
OPI_PostgreSQL.CloseConnection(Result);
// 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);