libvirtualpg
2.0.0
|
VirtualPG is an open source library implementing a Virtual Table extension to SQLite allowing to establish a connection to an external PostgreSQL/PostGIS Table or View.
Such a Virtual Table can then be handled using the usual SQLite's onw SQL dialect (SELECT / INSERT / UPDATE / DELETE), more or less exactly as if it was a native Table.
Building and installing VirtualPG is straightforward:
./configure make make install
Linking VirtualPG to your own code is usually simple:
gcc my_program.c -o my_program -lvirtualpg -lsqlite3
On some systems you may have to provide a slightly more complex arrangement:
gcc -I/usr/local/include my_program.c -o my_program \ -L/usr/local/lib -lvirtualpg -lsqlite3
VirtualPG also provides pkg-config support, so you can also do:
gcc -I/usr/local/include my_program.c -o my_program `pkg-config --libs virtualpg`-lsqlite3
VirtualPG is licensed under the MPL tri-license terms: you are free to choose the best-fit license between:
Enjoy, and happy coding