pgdog-plugin

Crates.iopgdog-plugin
lib.rspgdog-plugin
version0.1.8
created_at2025-01-09 07:55:46.103468+00
updated_at2025-08-28 16:37:44.882923+00
descriptionPgDog plugin interface and helpers
homepagehttps://pgdog.dev
repositoryhttps://github.com/pgdogdev/pgdog
max_upload_size
id1509682
size87,646
Lev Kokotov (levkk)

documentation

README

PgDog plugins

Documentation 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
  • pg_query version check

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

Writing plugins

See documentation for examples. Example plugins are available in GitHub as well.

License

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

Commit count: 536

cargo fmt