# ResultSet

<div class="jsdoc-content"><header>
    
        <h2><span class="attribs"><span class="type-signature"></span></span>ResultSet<span class="signature">()</span><span class="type-signature"></span></h2>
        
            <div class="class-description"><p>Represents the result of a query.</p></div>
        
    
</header>


    
        

    
    </div>

## Constructor

<div class="jsdoc-content">
    

    
    <h4 class="name" id="ResultSet"><span class="type-signature"></span>new ResultSet<span class="signature">()</span><span class="type-signature"></span></h4>
    

    















<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.7.1/lib/types/result-set.ts#L50" target="_blank" rel="noopener">types/result-set.ts, line 50</a></p></div>




















    
    

    

    

    

    

    

    

    
        </div>

## Members

<div class="jsdoc-content">

        
            
<h4 class="name" id="columns"><span class="type-signature">(readonly) </span>columns<span class="type-signature"></span></h4>




<div class="description">
    <p>Gets the columns returned in this ResultSet.</p>
</div>







<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.7.1/lib/types/result-set.ts#L196" target="_blank" rel="noopener">types/result-set.ts, line 196</a></p></div>






        
            
<h4 class="name" id="info"><span class="type-signature">(readonly) </span>info<span class="type-signature"></span></h4>




<div class="description">
    <p>Information on the execution of a successful query.</p>
</div>







<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.7.1/lib/types/result-set.ts#L211" target="_blank" rel="noopener">types/result-set.ts, line 211</a></p></div>






        
            
<h4 class="name" id="nextPage"><span class="type-signature"></span>nextPage<span class="type-signature"></span></h4>




<div class="description">
    <p>Method used to manually fetch the next page of results.
This method is only exposed when using the <a href="Client.html#eachRow">Client#eachRow</a> method and there are more rows available in
following pages.</p>
</div>







<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.7.1/lib/types/result-set.ts#L96" target="_blank" rel="noopener">types/result-set.ts, line 96</a></p></div>






        
            
<h4 class="name" id="pageState"><span class="type-signature"></span>pageState<span class="type-signature"></span></h4>




<div class="description">
    <p>A string token representing the current page state of query. It can be used in the following executions to
continue paging and retrieve the remained of the result for the query.</p>
</div>







<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-default">Default Value:</dt>
    <dd class="tag-default"><ul class="dummy">
            <li>null</li>
        </ul></dd>
    

    
    
    

    

    

    
</dl><div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.7.1/lib/types/result-set.ts#L89" target="_blank" rel="noopener">types/result-set.ts, line 89</a></p></div>






        
            
<h4 class="name" id="rowLength"><span class="type-signature"></span>rowLength<span class="type-signature"></span></h4>




<div class="description">
    <p>Gets the row length of the result, regardless if the result has been buffered or not</p>
</div>







<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.7.1/lib/types/result-set.ts#L82" target="_blank" rel="noopener">types/result-set.ts, line 82</a></p></div>






        
            
<h4 class="name" id="rows"><span class="type-signature"></span>rows<span class="type-signature"></span></h4>




<div class="description">
    <p>Gets an array rows returned by the query.
When the result set represents a response from a write query, this property will be <code>undefined</code>.
When the read query result contains more rows than the fetch size (5000), this property will only contain the
first rows up to fetch size. To obtain all the rows, you can use the built-in async iterator that will retrieve the
following pages of results.</p>
</div>







<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.7.1/lib/types/result-set.ts#L77" target="_blank" rel="noopener">types/result-set.ts, line 77</a></p></div>






        
    

    
        </div>

## Methods

<div class="jsdoc-content">

        
            

    

    
    <h4 class="name" id="first"><span class="type-signature"></span>first<span class="signature">()</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    <p>Returns the first row or null if the result rows are empty.</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.7.1/lib/types/result-set.ts#L237" target="_blank" rel="noopener">types/result-set.ts, line 237</a></p></div>




















        
            

    

    
    <h4 class="name" id="isPaged"><span class="type-signature"></span>isPaged<span class="signature">()</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    <p>Determines whether there are more pages of results.
If so, the driver will initially retrieve and contain only the first page of results.
To obtain all the rows, use the <a href="module-types-ResultSet.html#@@asyncIterator"><code>AsyncIterator</code></a>.</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.7.1/lib/types/result-set.ts#L354" target="_blank" rel="noopener">types/result-set.ts, line 354</a></p></div>




















        
            

    

    
    <h4 class="name" id="wasApplied"><span class="type-signature"></span>wasApplied<span class="signature">()</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    <p>When this instance is the result of a conditional update query, it returns whether it was successful.
Otherwise, it returns <code>true</code>.</p>
<p>For consistency, this method always returns <code>true</code> for non-conditional queries (although there is
no reason to call the method in that case). This is also the case for conditional DDL statements
(CREATE KEYSPACE... IF NOT EXISTS, CREATE TABLE... IF NOT EXISTS), for which the server doesn't return
information whether it was applied or not.</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.7.1/lib/types/result-set.ts#L253" target="_blank" rel="noopener">types/result-set.ts, line 253</a></p></div></div>
