diff --git a/mergin/merginproject.py b/mergin/merginproject.py index 87f3c5f..3788da3 100644 --- a/mergin/merginproject.py +++ b/mergin/merginproject.py @@ -1084,6 +1084,20 @@ def set_tables_to_skip(self, tables): """ self.geodiff.set_tables_to_skip(tables) + def set_tables_to_include(self, tables: List[str]): + """ + Set list of tables to include in geodiff operations. Once defined, only these + tables will be included in the following operations: create changeset, apply + changeset, rebase, get database schema, dump database contents, copy database + between different drivers. + + If empty list is passed, list will be reset. + + :param tables: list of table names to include + :type tables: list[str] + """ + self.geodiff.set_tables_to_include(tables) + def get_geodiff_changes_count(self, diff_rel_path: str): """ Best-effort: return number of changes in the .gpkg diff (int) or None.