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 }