Function

prepare

Prepare a statement against a Postgres database, leaving connection/session management to the callee/implementer of this interface (normally a provider configured with connection credentials).

Queries must be parameterized, with named arguments in the form of $<integer>, for example:

SELECT email,username FROM users WHERE uuid=$1;
prepare: async func(statement: string) -> result​<prepared-statement-token, error>;