mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-29 22:36:14 -06:00
[chore]: Bump github.com/uptrace/bun from 1.2.6 to 1.2.8
Bumps [github.com/uptrace/bun](https://github.com/uptrace/bun) from 1.2.6 to 1.2.8. - [Release notes](https://github.com/uptrace/bun/releases) - [Changelog](https://github.com/uptrace/bun/blob/master/CHANGELOG.md) - [Commits](https://github.com/uptrace/bun/compare/v1.2.6...v1.2.8) --- updated-dependencies: - dependency-name: github.com/uptrace/bun dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
parent
b95498b8c2
commit
1d8bd30603
45 changed files with 611 additions and 121 deletions
13
vendor/github.com/uptrace/bun/query_raw.go
generated
vendored
13
vendor/github.com/uptrace/bun/query_raw.go
generated
vendored
|
|
@ -10,8 +10,9 @@ import (
|
|||
type RawQuery struct {
|
||||
baseQuery
|
||||
|
||||
query string
|
||||
args []interface{}
|
||||
query string
|
||||
args []interface{}
|
||||
comment string
|
||||
}
|
||||
|
||||
// Deprecated: Use NewRaw instead. When add it to IDB, it conflicts with the sql.Conn#Raw
|
||||
|
|
@ -56,6 +57,12 @@ func (q *RawQuery) Scan(ctx context.Context, dest ...interface{}) error {
|
|||
return err
|
||||
}
|
||||
|
||||
// Comment adds a comment to the query, wrapped by /* ... */.
|
||||
func (q *RawQuery) Comment(comment string) *RawQuery {
|
||||
q.comment = comment
|
||||
return q
|
||||
}
|
||||
|
||||
func (q *RawQuery) scanOrExec(
|
||||
ctx context.Context, dest []interface{}, hasDest bool,
|
||||
) (sql.Result, error) {
|
||||
|
|
@ -90,6 +97,8 @@ func (q *RawQuery) scanOrExec(
|
|||
}
|
||||
|
||||
func (q *RawQuery) AppendQuery(fmter schema.Formatter, b []byte) ([]byte, error) {
|
||||
b = appendComment(b, q.comment)
|
||||
|
||||
return fmter.AppendQuery(b, q.query, q.args...), nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue