Skip to content

Commit

Permalink
changes: impl From<&Auth> for DatabaseType
Browse files Browse the repository at this point in the history
  • Loading branch information
0nSystem committed Apr 28, 2024
1 parent 633ce4e commit fafdd2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions canyon_connection/src/canyon_database_connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@ pub enum DatabaseType {
impl From<&Auth> for DatabaseType {
fn from(value: &Auth) -> Self {
match value {
#[cfg(feature = "postgres")]
crate::datasources::Auth::Postgres(_) => DatabaseType::PostgreSql,
#[cfg(feature = "mssql")]
crate::datasources::Auth::SqlServer(_) => DatabaseType::SqlServer,

Check failure on line 34 in canyon_connection/src/canyon_database_connector.rs

View workflow job for this annotation

GitHub Actions / Verify code formatting

Diff in /home/runner/work/Canyon-SQL/Canyon-SQL/canyon_connection/src/canyon_database_connector.rs
#[cfg(feature = "mysql")]
crate::datasources::Auth::MySQL(_) => DatabaseType::MySQL,
_ => panic!("Error not features selected")

Check warning on line 37 in canyon_connection/src/canyon_database_connector.rs

View workflow job for this annotation

GitHub Actions / Check intra-doc links (canyon_crud)

unreachable pattern

Check failure on line 37 in canyon_connection/src/canyon_database_connector.rs

View workflow job for this annotation

GitHub Actions / Lint with Clippy

unreachable pattern

Check warning on line 37 in canyon_connection/src/canyon_database_connector.rs

View workflow job for this annotation

GitHub Actions / Check intra-doc links (canyon_macros)

unreachable pattern

Check warning on line 37 in canyon_connection/src/canyon_database_connector.rs

View workflow job for this annotation

GitHub Actions / Check intra-doc links (canyon_migrations)

unreachable pattern
}
}
}
Expand Down

0 comments on commit fafdd2f

Please sign in to comment.