Function

query-batch

Perform a batch query (which could contain multiple statements) against a Postgres database, leaving connection/session management to the callee/implementer of this interface (normally a provider configured with connection credentials).

No user-provided or untrusted data should be used with this query -- parameters are not allowed.

This query can be used to execute multi-statement queries (common in migrations).

query-batch: async func(query: string) -> result​<_, error>;