Skip to content

Commit

Permalink
fix: Fix pglite proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanNabukhotnyi committed Sep 14, 2024
1 parent 417b0fa commit 6fbcf46
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drizzle-kit/src/cli/connections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,19 +122,8 @@ export const preparePostgresDB = async (

const proxy = async (params: ProxyParams) => {
const preparedParams = preparePGliteParams(params.params);
if (
params.method === 'values'
|| params.method === 'get'
|| params.method === 'all'
) {
const result = await pglite.query(params.sql, preparedParams, {
rowMode: params.mode,
parsers,
});
return result.rows;
}

const result = await pglite.query(params.sql, preparedParams, {
rowMode: params.mode,
parsers,
});
return result.rows;
Expand Down

0 comments on commit 6fbcf46

Please sign in to comment.