Skip to main content

Questions tagged [gocqlx]

The tag has no usage guidance.

gocqlx
1 vote
0 answers
40 views

Unable to Update Data in ScyllaDB

I'm encountering an issue while attempting to update data in ScyllaDB using Go. Below is the code snippet I'm using for updating a session record: func (q *Queries) EndSession(Sessionid string) error {...
Son Ngo's user avatar
  • 11
1 vote
1 answer
61 views

Can’t update UDT using gocqlx

Hi so I have a usecase in which a user can create a secondary index on any table by calling an API. And I’m recording these indexes in a common table using map<text, frozen> where indexes is a ...
Hammad Ul Haque's user avatar
1 vote
1 answer
300 views

How do I do a conditional upsert that preserves the value of a column?

I'm looking to mimic an upsert functionality but also add a conditional requirement that if the row doesn't already exist then insert all rows but if the row does exist, only update certain rows. I've ...
korum's user avatar
  • 170
1 vote
1 answer
179 views

How can I run the CQL query "(col1, col2) IN ((1,2), (3,4))" with GoCQLX?

Well, the title may be not quite informative, sorry. If I use qb.Select(...) .Where( qb.Eq("part_key_col1"), qb.Eq("part_key_col1"), qb.In("clust_key_col1")...
Alexander Dmitriev's user avatar
1 vote
1 answer
326 views

gocqlx Updatebuilder and get wrong result

first, my table design are follow: create table io ( qa text primary key, created_at text, messages list<frozen<message>>, reply boolean, resolve ...
Volz's user avatar
  • 21