Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
Lee Smet 2025-07-31 14:55:30 +02:00
parent 91b029befa
commit 1074e1ba19
Signed by untrusted user who does not match committer: lee
GPG Key ID: 72CBFB5FDA7FE025

View File

@ -76,6 +76,8 @@ pub enum Error {
FailedUpdate(usize),
/// We tried to query the existence of a table but it failed
TableExistenceQuery,
/// Transactions aren't supported
Transaction,
}
impl Postgres {
@ -334,7 +336,7 @@ where
fn begin_transaction(
&self,
) -> Result<Box<dyn super::Transaction<Error = Self::Error>>, super::Error<Self::Error>> {
todo!()
Err(Error::Transaction.into())
}
}
@ -356,6 +358,7 @@ impl core::fmt::Display for Error {
"update did not return the expected 1 modified row (got {amount})"
)),
Self::TableExistenceQuery => f.write_str("query to check if table exists failed"),
Self::Transaction => f.write_str("transactions aren't supported"),
}
}
}