Skip to content

Commit 1515de5

Browse files
committed
add method for defining list of tables to ignore from geodiff operations
1 parent 8216f30 commit 1515de5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

mergin/merginproject.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,3 +731,15 @@ def resolve_unfinished_pull(self, user_name):
731731
shutil.rmtree(self.unfinished_pull_dir)
732732
self.log.info("unfinished pull resolved successfuly!")
733733
return conflicts
734+
735+
def set_tables_to_skip(self, tables):
736+
"""
737+
Set list of tables to exclude from geodiff operations. Once defined, these
738+
tables will be excluded from the following operations: create changeset,
739+
apply changeset, rebase, get database schema, dump database contents, copy
740+
database between different drivers.
741+
742+
Tables passes as semicolon separated list, e.g. "table1;table2;...;tableN".
743+
If empty string is passed, list will be reset.
744+
"""
745+
self.geodiff.set_tables_to_skip(tables)

0 commit comments

Comments
 (0)