By the way, I am using gocql package - https://github.com/gocql/gocql
On Tuesday, April 10, 2018 at 9:39:23 PM UTC-7, Raju wrote:
>
> Hi,
>
> Assuming my query using an iterator looks like this. Is there any way to
> print the exact cql query that is finally executed on Cassandra side when
> iter.Scan() is called?
>
> My iter query is returning empty results, but when I manually search using
> the cql query in my database table in Cassandra, I am getting records
> returned. I have a feeling the query I am creating is somehow incorrect. I
> would like to debug
>
> Thanks
> Raju
>
>
> // list all tweets
> iter := session.Query(`SELECT id, text FROM tweet WHERE timeline = ?`,
> "me").Iter()
> for iter.Scan(&id, &text) {
> fmt.Println("Tweet:", id, text)
> }
> if err := iter.Close(); err != nil {
> log.Fatal(err)
> }
>
>
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.