Delete everything except query builder

This commit is contained in:
2025-11-20 16:09:09 +01:00
parent d9ec9f889d
commit 84c58f45a3
47 changed files with 43 additions and 10582 deletions

View File

@@ -13,7 +13,7 @@ import (
"testing"
"time"
"github.com/gocql/gocql"
gocql "github.com/apache/cassandra-gocql-driver/v2"
"golang.org/x/sync/errgroup"
"gopkg.in/inf.v0"
@@ -98,7 +98,7 @@ func basicCreateAndPopulateKeyspace(t *testing.T, session gocqlx.Session, keyspa
err = session.ExecStmt(fmt.Sprintf(`CREATE TABLE IF NOT EXISTS %s.playlists (
id uuid,
title text,
album text,
album text,
artist text,
song_id uuid,
PRIMARY KEY (id, title, album, artist))`, keyspace))
@@ -752,8 +752,8 @@ func pagingEfficientFullTableScan(t *testing.T, session gocqlx.Session) {
// worker queries a token ranges generated by sequencer
worker := func() error {
const cql = `SELECT * FROM examples.paging_efficient_full_table_scan WHERE
token(user_id) >= :start AND
const cql = `SELECT * FROM examples.paging_efficient_full_table_scan WHERE
token(user_id) >= :start AND
token(user_id) < :end`
stmt, names, err := gocqlx.CompileNamedQueryString(cql)