pg-logical-replication
Version:
PostgreSQL Location Replication client - logical WAL replication streaming
24 lines (23 loc) • 633 B
TypeScript
import { Message, MessageRelation } from './pgoutput.types.js';
export declare class PgoutputParser {
_typeCache: Map<number, {
typeSchema: string;
typeName: string;
}>;
_relationCache: Map<number, MessageRelation>;
parse(buf: Buffer): Message;
private msgBegin;
private msgOrigin;
private msgType;
private msgRelation;
private readRelationReplicaIdentity;
private readRelationColumn;
private msgInsert;
private msgUpdate;
private msgDelete;
private readKeyTuple;
private readTuple;
private msgTruncate;
private msgMessage;
private msgCommit;
}