db/postgres¶
type connectionA connection to a Postgresql database.
meth connection(Settings: map): connectionConnects to a Postgresql database with the supplied settings.
meth connection(Name₁ is Value₁, ...): connectionConnects to a Postgresql database with the supplied settings.
meth (Arg₁: connection):closeTBD
meth (Arg₁: connection):connectedTBD
meth (Arg₁: connection):dbTBD
meth (Arg₁: connection):hostTBD
meth (Arg₁: connection):hostaddrTBD
meth (Arg₁: connection):optionsTBD
meth (Arg₁: connection):passTBD
meth (Arg₁: connection):portTBD
meth (Connection: connection):prepare(SQL: string): statementCreates a prepared statement on
Connection.meth (Connection: connection):query(SQL: string, Arg: any, ...): list[tuple] | nilExecutes
SQLonConnection, with argumentsArgᵢif supplied. Returns a list of tuples (forSELECT, etc) ornilfor commands without results.meth (Arg₁: connection):reconnect(Arg₂: number)TBD
meth (Arg₁: connection):userTBD
type statement < functionA prepared statement. Calling a statement executes the prepared statement on the associated connection, with the provided arguments (if any).