v0.3.3-pre.007
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-store-postgres-lib/src/runtime.rs
|
||||
// version: 8
|
||||
// version: 9
|
||||
|
||||
const APPLICATION_NAME: &str = "ksp-store";
|
||||
const MAX_CONNECTION_URI_BYTES: usize = 4_096;
|
||||
@@ -390,6 +390,14 @@ impl PostgresBackend {
|
||||
return crate::record_raw_transaction_observation(&self.pool, &self.network, observation).await;
|
||||
}
|
||||
|
||||
/// Applies one policy-authorized atomic RAW transaction retention transition.
|
||||
pub async fn transition_raw_transaction_retention(
|
||||
&self,
|
||||
transition: ksp_store_api::RawTransactionRetentionTransition,
|
||||
) -> std::result::Result<ksp_store_api::RawRetentionWriteOutcome, crate::PostgresBackendError> {
|
||||
return crate::transition_raw_transaction_retention(&self.pool, &self.network, transition).await;
|
||||
}
|
||||
|
||||
/// Explicitly closes the pool and waits for all owned pooled objects to drain inside the supplied bound.
|
||||
pub async fn close(self, timeout: std::time::Duration) -> std::result::Result<(), crate::PostgresBackendError> {
|
||||
self.pool.close();
|
||||
|
||||
Reference in New Issue
Block a user