相关条件的统计
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
251 B

  1. package db
  2. import "xorm.io/xorm"
  3. // QueryNativeString 查询原生sql
  4. func QueryNativeString(Db *xorm.Engine, sql string, args ...interface{}) ([]map[string]string, error) {
  5. results, err := Db.SQL(sql, args...).QueryString()
  6. return results, err
  7. }