Skip to content

Commit 55ee082

Browse files
committed
Support for unsafeWithPrepare
1 parent 1133ec4 commit 55ee082

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ function Postgres(a, b) {
280280
types: {},
281281
notify,
282282
unsafe,
283+
unsafeWithPrepare,
283284
withPrepare,
284285
noPrepare,
285286
array,
@@ -295,6 +296,10 @@ function Postgres(a, b) {
295296
return query({ raw: true, simple: !args, dynamic: true }, connection || getConnection(), xs, args || [])
296297
}
297298

299+
function unsafeWithPrepare(xs, args) {
300+
return query({ raw: true, simple: !args }, connection || getConnection(), xs, args || [])
301+
}
302+
298303
function withPrepare(xs) {
299304
return query({ overwriteNoPrepare: true }, connection || getConnection(), xs, Array.from(arguments).slice(1))
300305
}

0 commit comments

Comments
 (0)