style: cargo fmt sweep
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1149,18 +1149,23 @@ impl ExifDao for SqliteExifDao {
|
||||
limit: i64,
|
||||
offset: i64,
|
||||
) -> Result<Vec<(i32, String)>, DbError> {
|
||||
trace_db_call(context, "query", "list_rel_paths_for_library_page", |_span| {
|
||||
use schema::image_exif::dsl::*;
|
||||
trace_db_call(
|
||||
context,
|
||||
"query",
|
||||
"list_rel_paths_for_library_page",
|
||||
|_span| {
|
||||
use schema::image_exif::dsl::*;
|
||||
|
||||
image_exif
|
||||
.filter(library_id.eq(library_id_val))
|
||||
.order(id.asc())
|
||||
.select((id, rel_path))
|
||||
.limit(limit)
|
||||
.offset(offset)
|
||||
.load::<(i32, String)>(self.connection.lock().unwrap().deref_mut())
|
||||
.map_err(|_| anyhow::anyhow!("Query error"))
|
||||
})
|
||||
image_exif
|
||||
.filter(library_id.eq(library_id_val))
|
||||
.order(id.asc())
|
||||
.select((id, rel_path))
|
||||
.limit(limit)
|
||||
.offset(offset)
|
||||
.load::<(i32, String)>(self.connection.lock().unwrap().deref_mut())
|
||||
.map_err(|_| anyhow::anyhow!("Query error"))
|
||||
},
|
||||
)
|
||||
.map_err(|_| DbError::new(DbErrorKind::QueryError))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user