AccountsDb plugin for transactions -- part 4 -- persisting to the Db. 1. DB models for transactions 2. Rust models for transactions 3. Transform from SDK models to rust db models 4. Unit tests
This is an example implementing the AccountsDb plugin for PostgreSQL database.
Please see the src/accountsdb_plugin_postgres.rs
for the format of the plugin's configuration file.
To create the schema objects for the database, please use scripts/create_schema.sql
.
scripts/drop_schema.sql
can be used to tear down the schema objects.