I have a compiled library on the same PC with PostgreSQL that I use with #include <seal/seal.h> when writing some C++ code. I must use this library to work on some table values in my PostgresSQL database. Running a separate Client on the same PC with Postgres for the communication with the database is unfortunately not an option.
Is it possible to include and use the functions provided with #include <seal/seal.h> in a PostgreSQL function or a procedure?
I read something about using:
external "C" {
#include <seal/seal.h>
// do something with the seal functions here
}
But there are not so many examples out there and I didn't understand it. The section about C++ in the PostgreSQL documentation didn't make it clearer either.