Skip to content

Commit

Permalink
fix: comment out non pg variants for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jacek-prisma committed Jan 16, 2025
1 parent f206d86 commit e825ee9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions query-engine/core/src/compiler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ pub fn compile(
let (graph, _serializer) = QueryGraphBuilder::new(query_schema).build(query)?;
let res = match connection_info.sql_family() {
SqlFamily::Postgres => translate(graph, &SqlQueryBuilder::<Postgres<'_>>::new(ctx)),
SqlFamily::Mysql => translate(graph, &SqlQueryBuilder::<Mysql<'_>>::new(ctx)),
SqlFamily::Sqlite => translate(graph, &SqlQueryBuilder::<Sqlite<'_>>::new(ctx)),
SqlFamily::Mssql => translate(graph, &SqlQueryBuilder::<Mssql<'_>>::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)),
_ => unimplemented!(),
};

Ok(res.map_err(CompileError::TranslateError)?)
Expand Down

0 comments on commit e825ee9

Please sign in to comment.