示例#1
0
文件: example.go 项目: tradia/gotable
func testScan(tc *table.Context) {
	// SCAN
	r, err := tc.Scan(1, []byte("row1"), true, 10)
	if err != nil {
		fmt.Printf("Scan failed: %s\n", err)
		return
	}

	fmt.Println("SCAN result:")
	printScanReply(r)
	if r.End {
		fmt.Println("SCAN finished!")
	} else {
		fmt.Println("SCAN has more records!")
	}
}