You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PgDog plugin system is based around shared libraries loaded at runtime. The plugins currently can only be
@@ -12,13 +13,13 @@ This crate implements the bridge between PgDog and plugins, making sure data typ
12
13
Automatic checks include:
13
14
14
15
- Rust compiler version check
15
-
-`pg_query` version check
16
+
-`pgdog-plugin` crate version check
16
17
17
18
This crate should be linked at compile time against your plugins.
18
19
19
20
## Writing plugins
20
21
21
-
See [documentation](https://docsrs.pgdog.dev/pgdog_plugin/index.html) for examples. Example plugins are [available in GitHub](https://github.com/pgdogdev/pgdog/tree/main/plugins) as well.
22
+
See [crate documentation](https://docsrs.pgdog.dev/pgdog_plugin/index.html)and [pgdog tutorial](https://docs.pgdog.dev/features/plugins/)for guides and examples. Example plugins are [available in GitHub](https://github.com/pgdogdev/pgdog/tree/main/plugins) as well.
Copy file name to clipboardExpand all lines: pgdog-plugin/src/lib.rs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@
14
14
//!
15
15
//! ```toml
16
16
//! [lib]
17
-
//! crate-type = ["rlib", "cdylib"]
17
+
//! crate-type = ["cdylib"]
18
18
//! ```
19
19
//!
20
20
//! ## Dependencies
@@ -26,7 +26,7 @@
26
26
//! following 2 requirements:
27
27
//!
28
28
//! 1. Plugins must be compiled with the **same version of the Rust compiler** as PgDog. This is automatically checked at runtime and plugins that don't do this are not loaded.
29
-
//! 2. Plugins must use the **same version of [`pg_query`] crate** as PgDog. This happens automatically when using `pg_query` structs re-exported by this crate.
29
+
//! 2. Plugins must use the **same version of `pgdog-plugin` crate** as PgDog. This is automatically checked at runtime and plugins that use incompatible versions are not loaded.
0 commit comments