mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-24 03:26:21 -06:00
[chore]: Bump github.com/uptrace/bun from 1.2.9 to 1.2.10
Bumps [github.com/uptrace/bun](https://github.com/uptrace/bun) from 1.2.9 to 1.2.10. - [Release notes](https://github.com/uptrace/bun/releases) - [Changelog](https://github.com/uptrace/bun/blob/v1.2.10/CHANGELOG.md) - [Commits](https://github.com/uptrace/bun/compare/v1.2.9...v1.2.10) --- 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
c9de6c9a1e
commit
4133d256cf
29 changed files with 391 additions and 193 deletions
13
vendor/github.com/uptrace/bun/query_base.go
generated
vendored
13
vendor/github.com/uptrace/bun/query_base.go
generated
vendored
|
|
@ -1475,3 +1475,16 @@ func (q *orderLimitOffsetQuery) appendLimitOffset(fmter schema.Formatter, b []by
|
|||
|
||||
return b, nil
|
||||
}
|
||||
|
||||
func IsReadOnlyQuery(query Query) bool {
|
||||
sel, ok := query.(*SelectQuery)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
for _, el := range sel.with {
|
||||
if !IsReadOnlyQuery(el.query) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue