gocqlx icon indicating copy to clipboard operation
gocqlx copied to clipboard

Documentation - Get is by Primary Key, not Partition Key?

Open steve-gray opened this issue 1 year ago • 2 comments

I believe some of the code comments is misleading. The SelectQueryContext operation is by partition key, however GetQueryContext is by the full primary key?

https://github.com/scylladb/gocqlx/blob/a112b4c31a2b97ab07420d7dd48a3fa455467e99/table/table.go#L100

image

Observationally it seems to work as a primary key search, not a partitioning key search - so maybe worth clarifying in the documentation?

steve-gray avatar Oct 11 '22 03:10 steve-gray