Skip to content

Commit d8ffc29

Browse files
authored
feat: expose is_mariadb (#3)
1 parent dad187b commit d8ffc29

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/conn/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,11 @@ impl Conn {
374374
self.inner.version
375375
}
376376

377+
/// Returns whether the server is MariaDB.
378+
pub fn is_mariadb(&self) -> bool {
379+
self.inner.is_mariadb
380+
}
381+
377382
/// Returns connection options.
378383
pub fn opts(&self) -> &Opts {
379384
&self.inner.opts

0 commit comments

Comments
 (0)