mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
OP-3426 - disable unwanted commands
Enabling only for test preparation. Updated test_db to currently used avalon_tests
This commit is contained in:
parent
f501c63369
commit
b996acaf9c
1 changed files with 6 additions and 6 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue