Skip to content

Commit

Permalink
Merge pull request #821 from MolSSI/snow_dumpdb
Browse files Browse the repository at this point in the history
Enable dumping a database from a snowflake
  • Loading branch information
bennybp committed Apr 19, 2024
2 parents 04497ae + 59ebd43 commit e1ba960
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions qcfractal/qcfractal/snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,18 @@ def client(self) -> PortalClient:
c._timeout = 2
return c

def dump_database(self, filepath: str) -> None:
"""
Dumps the database to a file
Parameters
----------
filepath
Path to the output file to create
"""

self._pg_harness.backup_database(filepath)

def __enter__(self):
return self

Expand Down

0 comments on commit e1ba960

Please sign in to comment.