PostgreSQLConfig

class caqtus.session.sql.PostgreSQLConfig(
username: str,
password: str,
host: str,
port: int,
database: str,
)

Bases: object

Configuration for connecting to a PostgreSQL database.

classmethod from_file(path) Self

Create a PostgreSQLConfig from a yaml file.

The file should contain the same keys as the attributes of this class.