|
|
- package tencentdb
-
- import (
- "testing"
- )
-
- func Test_Chain(t *testing.T) {
- ConnectSlaver("106.52.13.101", "yueheng_slaver", "yhslave^%*345Sr", "shop_test", "13306")
-
- for i := 0; i < 10000; i++ {
- t.Log("i:", i)
- ret, err := NewQuery().Db("shop_test").Table("ttl_order_product").Alias("op").
- Join([]string{"ttl_product as p", "op.product_id=p.id"}).
- Title("op.id,op.order_price,p.thumb").WhereOr("op.id =?").WhereOr("op.id = ?").Value(63).Value(64).Debug(true).Select()
-
- t.Log(len(ret))
- // t.Log(ret)
- t.Log(err)
- }
-
- }
|