From db8fa340bc985564e788b30a8b21fefdf21d5283 Mon Sep 17 00:00:00 2001 From: Alexey Orlenko Date: Mon, 23 Dec 2024 16:25:37 +0100 Subject: [PATCH] use postgres --- query-engine/core/src/compiler/translate/query.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/query-engine/core/src/compiler/translate/query.rs b/query-engine/core/src/compiler/translate/query.rs index 37bcacb7bc1..f3ff82c9529 100644 --- a/query-engine/core/src/compiler/translate/query.rs +++ b/query-engine/core/src/compiler/translate/query.rs @@ -18,8 +18,11 @@ use crate::{ use super::TranslateResult; pub(crate) fn translate_query(query: Query) -> TranslateResult { - let connection_info = - ConnectionInfo::External(ExternalConnectionInfo::new(SqlFamily::Sqlite, "main".to_owned(), None)); + let connection_info = ConnectionInfo::External(ExternalConnectionInfo::new( + SqlFamily::Postgres, + "public".to_owned(), + None, + )); let ctx = Context::new(&connection_info, None); @@ -30,7 +33,7 @@ pub(crate) fn translate_query(query: Query) -> TranslateResult { } fn build_db_query<'a>(query: impl Into>) -> TranslateResult { - let (sql, params) = quaint::visitor::Sqlite::build(query)?; + let (sql, params) = quaint::visitor::Postgres::build(query)?; let params = params .into_iter() .map(convert::quaint_value_to_prisma_value)