From bacb635367bb994939c9cdcf530033d334a3224b Mon Sep 17 00:00:00 2001 From: jkomyno Date: Wed, 15 Nov 2023 17:19:27 +0100 Subject: [PATCH] chore: add comment on MysqlAsyncError --- quaint/src/connector/mysql/error.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/quaint/src/connector/mysql/error.rs b/quaint/src/connector/mysql/error.rs index 615f0c69dda4..7b4813bf0223 100644 --- a/quaint/src/connector/mysql/error.rs +++ b/quaint/src/connector/mysql/error.rs @@ -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)]