From f34706173aa0128e370a166289c2f09b3de646a4 Mon Sep 17 00:00:00 2001 From: Rasmus Porsager Date: Wed, 21 Jun 2023 22:50:39 +0200 Subject: [PATCH] Remove unused code from previous version --- src/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/index.js b/src/index.js index d9fc597c..a740bd2b 100644 --- a/src/index.js +++ b/src/index.js @@ -83,7 +83,7 @@ function Postgres(a, b) { return sql - function Sql(handler, instant) { + function Sql(handler) { handler.debug = options.debug Object.entries(options.types).reduce((acc, [name, type]) => { @@ -112,7 +112,6 @@ function Postgres(a, b) { : typeof strings === 'string' && !args.length ? new Identifier(options.transform.column.to ? options.transform.column.to(strings) : strings) : new Builder(strings, args) - instant && query instanceof Query && query.execute() return query } @@ -123,7 +122,6 @@ function Postgres(a, b) { ...options, simple: 'simple' in options ? options.simple : args.length === 0 }) - instant && query.execute() return query } @@ -141,7 +139,6 @@ function Postgres(a, b) { ...options, simple: 'simple' in options ? options.simple : args.length === 0 }) - instant && query.execute() return query } }