diff options
| author | 2021-09-08 20:22:24 +0100 | |
|---|---|---|
| committer | 2021-09-08 20:22:24 +0100 | |
| commit | 299801f299737364cdd3e5a526bd40df5c48ca93 (patch) | |
| tree | 2d0926cdcf3088781842a83fd8ed50593006ccc2 /vendor/github.com/uptrace/bun/db.go | |
| parent | rework media processing a little bit (#191) (diff) | |
| parent | update bun library -> v1.0.4 (diff) | |
| download | gotosocial-299801f299737364cdd3e5a526bd40df5c48ca93.tar.xz | |
Merge pull request #195 from NyaaaWhatsUpDoc/update/bun-library
update bun library -> v1.0.4
Diffstat (limited to 'vendor/github.com/uptrace/bun/db.go')
| -rw-r--r-- | vendor/github.com/uptrace/bun/db.go | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/vendor/github.com/uptrace/bun/db.go b/vendor/github.com/uptrace/bun/db.go index d08adefb5..8514ca93f 100644 --- a/vendor/github.com/uptrace/bun/db.go +++ b/vendor/github.com/uptrace/bun/db.go @@ -3,7 +3,6 @@ package bun import ( "context" "database/sql" - "errors" "fmt" "reflect" "strings" @@ -473,30 +472,9 @@ func (tx Tx) NewDropColumn() *DropColumnQuery { return NewDropColumnQuery(tx.db).Conn(tx) } -//------------------------------------------------------------------------------0 +//------------------------------------------------------------------------------ func (db *DB) makeQueryBytes() []byte { // TODO: make this configurable? return make([]byte, 0, 4096) } - -//------------------------------------------------------------------------------ - -type result struct { - r sql.Result - n int -} - -func (r result) RowsAffected() (int64, error) { - if r.r != nil { - return r.r.RowsAffected() - } - return int64(r.n), nil -} - -func (r result) LastInsertId() (int64, error) { - if r.r != nil { - return r.r.LastInsertId() - } - return 0, errors.New("LastInsertId is not available") -} |
