Skip to content

Commit 0e9ab46

Browse files
authored
Merge pull request #147 from MerginMaps/skip-tables
add method for defining list of tables to ignore from geodiff operations
2 parents 8216f30 + 8b2cadb commit 0e9ab46

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

mergin/merginproject.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,3 +731,17 @@ 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+
If empty list is passed, list will be reset.
743+
744+
:param tables: list of table names to ignore
745+
:type tables: list[str]
746+
"""
747+
self.geodiff.set_tables_to_skip(tables)

0 commit comments

Comments
 (0)