Skip to content

Commit

Permalink
chore: add comment on MysqlAsyncError
Browse files Browse the repository at this point in the history
  • Loading branch information
jkomyno committed Nov 15, 2023
1 parent 95a4e28 commit bacb635
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions quaint/src/connector/mysql/error.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
use crate::error::{DatabaseConstraint, Error, ErrorKind};
use thiserror::Error;

// This is a partial copy of the `mysql_async::Error` using only the enum variant used by Prisma.
// This avoids pulling in `mysql_async`, which would break Wasm compilation.
#[derive(Debug, Error)]
enum MysqlAsyncError {
#[error("Server error: `{}'", _0)]
Expand Down

0 comments on commit bacb635

Please sign in to comment.