prisma / tiberius

TDS 7.2+ (Microsoft SQL Server) driver for Rust
Apache License 2.0
311 stars 113 forks source link

How do I call ping ? #301

Open zhuxiujia opened 1 year ago

zhuxiujia commented 1 year ago

How do I call ping? Currently I'm using select 1, but I just want to call the linked ping function?

self.inner
                .as_mut().expect("MssqlConnection inner is none")
                .query("select 1", &[])
                .await
                .map_err(|e| Error::from(e.to_string()))?;