Connectioninterfaceinterface ConnectionA connection: the driver the library runs on, which runtime made it, and how it is closed.
| Member | Type | What it is |
|---|---|---|
driver | Driver | |
kind | "bun" | "custom" | "pg" | |
close | () => Promise<void> |
The connection of arcactl (commons data 0046-arcactl FR-001): one PostgreSQL connection that the library's Driver runs on. On Bun it is Bun's own client (Bun.SQL), which needs no dependency; on Node it is pg, an optional dependency that is loaded only there. Both use one connection for the whole run, so that a transaction a statement opens is the one the next statement is in. With no URL the driver reads PGHOST, PGUSER and the rest of libpq's environment, as psql does, and a password comes from libpq's own files and not from arcactl.
Not shown here: a real server over the network. The tests of this library run the same checks on PGlite, which is in process.
Connectioninterfaceinterface ConnectionA connection: the driver the library runs on, which runtime made it, and how it is closed.
| Member | Type | What it is |
|---|---|---|
driver | Driver | |
kind | "bun" | "custom" | "pg" | |
close | () => Promise<void> |