-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(query-engine-wasm): exclude native-drivers only errors from `was…
…m32` target (#4616) * feat(query-engine-wasm): start excluding native-drivers only errors from wasm32 target * feat(query-engine-wasm): fix compilation on native targets * chore(query-engine-wasm): update comment * chore(query-engine-wasm): remove comment * chore(query-engine-wasm): fix clippy * chore(query-engine-wasm): apply "repr(transparent)" to "ConnectionInfo" on Wasm, to shove off a few bytes * chore(query-engine-wasm): remove comments * feat: address review comments * chore: clippy * chore: fix quaint test * fix(driver-adapters): fix condition that made Vitess fail
- Loading branch information
Showing
21 changed files
with
570 additions
and
425 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#[cfg(feature = "mssql")] | ||
use crate::connector::MssqlUrl; | ||
#[cfg(feature = "mysql")] | ||
use crate::connector::MysqlUrl; | ||
#[cfg(feature = "postgresql")] | ||
use crate::connector::PostgresUrl; | ||
|
||
/// General information about a SQL connection, provided by native Rust drivers. | ||
#[cfg(not(target_arch = "wasm32"))] | ||
#[derive(Debug, Clone)] | ||
pub enum NativeConnectionInfo { | ||
/// A PostgreSQL connection URL. | ||
#[cfg(feature = "postgresql")] | ||
Postgres(PostgresUrl), | ||
/// A MySQL connection URL. | ||
#[cfg(feature = "mysql")] | ||
Mysql(MysqlUrl), | ||
/// A SQL Server connection URL. | ||
#[cfg(feature = "mssql")] | ||
Mssql(MssqlUrl), | ||
/// A SQLite connection URL. | ||
#[cfg(feature = "sqlite")] | ||
Sqlite { | ||
/// The filesystem path of the SQLite database. | ||
file_path: String, | ||
/// The name the database is bound to - Always "main" | ||
db_name: String, | ||
}, | ||
#[cfg(feature = "sqlite")] | ||
InMemorySqlite { db_name: String }, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.