Skip to content

Commit

Permalink
chore: add bun.SafeQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed May 15, 2024
1 parent b005dc2 commit f2f77e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bun.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit f2f77e5

Please sign in to comment.