Skip to content

Commit

Permalink
Fix GetQueryContext method comment (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfa-alex authored Mar 28, 2024
1 parent 8bda349 commit 624fc1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion table/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (t *Table) GetQuery(session gocqlx.Session, columns ...string) *gocqlx.Quer
return session.Query(t.Get(columns...))
}

// GetQueryContext returns query wrapped with context which gets by partition key.
// GetQueryContext returns query wrapped with context which gets by primary key.
func (t *Table) GetQueryContext(ctx context.Context, session gocqlx.Session, columns ...string) *gocqlx.Queryx {
return t.GetQuery(session, columns...).WithContext(ctx)
}
Expand Down

0 comments on commit 624fc1d

Please sign in to comment.