|
vttp
An HTTP backed Virtual Table extension for SQLite
|
An HTTP backed virtual table for SQLite.
| OS | Arch | Tested |
|---|---|---|
| Linux | x64 | ✅ |
| Linux | arm64 | ❌ |
| macOS | x64 | ❌ |
| macOS | arm64 | ❌ |
| Windows | x64 | ❌ |
| Windows | arm64 | ❌ |
To build using the Makefile, you need the following libraries installed onto your system lib:
To install yajl and libcurl Ubuntu, for example:
yyjson isn't available on apt, so we have to build from source:
Then cd back into the root and run to build the extension file libvttp.so:
And that's it!
To install / uninstall the VTTP API header vapi.h from your usr local lib:
To run the test script, make sure you have the binary built at the project root. Then you can run the npm script:
The majority of the code is under src/lib, where a select number of functions are exposed to the extension vttp.c file via the vapi.h header.
If you've installed the API via the make install command, you can use the helper functions in standalone code by compiling with the -lvapi flag. To compile the queue printer example script:
This project uses Doxygen for code documentation and uses Docusaurus for the tutorial docs.