mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 00: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_values.go
generated
vendored
13
vendor/github.com/uptrace/bun/query_values.go
generated
vendored
|
|
@ -14,6 +14,7 @@ type ValuesQuery struct {
|
|||
customValueQuery
|
||||
|
||||
withOrder bool
|
||||
comment string
|
||||
}
|
||||
|
||||
var (
|
||||
|
|
@ -64,6 +65,12 @@ func (q *ValuesQuery) WithOrder() *ValuesQuery {
|
|||
return q
|
||||
}
|
||||
|
||||
// Comment adds a comment to the query, wrapped by /* ... */.
|
||||
func (q *ValuesQuery) Comment(comment string) *ValuesQuery {
|
||||
q.comment = comment
|
||||
return q
|
||||
}
|
||||
|
||||
func (q *ValuesQuery) AppendNamedArg(fmter schema.Formatter, b []byte, name string) ([]byte, bool) {
|
||||
switch name {
|
||||
case "Columns":
|
||||
|
|
@ -121,6 +128,8 @@ func (q *ValuesQuery) AppendQuery(fmter schema.Formatter, b []byte) (_ []byte, e
|
|||
return nil, errNilModel
|
||||
}
|
||||
|
||||
b = appendComment(b, q.comment)
|
||||
|
||||
fmter = formatterWithModel(fmter, q)
|
||||
|
||||
if q.tableModel != nil {
|
||||
|
|
@ -145,7 +154,7 @@ func (q *ValuesQuery) appendQuery(
|
|||
fields []*schema.Field,
|
||||
) (_ []byte, err error) {
|
||||
b = append(b, "VALUES "...)
|
||||
if q.db.features.Has(feature.ValuesRow) {
|
||||
if q.db.HasFeature(feature.ValuesRow) {
|
||||
b = append(b, "ROW("...)
|
||||
} else {
|
||||
b = append(b, '(')
|
||||
|
|
@ -168,7 +177,7 @@ func (q *ValuesQuery) appendQuery(
|
|||
for i := 0; i < sliceLen; i++ {
|
||||
if i > 0 {
|
||||
b = append(b, "), "...)
|
||||
if q.db.features.Has(feature.ValuesRow) {
|
||||
if q.db.HasFeature(feature.ValuesRow) {
|
||||
b = append(b, "ROW("...)
|
||||
} else {
|
||||
b = append(b, '(')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue