|
123456789 |
- package db
-
- import "xorm.io/xorm"
-
- // QueryNativeString 查询原生sql
- func QueryNativeStringSess(sess *xorm.Session, sql string, args ...interface{}) ([]map[string]string, error) {
- results, err := sess.SQL(sql, args...).QueryString()
- return results, err
- }
|