From f2f77e5c6bd7254fa0f3fecf46c3d0790e13f1ba Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Wed, 15 May 2024 14:49:37 +0300 Subject: [PATCH] chore: add bun.SafeQuery --- bun.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bun.go b/bun.go index 8f71db8fc..e382c9056 100644 --- a/bun.go +++ b/bun.go @@ -22,6 +22,10 @@ type ( AfterScanRowHook = schema.AfterScanRowHook ) +func SafeQuery(query string, args ...interface{}) schema.QueryWithArgs { + return schema.SafeQuery(query, args) +} + type BeforeSelectHook interface { BeforeSelect(ctx context.Context, query *SelectQuery) error }