{"id":15024873,"url":"https://github.com/greenbone/pg-gvm","last_synced_at":"2025-04-12T12:32:05.023Z","repository":{"id":38822007,"uuid":"331311355","full_name":"greenbone/pg-gvm","owner":"greenbone","description":"Greenbone Library for helper functions in PostgreSQL","archived":false,"fork":false,"pushed_at":"2025-04-11T10:04:52.000Z","size":235,"stargazers_count":9,"open_issues_count":4,"forks_count":17,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-04-11T10:55:14.825Z","etag":null,"topics":["cmake","database","extended","greenbone","ical","icalendar","postgresql","techops","tooling"],"latest_commit_sha":null,"homepage":"","language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/greenbone.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-01-20T13:13:16.000Z","updated_at":"2025-04-11T08:56:14.000Z","dependencies_parsed_at":"2023-02-16T16:46:40.213Z","dependency_job_id":"50803062-3fc1-4dea-b117-4e8956456541","html_url":"https://github.com/greenbone/pg-gvm","commit_stats":{"total_commits":96,"total_committers":10,"mean_commits":9.6,"dds":0.6770833333333333,"last_synced_commit":"aed1f139d19703a6a569fe3be05717a8fe28c67f"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenbone%2Fpg-gvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenbone%2Fpg-gvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenbone%2Fpg-gvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenbone%2Fpg-gvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greenbone","download_url":"https://codeload.github.com/greenbone/pg-gvm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248566579,"owners_count":21125690,"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":["cmake","database","extended","greenbone","ical","icalendar","postgresql","techops","tooling"],"created_at":"2024-09-24T20:01:06.428Z","updated_at":"2025-04-12T12:32:05.017Z","avatar_url":"https://github.com/greenbone.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Greenbone Logo](https://www.greenbone.net/wp-content/uploads/gb_new-logo_horizontal_rgb_small.png)\n\n# Greenbone Library for PostgreSQL utility functions \u003c!-- omit in toc --\u003e\n\nThis library contains PostgreSQL utility functions. For example to compute host\nand ical information within SQL statements.\n\n- [Build and Installation](#build-and-installation)\n  - [Prerequisites](#prerequisites)\n  - [Configure and Build](#configure-and-build)\n  - [Use the extension](#use-the-extension)\n  - [Test the extension](#test-the-extension)\n    - [Setup for tests](#setup-for-tests)\n    - [Integration](#integration)\n    - [Running the tests](#running-the-tests)\n  - [Support](#support)\n  - [Maintainer](#maintainer)\n  - [Contributing](#contributing)\n    - [CMake formatting](#cmake-formatting)\n  - [License](#license)\n\n# Build and Installation\n\n## Prerequisites\n\n- GCC\n- cmake \u003e= 3.5\n- pkg-config\n- libical \u003e= 1.0.0\n- glib \u003e= 2.42\n- PostgreSQL dev \u003e= 9.6\n- libgvm-base \u003e= 20.8\n\nInstall these packages using (on Debian GNU/Linux bookworm 12):\n\n```sh\napt-get install gcc cmake pkg-config libical-dev libglib2.0-dev postgresql-server-dev-15\n```\n\nand build the gvm-libs as described in the [README](https://github.com/greenbone/gvm-libs).\n\n## Configure and Build\n\nThis extension can be configured, built and installed with the following commands:\n\n```sh\ncmake .\nmake \u0026\u0026 make install\n```\n\n## Use the extension\n\nTo use the extension in a database create the extension using\n\n```sh\nCREATE EXTENSION \"pg-gvm\";\n```\n\n## Test the extension\n\nThe tests are based on pgTAP, a unit test tool for PostgreSQL Databases.\n\n### Setup for tests\n\nInstall pgTAP cloning the [repository](https://github.com/theory/pgtap.git)\n\nand follow the instructions in the [setup documentation](https://pgtap.org/documentation.html#installation)\n\n### Integration\n\nTo use pgTAP in a database use\n\n```sh\nCREATE EXTENSION IF NOT EXISTS pgtap;\n```\n\nas postgres user.\nTo check if the extension exists use\n\n```sh\n\\dx\n```\n\n### Running the tests\n\nThe tests are located in the ```tests``` folder of this repository.\n\nAs postgres user run (replace MY_DATABASE with the real name of the database)\n\n```sh\npg_prove -d MY_DATABASE tests/*.sql\n```\n\n## Support\n\nFor any question on the usage of `pg-vgm` please use the [Greenbone Community\nForum](https://forum.greenbone.net/). If you found a problem with the\nsoftware, please [create an issue](https://github.com/greenbone/pg-gvm/issues) on\nGitHub. If you are a Greenbone customer you may alternatively or additionally\nforward your issue to the Greenbone Support Portal.\n\n## Maintainer\n\nThis project is maintained by [Greenbone AG](https://www.greenbone.net/).\n\n## Contributing\n\nYour contributions are highly appreciated. Please [create a pull\nrequest](https://github.com/greenbone/pg-gvm/pulls) on GitHub. Bigger changes need\nto be discussed with the development team via the [issues section at\ngithub](https://github.com/greenbone/pg-gvm/issues) first.\n\n### CMake formatting\n\nAll CMake files are formatted using [gersemi](https://github.com/BlankSpruce/gersemi).\nTo install gersemi on a Debian based system the following commands can be used:\n\n```sh\nsudo apt install pipx\npipx install gersemi\n```\n\nTo format all CMake files run the command:\n\n```sh\ngersemi -i cmake .\n```\n\n## License\n\nCopyright (C) 2025 [Greenbone AG](https://www.greenbone.net/)\n\nLicensed under the [GNU General Public License v3.0 or later](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenbone%2Fpg-gvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreenbone%2Fpg-gvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenbone%2Fpg-gvm/lists"}