Delete everything except query builder
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user