Skip to content

Commit ddd05cb

Browse files
committed
add function
1 parent 56a440d commit ddd05cb

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

mergin/merginproject.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,20 @@ def set_tables_to_skip(self, tables):
10841084
"""
10851085
self.geodiff.set_tables_to_skip(tables)
10861086

1087+
def set_tables_to_include(self, tables: List[str]):
1088+
"""
1089+
Set list of tables to include in geodiff operations. Once defined, only these
1090+
tables will be included in the following operations: create changeset, apply
1091+
changeset, rebase, get database schema, dump database contents, copy database
1092+
between different drivers.
1093+
1094+
If empty list is passed, list will be reset.
1095+
1096+
:param tables: list of table names to include
1097+
:type tables: list[str]
1098+
"""
1099+
self.geodiff.set_tables_to_include(tables)
1100+
10871101
def get_geodiff_changes_count(self, diff_rel_path: str):
10881102
"""
10891103
Best-effort: return number of changes in the .gpkg diff (int) or None.

0 commit comments

Comments
 (0)