Skip to content
forked from greenbone/pg-gvm

Greenbone Library for GVM helper functions in PostgreSQL

License

Notifications You must be signed in to change notification settings

jhelmold/pg-gvm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Greenbone Logo

Greenbone Library for ical functions

This library contains functionality for ical object manipulation.

Build and Installation

Prerequisites

  • GCC
  • cmake >= 3.0
  • pkg-config
  • libical >= 1.0.0
  • glib >= 2.42
  • PostgreSQL dev >= 9.6
  • libgvm-base >= 20.8

Install these packages using (on Debian GNU/Linux 'Buster' 10):

apt-get install gcc cmake pkg-config libical-dev libglib2.0-dev postgresql-server-dev-11

and build the gvm-libs as described in the README

Configure and Build

This extension can be configured, built and installed with the following commands:

cmake .
make && make install

Use the extension

To use the extension in a database create the extension using

CREATE EXTENSION "pg-gvm";

Test the extension

The tests are based on pgTAP, a unit test tool for PostgreSQL Databases.

Setup for tests

Install pgTAP cloning the repository

and follow the instructions in the setup documentation

Integration

To use pgTAP in a database use

CREATE EXTENSION IF NOT EXISTS pgtap;

as postgres user. To check if the extension exists use

\dx

Running the tests

The tests are located in the tests folder of this repository.

As postgres user run (replace MY_DATABASE with the real name of the database)

pg_prove -d MY_DATABASE tests/*.sql

About

Greenbone Library for GVM helper functions in PostgreSQL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 65.6%
  • CMake 19.6%
  • PLpgSQL 14.8%