{"id":17311980,"url":"https://github.com/boris-code/feapder_pipelines","last_synced_at":"2025-04-14T14:22:53.689Z","repository":{"id":57428916,"uuid":"440716067","full_name":"Boris-code/feapder_pipelines","owner":"Boris-code","description":"feapder的管道扩展","archived":false,"fork":false,"pushed_at":"2023-03-06T14:24:27.000Z","size":12,"stargazers_count":15,"open_issues_count":3,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T14:22:46.699Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Boris-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-22T03:02:49.000Z","updated_at":"2024-11-06T20:43:52.000Z","dependencies_parsed_at":"2024-10-15T12:42:03.592Z","dependency_job_id":null,"html_url":"https://github.com/Boris-code/feapder_pipelines","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":0.5,"last_synced_commit":"5d1a15607e8d12a89d5a4eb9cbff3511608ec203"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boris-code%2Ffeapder_pipelines","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boris-code%2Ffeapder_pipelines/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boris-code%2Ffeapder_pipelines/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boris-code%2Ffeapder_pipelines/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Boris-code","download_url":"https://codeload.github.com/Boris-code/feapder_pipelines/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248895015,"owners_count":21179167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T12:42:00.930Z","updated_at":"2025-04-14T14:22:53.654Z","avatar_url":"https://github.com/Boris-code.png","language":"Python","readme":"# FEAPDER 管道扩展\n\n![](https://img.shields.io/badge/python-3-brightgreen)\n![](https://img.shields.io/github/watchers/Boris-code/feapder_pipelines?style=social)\n![](https://img.shields.io/github/stars/Boris-code/feapder_pipelines?style=social)\n![](https://img.shields.io/github/forks/Boris-code/feapder_pipelines?style=social)\n\n## 简介\n\n此模块为`feapder`的`pipelines`扩展，感谢广大开发者对`feapder`的贡献\n\n随着feapder支持的pipelines越来越多，为减少feapder的体积，特将pipelines提出，使用者可按需安装\n\n## 管道\n\n### PostgreSQL\n\n\u003e 贡献者：沈瑞祥\n\u003e\n\u003e 联系方式：ruixiang.shen@outlook.com\n\n\n#### 安装 \n\n```\npip install feapder_pipelines[pgsql]\n```\n\n#### 使用\n\n在`feapder`项目的`setting.py`中使用如下配置\n\n```python\n# PostgreSQL\nPGSQL_IP = \nPGSQL_PORT = \nPGSQL_DB = \nPGSQL_USER_NAME = \nPGSQL_USER_PASS = \n\nITEM_PIPELINES = [\n    \"feapder_pipelines.pipelines.pgsql_pipeline.PgsqlPipeline\"\n]\n```\n\n\n\u003cdetails\u003e\n\u003csummary\u003e细节\u003c/summary\u003e\n注：入库时 ON CONFLICT(key) 默认为id或通过如下sql查出来的第一个值\n\n```sql\nselect column_names from(\n        select\n            t.relname as table_name,\n            i.relname as index_name,\n            array_to_string(array_agg(a.attname), ', ') as column_names\n        from\n            pg_class t,\n            pg_class i,\n            pg_index ix,\n            pg_attribute a\n        where\n            t.oid = ix.indrelid\n            and i.oid = ix.indexrelid\n            and a.attrelid = t.oid\n            and a.attnum = ANY(ix.indkey)\n            and t.relkind = 'r'\n            and t.relname like '%'\n        group by\n            t.relname,\n            i.relname\n        order by\n            t.relname,\n            i.relname) as res\n    where table_name = 'table_name';\n```\n\u003c/details\u003e\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboris-code%2Ffeapder_pipelines","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboris-code%2Ffeapder_pipelines","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboris-code%2Ffeapder_pipelines/lists"}