refactor(sql): Allow multiple drivers at the same time (#1838)

* refactor(sql): Allow multiple drivers at the same time

* fmt

* remove default feature comment [skip ci]

* what was that doing there [skip ci]

* disable public methods for now
This commit is contained in:
Fabian-Lars
2024-10-01 14:47:08 +02:00
committed by GitHub
parent 68579934c9
commit 30bcf5dcc2
11 changed files with 615 additions and 393 deletions
+3 -12
View File
@@ -3,17 +3,8 @@
// SPDX-License-Identifier: MIT
#[cfg(feature = "mysql")]
mod mysql;
pub(crate) mod mysql;
#[cfg(feature = "postgres")]
mod postgres;
pub(crate) mod postgres;
#[cfg(feature = "sqlite")]
mod sqlite;
#[cfg(feature = "mysql")]
pub(crate) use mysql::to_json;
#[cfg(feature = "postgres")]
pub(crate) use postgres::to_json;
#[cfg(feature = "sqlite")]
pub(crate) use sqlite::to_json;
pub(crate) mod sqlite;