mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
Add more tracing to store_sqlite
This commit is contained in:
@@ -82,6 +82,7 @@ pub struct SqliteCalendarStore {
|
||||
}
|
||||
|
||||
impl SqliteCalendarStore {
|
||||
#[instrument]
|
||||
async fn _get_calendar<'e, E: Executor<'e, Database = Sqlite>>(
|
||||
executor: E,
|
||||
principal: &str,
|
||||
@@ -101,6 +102,7 @@ impl SqliteCalendarStore {
|
||||
Ok(cal.into())
|
||||
}
|
||||
|
||||
#[instrument]
|
||||
async fn _get_calendars<'e, E: Executor<'e, Database = Sqlite>>(
|
||||
executor: E,
|
||||
principal: &str,
|
||||
@@ -118,6 +120,7 @@ impl SqliteCalendarStore {
|
||||
Ok(cals.into_iter().map(Calendar::from).collect())
|
||||
}
|
||||
|
||||
#[instrument]
|
||||
async fn _get_deleted_calendars<'e, E: Executor<'e, Database = Sqlite>>(
|
||||
executor: E,
|
||||
principal: &str,
|
||||
@@ -135,6 +138,7 @@ impl SqliteCalendarStore {
|
||||
Ok(cals.into_iter().map(Calendar::from).collect())
|
||||
}
|
||||
|
||||
#[instrument]
|
||||
async fn _insert_calendar<'e, E: Executor<'e, Database = Sqlite>>(
|
||||
executor: E,
|
||||
calendar: Calendar,
|
||||
@@ -163,6 +167,7 @@ impl SqliteCalendarStore {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[instrument]
|
||||
async fn _update_calendar<'e, E: Executor<'e, Database = Sqlite>>(
|
||||
executor: E,
|
||||
principal: String,
|
||||
@@ -222,6 +227,7 @@ impl SqliteCalendarStore {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[instrument]
|
||||
async fn _restore_calendar<'e, E: Executor<'e, Database = Sqlite>>(
|
||||
executor: E,
|
||||
principal: &str,
|
||||
@@ -238,6 +244,7 @@ impl SqliteCalendarStore {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[instrument]
|
||||
async fn _get_objects<'e, E: Executor<'e, Database = Sqlite>>(
|
||||
executor: E,
|
||||
principal: &str,
|
||||
@@ -256,6 +263,7 @@ impl SqliteCalendarStore {
|
||||
.collect()
|
||||
}
|
||||
|
||||
#[instrument]
|
||||
async fn _calendar_query<'e, E: Executor<'e, Database = Sqlite>>(
|
||||
executor: E,
|
||||
principal: &str,
|
||||
@@ -290,6 +298,7 @@ impl SqliteCalendarStore {
|
||||
.collect()
|
||||
}
|
||||
|
||||
#[instrument]
|
||||
async fn _get_object<'e, E: Executor<'e, Database = Sqlite>>(
|
||||
executor: E,
|
||||
principal: &str,
|
||||
@@ -419,6 +428,7 @@ impl SqliteCalendarStore {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[instrument]
|
||||
async fn _sync_changes<'a, A: Acquire<'a, Database = Sqlite>>(
|
||||
acquire: A,
|
||||
principal: &str,
|
||||
|
||||
Reference in New Issue
Block a user