Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

PgDog plugins

Tutorial docs.rs Latest crate

PgDog plugin system is based around shared libraries loaded at runtime. The plugins currently can only be written in Rust. This is because PgDog passes Rust-specific data types to plugin functions, and those cannot be easily made C ABI-compatible.

This crate implements the bridge between PgDog and plugins, making sure data types can be safely passed through the FFI.

Automatic checks include:

  • Rust compiler version check
  • pgdog-plugin crate version check

This crate should be linked at compile time against your plugins.

Writing plugins

See crate documentation and pgdog tutorial for guides and examples. Example plugins are available in GitHub as well.

License

This library is distributed under the MIT license. See LICENSE for details.