OP-3426 - disable unwanted commands

Enabling only for test preparation.
Updated test_db to currently used avalon_tests
This commit is contained in:
Petr Kalis 2022-10-19 15:44:50 +02:00
parent f501c63369
commit b996acaf9c

View file

@ -228,15 +228,15 @@ class DBHandler:
return query
# Examples
handler = DBHandler(uri="mongodb://localhost:27017")
# handler = DBHandler(uri="mongodb://localhost:27017")
# #
backup_dir = "c:\\projects\\test_zips\\test_maya_publish\\input\\dumps"
# backup_dir = "c:\\projects\\test_zips\\test_maya_publish\\input\\dumps"
# # #
#handler.backup_to_dump("avalon", backup_dir, True, collection="test_project")
handler.setup_from_dump("test_db", backup_dir, True, db_name_out="avalon", collection="test_project")
# handler.setup_from_sql_file("test_db", "c:\\projects\\sql\\item.sql",
# handler.backup_to_dump("avalon", backup_dir, True, collection="test_project")
# handler.setup_from_dump("avalon_tests", backup_dir, True, db_name_out="avalon", collection="test_project")
# handler.setup_from_sql_file("avalon_tests", "c:\\projects\\sql\\item.sql",
# collection="test_project",
# drop=False, mode="upsert")
# handler.setup_from_sql("test_db", "c:\\projects\\sql",
# handler.setup_from_sql("avalon_tests", "c:\\projects\\sql",
# collection="test_project",
# drop=False, mode="upsert")