mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-20 11:31:47 +08:00
8d72e4dc29
#### PR Dependency Tree * **PR #15197** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a new import pipeline with “plan then commit” batch handling for Markdown, Notion HTML, Obsidian, and Bear backups. * Enabled native import sessions with progress, cancellation, and batch-by-batch committing (including assets, folders, icons, and tags). * Added web preflight limits for ZIP and multi-file imports. * **Bug Fixes** * Improved import error/warning reporting and continued processing when some items fail. * Strengthened snapshot-based file/directory picking to preserve paths. * **Chores** * Updated project packaging/configuration for the new import workflow. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
20 lines
525 B
Rust
20 lines
525 B
Rust
use affine_doc_loader::ParseError;
|
|
|
|
pub type Result<T> = std::result::Result<T, Error>;
|
|
|
|
#[derive(Debug, thiserror::Error)]
|
|
pub enum Error {
|
|
#[error("Sqlite Error: {0}")]
|
|
SqlxError(#[from] sqlx::Error),
|
|
#[error("Migrate Error: {0}")]
|
|
MigrateError(#[from] sqlx::migrate::MigrateError),
|
|
#[error("Connection in progress")]
|
|
ConnectionInProgress,
|
|
#[error("Invalid operation")]
|
|
InvalidOperation,
|
|
#[error("Serialization Error: {0}")]
|
|
Serialization(String),
|
|
#[error(transparent)]
|
|
Parse(#[from] ParseError),
|
|
}
|