PGGETCONNECTIONID(n)
π PgGetConnectionId() π
okay so this is the glow-up page for PgGetConnectionId() from the PostgreSQL Tcl Interface Documentation β bestie, it's giving C function with main-character energy π
β¨
β NAME β
PgGetConnectionId β provides access to the underlying libpq SQL connection handle. no cap, that's the whole gig π«Ά
β¨ SYNOPSIS β¨
extern PGconn *PgGetConnectionId(Tcl_Interp *interp, const char *handle, Pg_ConnectionId **connid);
π¦ DESCRIPTION π¦
PgGetConnectionId returns the underlying PGconn handle. it's literally here so Tcl extensions to Pgtcl can use the existing database connection β reuse the connection you already have, slay π
the Pg_ConnectionId structure provides access to more internals of the Pgtcl handle, but honestly it may be ignored in most cases. lowkey optional in your brain, but the pointer param still has rules (see below) π₯
π PARAMETERS π
Tcl_Interp *interpβ pointer to the Tcl interpreter.char *handleβ the name of the Pgtcl database handle command.Pg_ConnectionId **connidβ pointer to the address that holds the Pgtcl connection handle. it must be provided even if you don't use it, bestie β no skipping π
π RETURNS π
PGconn *conn is a pointer to the libpq SQL database connection. periodt. π
tiny cute sign-off: this page is from the PostgreSQL Tcl Interface Documentation source/version vibes, dated 17 September 2020. byeee, go treat your PGconn right ππ
π¦ where this page comes from
- alpine 3.22: pgtcl-doc 3.1.0-r0 Β· BSD-3-Clause
- alpine 3.23: pgtcl-doc 3.1.1-r0 Β· BSD-3-Clause
- alpine 3.24: pgtcl-doc 3.1.1-r0 Β· BSD-3-Clause
- nixpkgs unstable: pgtcl 3.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms