go-clickhouse icon indicating copy to clipboard operation
go-clickhouse copied to clipboard

About changing the API struct, e.g: muti-return with err.

Open atlas-comstock opened this issue 7 years ago • 2 comments

	iter := query.Iter(conn)
	if iter.Error() != nil {
		log.Panicln(iter.Error())
	}

I think it would be better that iter use muti-return val, which is golang API usually do.

	iter, err := query.Iter(conn)
	if err != nil {
		log.Panicln(err)
	}

atlas-comstock avatar Mar 02 '17 06:03 atlas-comstock