Debian Codegraph @

src/migrate/error.rs

raw symbols SCIP
1 use craterust-analyzer cargo sqlx-core 0.8.3 crate/::errorrust-analyzer cargo sqlx-core 0.8.3 error/::{BoxDynErrorrust-analyzer cargo sqlx-core 0.8.3 error/BoxDynError#, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#};
2
3 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, thiserrorrust-analyzer cargo thiserror 2.0.20 crate/::Errorrust-analyzer cargo thiserror-impl 2.0.20 Error:)]
4 #[non_exhaustive]
5 pub enum MigrateErrorrust-analyzer cargo sqlx-core 0.8.3 migrate/error/MigrateError# {
6 #[errorrust-analyzer cargo thiserror-impl 2.0.20 error:("while executing migrations: {0}")]
7 Executerust-analyzer cargo sqlx-core 0.8.3 migrate/error/MigrateError#Execute#(#[from] Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#),
8
9 #[errorrust-analyzer cargo thiserror-impl 2.0.20 error:("while executing migration {1}: {0}")]
10 ExecuteMigrationrust-analyzer cargo sqlx-core 0.8.3 migrate/error/MigrateError#ExecuteMigration#(#[source] Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#, i64),
11
12 #[errorrust-analyzer cargo thiserror-impl 2.0.20 error:("while resolving migrations: {0}")]
13 Sourcerust-analyzer cargo sqlx-core 0.8.3 migrate/error/MigrateError#Source#(#[source] BoxDynErrorrust-analyzer cargo sqlx-core 0.8.3 error/BoxDynError#),
14
15 #[errorrust-analyzer cargo thiserror-impl 2.0.20 error:("migration {0} was previously applied but is missing in the resolved migrations")]
16 VersionMissingrust-analyzer cargo sqlx-core 0.8.3 migrate/error/MigrateError#VersionMissing#(i64),
17
18 #[errorrust-analyzer cargo thiserror-impl 2.0.20 error:("migration {0} was previously applied but has been modified")]
19 VersionMismatchrust-analyzer cargo sqlx-core 0.8.3 migrate/error/MigrateError#VersionMismatch#(i64),
20
21 #[errorrust-analyzer cargo thiserror-impl 2.0.20 error:("migration {0} is not present in the migration source")]
22 VersionNotPresentrust-analyzer cargo sqlx-core 0.8.3 migrate/error/MigrateError#VersionNotPresent#(i64),
23
24 #[errorrust-analyzer cargo thiserror-impl 2.0.20 error:("migration {0} is older than the latest applied migration {1}")]
25 VersionTooOldrust-analyzer cargo sqlx-core 0.8.3 migrate/error/MigrateError#VersionTooOld#(i64, i64),
26
27 #[errorrust-analyzer cargo thiserror-impl 2.0.20 error:("migration {0} is newer than the latest applied migration {1}")]
28 VersionTooNewrust-analyzer cargo sqlx-core 0.8.3 migrate/error/MigrateError#VersionTooNew#(i64, i64),
29
30 #[errorrust-analyzer cargo thiserror-impl 2.0.20 error:("database driver does not support force-dropping a database (Only PostgreSQL)")]
31 ForceNotSupportedrust-analyzer cargo sqlx-core 0.8.3 migrate/error/MigrateError#ForceNotSupported#,
32
33 #[deprecated = "migration types are now inferred"]
34 #[errorrust-analyzer cargo thiserror-impl 2.0.20 error:("cannot mix reversible migrations with simple migrations. All migrations should be reversible or simple migrations")]
35 InvalidMixReversibleAndSimplerust-analyzer cargo sqlx-core 0.8.3 migrate/error/MigrateError#InvalidMixReversibleAndSimple#,
36
37 // NOTE: this will only happen with a database that does not have transactional DDL (.e.g, MySQL or Oracle)
38 #[errorrust-analyzer cargo thiserror-impl 2.0.20 error:(
39 "migration {0} is partially applied; fix and remove row from `_sqlx_migrations` table"
40 )]
41 Dirtyrust-analyzer cargo sqlx-core 0.8.3 migrate/error/MigrateError#Dirty#(i64),
42 }