@pgxsinkit/pgwasm
Version:
15 lines • 1.01 kB
TypeScript
/**
* Wire-level access to a pgwasm instance, for tools that speak the Postgres protocol themselves
* (pg_dump, a REPL, a benchmark). Everyday code uses `query`, `exec` and `transaction` instead: the
* `execProtocol*` calls bypass pgwasm's query locks. A tool whose exchanges must not interleave with
* anything else runs them inside `runExclusiveSession`, which holds those locks.
*/
import { type PgwasmProtocol } from "../core/internals";
import type { Pgwasm } from "../interface";
export type { ExecProtocolOptions, ExecProtocolResult, ExecProtocolStreamOptions, PgwasmProtocol, } from "../core/internals";
export { Parser, serialize, messages, Modes } from "./wire";
export type { BindOpts, ExecOpts, LegalValue, MessageCallback, Mode, ParseOpts, PortalOpts } from "./wire";
export type { BackendMessage } from "./wire/messages";
/** The wire-level methods of a database created by `createPgwasm`. */
export declare function protocol(pg: Pgwasm): PgwasmProtocol;
//# sourceMappingURL=index.d.ts.map