MCPcopy Create free account
hub / github.com/apache/cloudberry / PQconnectdbParams

Function PQconnectdbParams

src/interfaces/libpq/fe-connect.c:725–737  ·  view source on GitHub ↗

* PQconnectdbParams * * establishes a connection to a postgres backend through the postmaster * using connection information in two arrays. * * The keywords array is defined as * * const char *params[] = {"option1", "option2", NULL} * * The values array is defined as * * const char *values[] = {"value1", "value2", NULL} * * Returns a PGconn* which is needed for all subsequent l

Source from the content-addressed store, hash-verified

723 * call succeeded.
724 */
725PGconn *
726PQconnectdbParams(const char *const *keywords,
727 const char *const *values,
728 int expand_dbname)
729{
730 PGconn *conn = PQconnectStartParams(keywords, values, expand_dbname);
731
732 if (conn && conn->status != CONNECTION_BAD)
733 (void) connectDBComplete(conn);
734
735 return conn;
736
737}
738
739/*
740 * PQpingParams

Callers 11

connect_pg_serverFunction · 0.85
vacuumloFunction · 0.85
sql_connFunction · 0.85
connectDatabaseFunction · 0.85
ECPGconnectFunction · 0.85
mainFunction · 0.85
do_connectFunction · 0.85
connectDatabaseFunction · 0.85
ConnectDatabaseFunction · 0.85
GetConnectionFunction · 0.85
doConnectFunction · 0.85

Calls 2

PQconnectStartParamsFunction · 0.85
connectDBCompleteFunction · 0.85

Tested by

no test coverage detected