Skip to main content

feapder pipelines extension

Project description

FEAPDER 管道扩展

简介

此模块为feapderpipelines扩展,感谢广大开发者对feapder的贡献

随着feapder支持的pipelines越来越多,为减少feapder的体积,特将pipelines提出,使用者可按需安装

管道

PostgreSQL

贡献者:沈瑞祥

联系方式:ruixiang.shen@outlook.com

安装

pip install feapder_pipelines[pgsql]

使用

feapder项目的setting.py中使用如下配置

# PostgreSQL
PGSQL_IP = 
PGSQL_PORT = 
PGSQL_DB = 
PGSQL_USER_NAME = 
PGSQL_USER_PASS = 

ITEM_PIPELINES = [
    "feapder_pipelines.pipelines.pgsql_pipeline.PgsqlPipeline"
]
细节 注:入库时 ON CONFLICT(key) 默认为id或通过如下sql查出来的第一个值
select column_names from(
        select
            t.relname as table_name,
            i.relname as index_name,
            array_to_string(array_agg(a.attname), ', ') as column_names
        from
            pg_class t,
            pg_class i,
            pg_index ix,
            pg_attribute a
        where
            t.oid = ix.indrelid
            and i.oid = ix.indexrelid
            and a.attrelid = t.oid
            and a.attnum = ANY(ix.indkey)
            and t.relkind = 'r'
            and t.relname like '%'
        group by
            t.relname,
            i.relname
        order by
            t.relname,
            i.relname) as res
    where table_name = 'table_name';

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

feapder_pipelines-1.0.4b1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

feapder_pipelines-1.0.4b1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file feapder_pipelines-1.0.4b1.tar.gz.

File metadata

  • Download URL: feapder_pipelines-1.0.4b1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for feapder_pipelines-1.0.4b1.tar.gz
Algorithm Hash digest
SHA256 8a03067ee950741b1ae9009454dfc539698eeb88ce88eb41d4260928f5deae9d
MD5 999fcc2901e776bba073bead455041d3
BLAKE2b-256 54e273a52f1322ae48dff01c6a922db3a39d49f31adf32a518c49f3488af818d

See more details on using hashes here.

File details

Details for the file feapder_pipelines-1.0.4b1-py3-none-any.whl.

File metadata

  • Download URL: feapder_pipelines-1.0.4b1-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for feapder_pipelines-1.0.4b1-py3-none-any.whl
Algorithm Hash digest
SHA256 5bdb771893592bbf1b925b3733f7db061461c137e40a582fd96042d1be73c168
MD5 dcd4ea9c09ac24f4f80680a91d5df0a5
BLAKE2b-256 6530879af25f547b699d066e1b3d3e685cef468803590736f6b43c4357f70d77

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page