Function

prepare

Prepare a statement, given a connection token (which can represent a connection or session), to a Postgres database.

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

SELECT email,username FROM users WHERE uuid=$1;

NOTE: To see how to obtain a connection-token, see connection.wit.

prepare: func(statement: string) -> result​<prepared-statement-token, statement-prepare-error>;