Crates.io | solana-accountsdb-plugin-interface |
lib.rs | solana-accountsdb-plugin-interface |
version | 1.10.2 |
source | src |
created_at | 2021-10-21 02:52:29.418581 |
updated_at | 2022-03-14 17:54:19.830859 |
description | The Solana AccountsDb plugin interface. |
homepage | https://solana.com/ |
repository | https://github.com/solana-labs/solana |
max_upload_size | |
id | 468249 |
size | 10,446 |
This crate enables an AccountsDb plugin to be plugged into the Solana Validator runtime to take actions
at the time of each account update; for example, saving the account state to an external database. The plugin must implement the AccountsDbPlugin
trait. Please see the detail of the accountsdb_plugin_interface.rs
for the interface definition.
The plugin should produce a cdylib
dynamic library, which must expose a C
function _create_plugin()
that
instantiates the implementation of the interface.
The solana-accountsdb-plugin-postgres
crate provides an example of how to create a plugin which saves the accounts data into an
external PostgreSQL databases.
More information about Solana is available in the Solana documentation.
Still have questions? Ask us on Discord