31 stable releases

1.10.2 Mar 14, 2022
1.10.0 Mar 3, 2022
1.9.9 Feb 23, 2022
1.9.5 Jan 22, 2022
1.8.2 Oct 27, 2021

#6 in #accountsdb

Download history 162/week @ 2023-11-06 117/week @ 2023-11-13 151/week @ 2023-11-20 154/week @ 2023-11-27 112/week @ 2023-12-04 88/week @ 2023-12-11 154/week @ 2023-12-18 163/week @ 2023-12-25 103/week @ 2024-01-01 113/week @ 2024-01-08 133/week @ 2024-01-15 191/week @ 2024-01-22 119/week @ 2024-01-29 99/week @ 2024-02-05 195/week @ 2024-02-12 689/week @ 2024-02-19

1,103 downloads per month
Used in 4 crates (2 directly)

Apache-2.0

1MB
22K SLoC

Solana

Solana AccountsDb Plugin Interface

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

Dependencies

~35–52MB
~886K SLoC