bookclerk_plugin_sdk::database_adapter

Development These docs follow the development version and change with every merge.

Last updated View as Markdown

Database adapter helpers for third-party database plugin authors.

Audience

Rust authors building a database guest (kind = "database"). Use this module with the db feature enabled on bookclerk-plugin-sdk:

[dependencies]
bookclerk-plugin-sdk = { version = "0.1", features = ["db"] }

What to use

Need Entry point
Engine error → structured crate::PluginError plugin_error_from_engine, plugin_error_from_db_err
Typed SQL NULL for proxy row decode typed_null

First-party platform database guests use the internal bookclerk-db-guest crate for SeaORM session workers; those helpers are not part of the stable third-party author API.

Re-exports

Modules

  • errors: Engine error classification for SQLite and PostgreSQL guests.
  • migrate: Generic SQL helpers for database guests.

Generated from crates/bookclerk-plugin-sdk at main · View as Markdown