mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-15 12:03:00 -06:00
[chore] Update bun and sqlite dependencies (#478)
* update bun + sqlite versions * step bun to v1.1.3
This commit is contained in:
parent
8d34d5af3c
commit
88979b35d4
246 changed files with 409690 additions and 148967 deletions
11
vendor/github.com/uptrace/bun/model_table_slice.go
generated
vendored
11
vendor/github.com/uptrace/bun/model_table_slice.go
generated
vendored
|
|
@ -50,15 +50,6 @@ func (m *sliceTableModel) join(name string) *relationJoin {
|
|||
return m._join(m.slice, name)
|
||||
}
|
||||
|
||||
func (m *sliceTableModel) SetCap(cap int) {
|
||||
if cap > 100 {
|
||||
cap = 100
|
||||
}
|
||||
if m.slice.Cap() == 0 {
|
||||
m.slice.Set(reflect.MakeSlice(m.slice.Type(), 0, cap))
|
||||
}
|
||||
}
|
||||
|
||||
func (m *sliceTableModel) ScanRows(ctx context.Context, rows *sql.Rows) (int, error) {
|
||||
columns, err := rows.Columns()
|
||||
if err != nil {
|
||||
|
|
@ -94,7 +85,7 @@ func (m *sliceTableModel) ScanRows(ctx context.Context, rows *sql.Rows) (int, er
|
|||
var _ schema.BeforeAppendModelHook = (*sliceTableModel)(nil)
|
||||
|
||||
func (m *sliceTableModel) BeforeAppendModel(ctx context.Context, query Query) error {
|
||||
if !m.table.HasBeforeAppendModelHook() {
|
||||
if !m.table.HasBeforeAppendModelHook() || !m.slice.IsValid() {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue