expose sql.DB to let orm operate on it (#1015)
* expose sql.DB to let orm operate on it * add missing RawDB methods * add NewSqlConnFromDB for cooperate with dtm
This commit is contained in:
@@ -43,6 +43,10 @@ func (c *mockedConn) QueryRowsPartial(v interface{}, query string, args ...inter
|
||||
panic("should not called")
|
||||
}
|
||||
|
||||
func (c *mockedConn) RawDB() (*sql.DB, error) {
|
||||
panic("should not called")
|
||||
}
|
||||
|
||||
func (c *mockedConn) Transact(func(session Session) error) error {
|
||||
panic("should not called")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user