Db working & Migrations
This commit is contained in:
parent
9d8fb730ba
commit
1abdb7f133
7 changed files with 65 additions and 35 deletions
8
db/src/error.rs
Normal file
8
db/src/error.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#[non_exhaustive]
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum Error {
|
||||
#[error("Database Implementation Error: {0}")]
|
||||
Backend(#[from] sqlx::Error),
|
||||
}
|
||||
|
||||
pub type Result<T> = std::result::Result<T, Error>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue