summaryrefslogtreecommitdiff
path: root/vendor/github.com/uptrace/bun/db.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/uptrace/bun/db.go')
-rw-r--r--vendor/github.com/uptrace/bun/db.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/github.com/uptrace/bun/db.go b/vendor/github.com/uptrace/bun/db.go
index 47e654655..9b8e391dc 100644
--- a/vendor/github.com/uptrace/bun/db.go
+++ b/vendor/github.com/uptrace/bun/db.go
@@ -98,6 +98,10 @@ func (db *DB) NewDelete() *DeleteQuery {
return NewDeleteQuery(db)
}
+func (db *DB) NewRaw(query string, args ...interface{}) *RawQuery {
+ return NewRawQuery(db, query, args...)
+}
+
func (db *DB) NewCreateTable() *CreateTableQuery {
return NewCreateTableQuery(db)
}
@@ -342,6 +346,10 @@ func (c Conn) NewDelete() *DeleteQuery {
return NewDeleteQuery(c.db).Conn(c)
}
+func (c Conn) NewRaw(query string, args ...interface{}) *RawQuery {
+ return NewRawQuery(c.db, query, args...).Conn(c)
+}
+
func (c Conn) NewCreateTable() *CreateTableQuery {
return NewCreateTableQuery(c.db).Conn(c)
}
@@ -648,6 +656,10 @@ func (tx Tx) NewDelete() *DeleteQuery {
return NewDeleteQuery(tx.db).Conn(tx)
}
+func (tx Tx) NewRaw(query string, args ...interface{}) *RawQuery {
+ return NewRawQuery(tx.db, query, args...).Conn(tx)
+}
+
func (tx Tx) NewCreateTable() *CreateTableQuery {
return NewCreateTableQuery(tx.db).Conn(tx)
}