FEAT: Copy table to another database / connection
Author: rathbomaCreated Sep 25, 2026Updated Sep 25, 2026
Labelsenhancementaccepted :+1:poweruser
Being able to copy a table to another database is super useful for:
- People debugging a production issue who want a dev/staging version they can play with
- Moving static data from one database to another (eg country data, product data, zip codes, etc)
Workflow should be:
- Right click table,
Copy to... - Select where you want it copied: current connection / other compatible connection -> database -> schema -> new/existing table
- Choose what they want to copy - schema only, data only, both. If on a tabletable with filters - should also allow them to copy filtered view. If not on tabletable, should give directions on how to copy a filtered view.
- If new table -> show table schema
- If existing table -> show incompatiblities, ask if it should truncate values first6. Inserting data runs in a transaction
- Some destinations might require the user to log in before connecting (eg: Azure CLI). It should handle this gracefully.
- Progress bar displays what's happening
- Summary at the end
Needs to handle situations like:
- Table has an auto-increment primary key
- What if inserting into a table without truncating and there's a PK conflict, or multiple PK conflicts?
- What if inserting into an existing table and there's a validation conflict? Eg null / not null. What if there are dozens of bad rows?
Future: Copy multiple tables
Engineer note: This must use the same code on the backend as our CSV import code. This will also give us a good opportunity to update that code to make it more robust.
Source: beekeeper-studio/beekeeper-studio