mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-16 01:43:01 -06:00
bumps uptrace/bun deps to v1.2.8 (#3698)
This commit is contained in:
parent
7b7fc528f1
commit
3617e27afa
35 changed files with 760 additions and 220 deletions
13
vendor/github.com/uptrace/bun/query_update.go
generated
vendored
13
vendor/github.com/uptrace/bun/query_update.go
generated
vendored
|
|
@ -32,8 +32,7 @@ func NewUpdateQuery(db *DB) *UpdateQuery {
|
|||
q := &UpdateQuery{
|
||||
whereBaseQuery: whereBaseQuery{
|
||||
baseQuery: baseQuery{
|
||||
db: db,
|
||||
conn: db.DB,
|
||||
db: db,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -65,12 +64,12 @@ func (q *UpdateQuery) Apply(fns ...func(*UpdateQuery) *UpdateQuery) *UpdateQuery
|
|||
return q
|
||||
}
|
||||
|
||||
func (q *UpdateQuery) With(name string, query schema.QueryAppender) *UpdateQuery {
|
||||
func (q *UpdateQuery) With(name string, query Query) *UpdateQuery {
|
||||
q.addWith(name, query, false)
|
||||
return q
|
||||
}
|
||||
|
||||
func (q *UpdateQuery) WithRecursive(name string, query schema.QueryAppender) *UpdateQuery {
|
||||
func (q *UpdateQuery) WithRecursive(name string, query Query) *UpdateQuery {
|
||||
q.addWith(name, query, true)
|
||||
return q
|
||||
}
|
||||
|
|
@ -207,7 +206,7 @@ func (q *UpdateQuery) WhereAllWithDeleted() *UpdateQuery {
|
|||
// ------------------------------------------------------------------------------
|
||||
func (q *UpdateQuery) Order(orders ...string) *UpdateQuery {
|
||||
if !q.hasFeature(feature.UpdateOrderLimit) {
|
||||
q.err = errors.New("bun: order is not supported for current dialect")
|
||||
q.err = feature.NewNotSupportError(feature.UpdateOrderLimit)
|
||||
return q
|
||||
}
|
||||
q.addOrder(orders...)
|
||||
|
|
@ -216,7 +215,7 @@ func (q *UpdateQuery) Order(orders ...string) *UpdateQuery {
|
|||
|
||||
func (q *UpdateQuery) OrderExpr(query string, args ...interface{}) *UpdateQuery {
|
||||
if !q.hasFeature(feature.UpdateOrderLimit) {
|
||||
q.err = errors.New("bun: order is not supported for current dialect")
|
||||
q.err = feature.NewNotSupportError(feature.UpdateOrderLimit)
|
||||
return q
|
||||
}
|
||||
q.addOrderExpr(query, args...)
|
||||
|
|
@ -225,7 +224,7 @@ func (q *UpdateQuery) OrderExpr(query string, args ...interface{}) *UpdateQuery
|
|||
|
||||
func (q *UpdateQuery) Limit(n int) *UpdateQuery {
|
||||
if !q.hasFeature(feature.UpdateOrderLimit) {
|
||||
q.err = errors.New("bun: limit is not supported for current dialect")
|
||||
q.err = feature.NewNotSupportError(feature.UpdateOrderLimit)
|
||||
return q
|
||||
}
|
||||
q.setLimit(n)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue