mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-01 02:02:20 +00:00
* feat(rust): add litellm-db and litellm-db-testing workspace scaffolding Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(db-testing): apply the real Prisma migrations in a test and drop the sort mutation Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Yujong Lee <yujong@berri.ai> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
19 lines
595 B
Rust
19 lines
595 B
Rust
use std::{io, path::PathBuf};
|
|
|
|
#[derive(Debug, thiserror::Error)]
|
|
pub enum Error {
|
|
#[error("reading {path}")]
|
|
Read {
|
|
path: PathBuf,
|
|
#[source]
|
|
source: io::Error,
|
|
},
|
|
#[error("starting the Postgres container")]
|
|
Container(#[from] testcontainers_modules::testcontainers::TestcontainersError),
|
|
#[error("connecting to the Postgres container")]
|
|
Connect(#[from] sqlx::Error),
|
|
#[error("applying the Prisma migrations")]
|
|
Migrate(#[from] sqlx::migrate::MigrateError),
|
|
#[error("running cargo sqlx prepare")]
|
|
Prepare(#[source] io::Error),
|
|
}
|