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.

18 lines
275 B

package Test
import (
"dsTools/Utils/DbUtil"
"fmt"
"testing"
)
func TestTidb(t *testing.T) {
sql := "select * from t_base_class limit 10"
list, err := DbUtil.Engine.SQL(sql).Query().List()
if err != nil {
fmt.Println(err.Error())
} else {
fmt.Println(list)
}
}