package dbquery
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func Test_Chain(t *testing.T) {
|
|
Connect("127.0.0.1", "root", "123456", "test1_tetele_com", "3306")
|
|
|
|
ret, err := new(Query).Db("test1_tetele_com").Table("ttl_user").Title("id,username").WhereOr("id =?").WhereOr("id = ?").Value(2).Value(4).Value(4).PageSize(4).Select()
|
|
|
|
t.Log(len(ret))
|
|
t.Log(ret)
|
|
t.Log(err)
|
|
}
|