A simple CLI tool written in Node.js for copying the contents of a PostgreSQL table from one database to another, including across different servers. Version 1.0.0 provides command-line options for source and target connections, with password prompts for security. It offers defaults and partial configuration to reuse source values. Key differentiators: lightweight, no dependencies beyond Node.js, explicitly handles cross-server copies.
npm install postgres-copyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Copies rows from public.mytable in db1 to public.mytable_copy in db2, skipping confirmation prompt.
Omit password options to be prompted securely.
Use --yes flag to skip prompts in scripts.
Set up network access (e.g., firewall rules, SSH tunnel) before running.
Manually verify that both tables exist and have compatible columns.
Check target URL and network connectivity; ensure PostgreSQL is running.
Verify the password and provide correct --source-password or --target-password.
Check table name and schema prefix (e.g., public.mytable).
No dependency data recorded yet.