mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-23 07:35:03 +01:00
Introduce run_db_operation_sync and run_db_operation
These functions are designed as a single funnel to talk to the database, whether it is synchronous or asynchronous. This single funnel will log SQL queries and slow operations, providing a clear and unified debug message for the problematic query, so it can be optimized accordingly (for instance, missing indexes or unbound SQL requests).
This commit is contained in:
@@ -11,6 +11,7 @@ pub mod stmt;
|
||||
pub mod value;
|
||||
|
||||
pub use cdk_common::database::ConversionError;
|
||||
pub use common::{run_db_operation, run_db_operation_sync};
|
||||
|
||||
#[cfg(feature = "mint")]
|
||||
pub mod mint;
|
||||
|
||||
Reference in New Issue
Block a user