From 59ebd431af0c48aac66ee50d8879c25bfcaf0bf7 Mon Sep 17 00:00:00 2001 From: Benjamin Pritchard Date: Fri, 19 Apr 2024 11:22:25 -0400 Subject: [PATCH] Enable dumping a database from a snowflake --- qcfractal/qcfractal/snowflake.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/qcfractal/qcfractal/snowflake.py b/qcfractal/qcfractal/snowflake.py index d88df9bc8..6490bc70b 100644 --- a/qcfractal/qcfractal/snowflake.py +++ b/qcfractal/qcfractal/snowflake.py @@ -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