{"id":16776319,"url":"https://github.com/polaris-contrib/store-postgresql","last_synced_at":"2025-04-10T20:14:13.364Z","repository":{"id":172160056,"uuid":"647636374","full_name":"polaris-contrib/store-postgresql","owner":"polaris-contrib","description":"在 Polaris 中提供基于 postgresql 实现的存储层","archived":false,"fork":false,"pushed_at":"2024-11-12T17:59:52.000Z","size":341,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T17:55:16.118Z","etag":null,"topics":["plugin","polaris","polarismesh","postgresql"],"latest_commit_sha":null,"homepage":"","language":"Go","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/polaris-contrib.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":"2023-05-31T07:52:18.000Z","updated_at":"2025-01-12T15:34:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"ed9e630c-f29e-4f9f-8fde-3069386bfe4f","html_url":"https://github.com/polaris-contrib/store-postgresql","commit_stats":null,"previous_names":["polaris-contrib/polaris-store-postgresql","polaris-contrib/store-postgresql"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polaris-contrib%2Fstore-postgresql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polaris-contrib%2Fstore-postgresql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polaris-contrib%2Fstore-postgresql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polaris-contrib%2Fstore-postgresql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polaris-contrib","download_url":"https://codeload.github.com/polaris-contrib/store-postgresql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248288362,"owners_count":21078903,"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":["plugin","polaris","polarismesh","postgresql"],"created_at":"2024-10-13T07:09:32.212Z","updated_at":"2025-04-10T20:14:13.342Z","avatar_url":"https://github.com/polaris-contrib.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# polaris-store-postgresql\n\n## 如何使用\n\n#### 构建\n\n执行构建脚本 `Makefile` 即可\n\n```bash\n# ${store_pg_plugin_version}: store-postgresql 插件版本，默认为 main 的最新 commit\n# ${polaris_server_tag}: 北极星服务端版本信息，默认为 main 分支\nmake build STORE_PG_PLUGIN_VERSION=latest POLARIS_SERVER_VERSION=${polaris_server_tag}\n```\n\n#### 配置文件调整\n\n修改 **conf/polaris-server.yaml** 文件，参考下列配置调整 store 的配置信息\n\n```yaml\n# Storage configuration\nstore:\n  ## Database storage plugin\n  name: defaultStore\n  option:\n    master:\n      # 设置数据库类型为 postgresql\n      dbType: \"postgres\"\n      dbName: \"polaris_server\"\n      dbUser: \"改成自已有用户名\" ##DB_USER##\n      dbPwd: \"改成自已的密码\" ##DB_PWD##\n      dbAddr: \"改成自已的IP\" ##DB_ADDR##\n      dbPort: \"改成自已的端口\"\n      maxOpenConns: -1\n      maxIdleConns: -1\n      connMaxLifetime: 300 # 单位秒\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolaris-contrib%2Fstore-postgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolaris-contrib%2Fstore-postgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolaris-contrib%2Fstore-postgresql/lists"}