Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

SQL merkle state with postgres backend #167

Merged

Conversation

peterschwarz
Copy link
Contributor

@peterschwarz peterschwarz commented Jul 20, 2021

This PR adds an implementation of state that applies a Merkle-Radix tree using a PostgresSQL database as its back-end.

Continued development on the experimental feature described in RFC 10

This change adds a Backend implementation for Postgres.

Signed-off-by: Peter Schwarz <[email protected]>
This change implements the MigrationManager trait on the
PostgresBackend.

Signed-off-by: Peter Schwarz <[email protected]>
This change adds missing sqlite guards over SqliteBackend-specific
implementations.

Signed-off-by: Peter Schwarz <[email protected]>
This change implements all the same sets of traits and struct functions
as would be found for the SqliteBackend.

Signed-off-by: Peter Schwarz <[email protected]>
This change makes the run_postgres_test function part of the public API
when the feature "state-merkle-sql-postgres-tests" is enabled.

Signed-off-by: Peter Schwarz <[email protected]>
This change adds the same set of tests that are found for the
SQLite-backed SqlMerkleState.

Signed-off-by: Peter Schwarz <[email protected]>
@peterschwarz peterschwarz merged commit 8febec7 into hyperledger-archives:main Jul 21, 2021
@peterschwarz peterschwarz deleted the pschwarz-sql-merkle-postgres branch July 21, 2021 20:12
agunde406 pushed a commit to Cargill/transact that referenced this pull request Jan 25, 2022
…ple-logger-utc

Switch simple logger to use UTC timestamps
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants