跳转到主要内容

StreamFlow PostgreSQL插件

项目描述

PostgreSQL插件用于StreamFlow

安装

只需使用pip从PyPI安装包目录。StreamFlow将在每次工作流执行时自动将其识别为插件并加载。

pip install streamflow-postgresql

如果一切正常,每次工作流执行开始时,日志中应该打印以下消息

Successfully registered plugin streamflow_postgresql.plugin.PostgreSQLStreamFlowPlugin

用法

此插件注册了一个新的Database组件,它扩展了StreamFlow的CachedDatabase类。要声明它,请在streamflow.yml配置文件中放置以下行。

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

项目详情


下载文件

下载您平台所需的文件。如果您不确定该选择哪个,请了解更多关于安装包的信息。

源代码发行版

streamflow_postgresql-0.0.7.tar.gz (12.8 kB 查看哈希值)

上传时间 源代码

构建发行版

streamflow_postgresql-0.0.7-py3-none-any.whl (10.9 kB 查看哈希值)

上传时间 Python 3

支持