We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21d9254 commit b2bf805Copy full SHA for b2bf805
src/domain/tracker/database/mod.rs
@@ -19,6 +19,12 @@ mod sqlite;
19
pub use mysql::MysqlConfig;
20
pub use sqlite::SqliteConfig;
21
22
+/// `SQLite` driver name constant
23
+pub const DRIVER_SQLITE: &str = "sqlite3";
24
+
25
+/// `MySQL` driver name constant
26
+pub const DRIVER_MYSQL: &str = "mysql";
27
28
/// Database configuration for Tracker
29
///
30
/// Supports multiple database backends. Currently implemented:
@@ -71,8 +77,8 @@ impl DatabaseConfig {
71
77
#[must_use]
72
78
pub fn driver_name(&self) -> &str {
73
79
match self {
74
- Self::Sqlite(..) => "sqlite3",
75
- Self::Mysql(..) => "mysql",
80
+ Self::Sqlite(..) => DRIVER_SQLITE,
81
+ Self::Mysql(..) => DRIVER_MYSQL,
76
82
}
83
84
0 commit comments