TemporaryPostgres¶
-
class
qcfractal.
TemporaryPostgres
(database_name: Optional[str] = None, tmpdir: Optional[str] = None, quiet: bool = True, logger: print = <built-in function print>)[source]¶ Bases:
object
Methods Summary
database_uri
([safe, database])Provides the full Postgres URI string.
stop
()Shuts down the Snowflake instance.
Methods Documentation
-
database_uri
(safe: bool = True, database: Optional[str] = None) → str[source]¶ Provides the full Postgres URI string.
- Parameters
safe (bool, optional) – If True, hides the postgres password.
database (Optional[str], optional) – An optional database to add to the string.
- Returns
The database URI
- Return type
str
-