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/query_values.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/query_values.go')
-rw-r--r-- | vendor/github.com/uptrace/bun/query_values.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/uptrace/bun/query_values.go b/vendor/github.com/uptrace/bun/query_values.go index 323ac68ef..075db4d0d 100644 --- a/vendor/github.com/uptrace/bun/query_values.go +++ b/vendor/github.com/uptrace/bun/query_values.go @@ -34,6 +34,16 @@ func (q *ValuesQuery) Conn(db IConn) *ValuesQuery { return q } +// Value overwrites model value for the column. +func (q *ValuesQuery) Value(column string, expr string, args ...interface{}) *ValuesQuery { + if q.table == nil { + q.err = errNilModel + return q + } + q.addValue(q.table, column, expr, args) + return q +} + func (q *ValuesQuery) WithOrder() *ValuesQuery { q.withOrder = true return q |