{"id":21697893,"url":"https://github.com/yakubique/query-postgresql","last_synced_at":"2026-04-09T09:51:34.586Z","repository":{"id":221939386,"uuid":"755828526","full_name":"yakubique/query-postgresql","owner":"yakubique","description":"Make query to PostgreSQL and return JSON","archived":false,"fork":false,"pushed_at":"2024-02-27T12:31:38.000Z","size":189,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-25T14:25:29.583Z","etag":null,"topics":["github-actions","pg","postgresql"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yakubique.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"ko_fi":"opa_oz"}},"created_at":"2024-02-11T07:29:52.000Z","updated_at":"2024-02-27T11:55:54.000Z","dependencies_parsed_at":"2024-02-26T07:29:19.917Z","dependency_job_id":"5b664454-8ff7-4cc4-9968-c0aee4f3205e","html_url":"https://github.com/yakubique/query-postgresql","commit_stats":null,"previous_names":["yakubique/query-postgresql"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakubique%2Fquery-postgresql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakubique%2Fquery-postgresql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakubique%2Fquery-postgresql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakubique%2Fquery-postgresql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yakubique","download_url":"https://codeload.github.com/yakubique/query-postgresql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244637102,"owners_count":20485446,"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":["github-actions","pg","postgresql"],"created_at":"2024-11-25T19:29:59.143Z","updated_at":"2025-12-31T00:04:57.807Z","avatar_url":"https://github.com/yakubique.png","language":"TypeScript","funding_links":["https://ko-fi.com/opa_oz","https://ko-fi.com/S6S1UZ9P7"],"categories":[],"sub_categories":[],"readme":"# query-postgresql\n\nMake query to PostgreSQL and return JSON\n\n[![Test `query-postgresql` action](https://github.com/yakubique/query-postgresql/actions/workflows/test-myself.yaml/badge.svg)](https://github.com/yakubique/query-postgresql/actions/workflows/test-myself.yaml)\n\n## Usage\n\nFor live examples, please see [actions](https://github.com/yakubique/query-postgresql/actions/workflows/test-myself.yaml)\n\n```yaml\nuses: yakubique/query-postgresql@v1.2\nwith:\n  query: |\n    select true as result\n  host: ${{ env.PG_HOST }}\n  port: ${{ env.PG_PORT }}\n  username: ${{ env.PG_USER }}\n  password: ${{ env.PG_PWD }}\n  db: ${{ env.PG_DB }}\n  ssl: 'false'\n```\n\n## Inputs\n\n\u003c!-- AUTO-DOC-INPUT:START - Do not remove or modify this section --\u003e\n\n|   INPUT   |  TYPE  | REQUIRED | DEFAULT  |                DESCRIPTION                 |\n|-----------|--------|----------|----------|--------------------------------------------|\n|    db     | string |   true   |          |               PostgreSQL db                |\n|   host    | string |   true   |          |              PostgreSQL host               |\n| username  | string |   true   |          |            PostgreSQL username             |\n| password  | string |   true   |          |            PostgreSQL password             |\n|   port    | string |   true   | `\"5432\"` |      PostgreSQL port (default: 5432)       |\n|   query   | string |   true   |          | SQL query (query file if `from_file=true`) |\n|    ssl    | string |  false   | `\"true\"` |       SSL enabled (default: 'true')        |\n| from_file | string |  false   |          |  Read query from file (default: 'false')   |\n|  to_file  | string |  false   |          |   Save result to file (default: 'false')   |\n\n\u003c!-- AUTO-DOC-INPUT:END --\u003e\n\n\n## Outputs\n\n\u003c!-- AUTO-DOC-OUTPUT:START - Do not remove or modify this section --\u003e\n\n| OUTPUT |  TYPE  |             DESCRIPTION             |\n|--------|--------|-------------------------------------|\n| count  | string |             Rows count              |\n| result | string | PostgreSQL response OR path to file |\n\n\u003c!-- AUTO-DOC-OUTPUT:END --\u003e\n\n\n----\n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/S6S1UZ9P7)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyakubique%2Fquery-postgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyakubique%2Fquery-postgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyakubique%2Fquery-postgresql/lists"}