Skip to content

Commit

Permalink
chore: fix Wasm compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
jkomyno committed Oct 16, 2024
1 parent a4ec78d commit 31a91a5
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,14 @@ impl Connector for Js {

fn name(&self) -> &'static str {
match self.connection_info.sql_family() {
#[cfg(feature = "postgresql")]
SqlFamily::Postgres => "postgresql",
#[cfg(feature = "mysql")]
SqlFamily::Mysql => "mysql",
#[cfg(feature = "sqlite")]
SqlFamily::Sqlite => "sqlite",
#[cfg(not(target_arch = "wasm32"))]
_ => "js",
#[cfg(feature = "mssql")]
SqlFamily::Mssql => "mssql",
}
}

Expand Down

0 comments on commit 31a91a5

Please sign in to comment.