Skip to content

Commit

Permalink
fix: unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jacek-prisma committed Jan 16, 2025
1 parent e825ee9 commit 534f3c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions query-engine/core/src/compiler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::sync::Arc;
pub use expression::Expression;
use quaint::{
prelude::{ConnectionInfo, SqlFamily},
visitor::{Mssql, Mysql, Postgres, Sqlite},
visitor,
};
use schema::QuerySchema;
use sql_query_builder::{Context, SqlQueryBuilder};
Expand Down Expand Up @@ -36,11 +36,11 @@ pub fn compile(
let ctx = Context::new(connection_info, None);
let (graph, _serializer) = QueryGraphBuilder::new(query_schema).build(query)?;
let res = match connection_info.sql_family() {
SqlFamily::Postgres => translate(graph, &SqlQueryBuilder::<Postgres<'_>>::new(ctx)),
// disabled feature flag for now
// SqlFamily::Mysql => translate(graph, &SqlQueryBuilder::<Mysql<'_>>::new(ctx)),
// SqlFamily::Sqlite => translate(graph, &SqlQueryBuilder::<Sqlite<'_>>::new(ctx)),
// SqlFamily::Mssql => translate(graph, &SqlQueryBuilder::<Mssql<'_>>::new(ctx)),
SqlFamily::Postgres => translate(graph, &SqlQueryBuilder::<visitor::Postgres<'_>>::new(ctx)),
// feature flags are disabled for now
// SqlFamily::Mysql => translate(graph, &SqlQueryBuilder::<visitor::Mysql<'_>>::new(ctx)),
// SqlFamily::Sqlite => translate(graph, &SqlQueryBuilder::<visitor::Sqlite<'_>>::new(ctx)),
// SqlFamily::Mssql => translate(graph, &SqlQueryBuilder::<visitor::Mssql<'_>>::new(ctx)),
_ => unimplemented!(),
};

Expand Down

0 comments on commit 534f3c5

Please sign in to comment.