Simply install the package directory from PyPI using pip. StreamFlow will automatically recognise it as a plugin and load it at each workflow execution.
pip install streamflow-postgresql
If everything worked correctly, whenever a workflow execution start the following message should be printed in the log:
Successfully registered plugin streamflow_postgresql.plugin.PostgreSQLStreamFlowPlugin
This plugin registers a new Database
component, which extends the StreamFlow CachedDatabase
class. To declare it, put the following lines inside a streamflow.yml
configuration file.
database:
type: unito.postgresql
config:
dbname: <dbname> # The name of the database to use
hostname: <hostname> # The database hostname or IP address
password: <password> # Password to use when connecting to the database
username: <username> # Username to use when connecting to the database