-
Notifications
You must be signed in to change notification settings - Fork 249
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): start excluding native-drivers only errors f…
…rom wasm32 target
- Loading branch information
Showing
17 changed files
with
581 additions
and
443 deletions.
There are no files selected for viewing
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
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.