diff options
| author | 2021-09-08 20:55:13 +0100 | |
|---|---|---|
| committer | 2021-09-08 20:55:13 +0100 | |
| commit | 151069cff48f34f2f837220a8cdba9377ff354aa (patch) | |
| tree | 6c8dd9e0c5b36e3acb2011f0ef69ac689c30000c /vendor/github.com/uptrace/bun/db.go | |
| parent | update oauth library --> v4.3.2-SSB (diff) | |
| parent | Merge pull request #195 from NyaaaWhatsUpDoc/update/bun-library (diff) | |
| download | gotosocial-151069cff48f34f2f837220a8cdba9377ff354aa.tar.xz | |
Merge remote-tracking branch 'upstream/main' into update/oauth-library
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
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") -} |
