Duplicate existing table
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 214
- Forks
- 52
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 82
Description
Is your feature request related to a problem? Please describe.
It's currently possible to create an empty table with the same structure as another one (through export, import, I think).
It would be nice to be able to create a full copy (duplicate) of a table, including its structure and contents, when creating a new table.
This would be useful for tables that repeat every year / month / ... with almost the same data.
Describe the solution you'd like
When clicking on the + button for creating a new table, I would like the option 'Create from existing table'.
This could contain both an option to only take the structure, or to include the data in the copy, and even which columns to include.
In a table's three-dot-menu, it would be nice to have a 'duplicate' option that leads to a dialog with those same options.
Describe alternatives you've considered
Exporting the db scheme, re-importing it when creating a new table.
Then doing the same for the contents, likely losing things along the way...
Or creating a new empty table, recreating the columns, copying the data over manually. Even worse.
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the new-table + button and the table three-dot menu described in the issue, then trace the existing export/import workflow for table structure and contents. Define the duplicate dialog's choices for structure, data, and selected columns, and confirm that creating a new table preserves the selected parts without the manual export/import steps.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- full-stack
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100