Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions mergin/merginproject.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading