pgdog-plugin 0.1.0

pgDog plugin interface and helpers
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# pgDog plugins

pgDog plugin system is based around shared libraries loaded at runtime.
These libraries can be written in any language as long as they are compiled to `.so` (or `.dylib` on Mac),
and can expose predefined C ABI functions.

This crate implements the bridge between the C ABI and pgDog, defines common C types and interface to use,
and exposes internal pgDog configuration.

This crate is a C (and Rust) library that should be linked at compile time against your plugins.

## Writing plugins

Examples of plugins written in C and Rust are available [here](https://github.com/levkk/pgdog/tree/main/examples).