pg-logical-replication
Version:
PostgreSQL Location Replication client - logical WAL replication streaming
35 lines (34 loc) • 916 B
TypeScript
import { Client } from 'pg';
import { AbstractPlugin } from '../abstract.plugin.js';
export interface TestDecodingPluginOptions {
/**
* include-xids: on/off
*/
includeXids?: boolean;
/**
* include-timestamp: on/off
*/
includeTimestamp?: boolean;
/**
* skip-empty-xacts: on/off
*/
skipEmptyXacts?: boolean;
/**
* (pg.ver>=11) include-rewrites: on/off
*/
includeRewrites?: boolean;
/**
* (pg.ver>=15) include-sequences: on/off
*/
includeSequences?: boolean;
/**
* (pg.ver>=14) stream-changes: on/off
*/
streamChanges?: boolean;
}
export declare class TestDecodingPlugin extends AbstractPlugin<TestDecodingPluginOptions> {
constructor(options?: TestDecodingPluginOptions);
get name(): string;
start(client: Client, slotName: string, lastLsn: string): Promise<any>;
parse(buffer: Buffer): any;
}