summaryrefslogtreecommitdiff
path: root/vendor/github.com/uptrace/bun/bun.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-11-08 13:51:23 +0000
committerLibravatar GitHub <noreply@github.com>2024-11-08 13:51:23 +0000
commit29007b1b886e7455ece5aa6e4d477805209fad88 (patch)
tree21b11cbf12faf71d44d43c61a2d4916b7bd82b80 /vendor/github.com/uptrace/bun/bun.go
parentbump ncruces/go-sqlite3 to v0.20.2 (#3524) (diff)
downloadgotosocial-29007b1b886e7455ece5aa6e4d477805209fad88.tar.xz
[chore] update bun libraries to v1.2.5 (#3528)
* update bun libraries to v1.2.5 * pin old v1.29.0 of otel
Diffstat (limited to 'vendor/github.com/uptrace/bun/bun.go')
-rw-r--r--vendor/github.com/uptrace/bun/bun.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/vendor/github.com/uptrace/bun/bun.go b/vendor/github.com/uptrace/bun/bun.go
index 8f71db8fc..626f0bf4b 100644
--- a/vendor/github.com/uptrace/bun/bun.go
+++ b/vendor/github.com/uptrace/bun/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
}
@@ -70,7 +74,7 @@ type AfterDropTableHook interface {
AfterDropTable(ctx context.Context, query *DropTableQuery) error
}
-// SetLogger overwriters default Bun logger.
+// SetLogger overwrites default Bun logger.
func SetLogger(logger internal.Logging) {
internal.SetLogger(logger)
}