refactor(workspace): enforce layered crate boundaries

This commit is contained in:
elky
2026-07-15 23:47:19 +08:00
parent a728c090a9
commit 8616fe6ee2
969 changed files with 40187 additions and 27240 deletions
@@ -0,0 +1,11 @@
use crate::DataLayerError;
pub(crate) trait SqlResultExt<T> {
fn map_sql_err(self) -> Result<T, DataLayerError>;
}
impl<T> SqlResultExt<T> for Result<T, sqlx::Error> {
fn map_sql_err(self) -> Result<T, DataLayerError> {
self.map_err(DataLayerError::sql)
}
}