Skip to content

Commit 5e5f765

Browse files
authored
fix: add postgres connector cloning for multi-source support (#132)
1 parent efe80b9 commit 5e5f765

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/connectors/postgres/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ export class PostgresConnector implements Connector {
100100

101101
private pool: pg.Pool | null = null;
102102

103+
clone(): Connector {
104+
return new PostgresConnector();
105+
}
106+
103107
async connect(dsn: string, initScript?: string, config?: ConnectorConfig): Promise<void> {
104108
try {
105109
const poolConfig = await this.dsnParser.parse(dsn, config);

0 commit comments

Comments
 (0)