You can copy a vector dataset within a project. You can do this from the list of datasets in the project's dataset list.
You have two options: copy only schema (useful also for easy prototyping of datasets) and copy schema & data. If you have galleries, they will be duplicated as well. Styling is always conserved.
As you will notice, you can request the copying of several datasets at once. This is because of relationships, which are handled as follows:
- If you select both the primary and related datasets of a relationship to be copied, you will end up with two datasets with a relationship between them as well.
- If you only select the related dataset, it will have a relationship to the original primary dataset. You can easilly remove this relationship using the schema editor if you want.
- If you only select the primary dataset, it will have no relationships.
- This extends to chains of relationships