| Crates.io | picodata-plugin |
| lib.rs | picodata-plugin |
| version | 25.3.4 |
| created_at | 2024-10-16 11:22:58.987464+00 |
| updated_at | 2025-09-10 21:55:45.060993+00 |
| description | Toolkit to build plugins for picodata.io DBMS |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1411668 |
| size | 258,942 |
Framework for building Picodata plugins in Rust.
[dependencies]
picodata-plugin = "25.1.1"
That is basically a "Hello, World" plugin. A full walkthrough on a plugin creation can be found here.
impl Service for PluginService {
type Config = Option<config::Config>;
fn on_config_change(
&mut self,
_ctx: &PicoContext,
_new_config: Self::Config,
_old_config: Self::Config,
) -> CallbackResult<()> {
Ok(())
}
fn on_start(&mut self, _context: &PicoContext, _config: Self::Config) -> CallbackResult<()> {
Ok(())
}
fn on_stop(&mut self, _context: &PicoContext) -> CallbackResult<()> {
Ok(())
}
fn on_leader_change(&mut self, _context: &PicoContext) -> CallbackResult<()> {
Ok(())
}
}
Example Plugin API Documentation
This project is licensed under the BSD-2-Clause license. See LICENSE for details.