# Global Functions and Constants

<div class="jsdoc-content"><header>
    
        <h2></h2>
        
    
</header>


    
        

        





        
    
    

    

    

    

    

    

    

    
        </div>

## Members

<div class="jsdoc-content">

        
            
<h4 class="name" id="Integer"><span class="type-signature">(constant) </span>Integer<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.6.1/lib/encoder.js#L11" target="_blank" rel="noopener">encoder.js, line 11</a></p></div>
<div class="admonition warning"><p class="admonition-title">Deprecated</p><p>Integer is deprecated. See \`./types/integer.js\`</p></div>






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




<div class="description">
    <p>Contains the methods for reading and writing vints into binary format.
Exposes only 2 internal methods, the rest are hidden.</p>
</div>







<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L1011" target="_blank" rel="noopener">utils.js, line 1011</a></p></div>






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




<div class="description">
    <p>Core connections per host for protocol versions 1 and 2</p>
</div>







<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/client-options.js#L401" target="_blank" rel="noopener">client-options.js, line 401</a></p></div>






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




<div class="description">
    <p>Core connections per host for protocol version 3 and above</p>
</div>







<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/client-options.js#L408" target="_blank" rel="noopener">client-options.js, line 408</a></p></div>






        
            
<h4 class="name" id="emptyArray"><span class="type-signature">(constant) </span>emptyArray<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.6.1/lib/utils.js#L1278" target="_blank" rel="noopener">utils.js, line 1278</a></p></div>






        
            
<h4 class="name" id="emptyObject"><span class="type-signature">(constant) </span>emptyObject<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.6.1/lib/utils.js#L1280" target="_blank" rel="noopener">utils.js, line 1280</a></p></div>






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




<div class="description">
    <p>FinalizationRegistry that ensures the Rust logging callback is unregistered
when a Client instance is garbage-collected without being explicitly shut down.</p>
<p>While in general FinalizationRegistry usage is discouraged, we use it here
to avoid blocking the client from being cleaned up, once it's no longer used by the user,
and also clean up all the resources in the process.
This justifies using finalization registry, despite heavy warnings against it in the documentation.</p>
<p>To understand more, check the JS documentation.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry</p>
</div>







<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/client.ts#L66" target="_blank" rel="noopener">client.ts, line 66</a></p></div>






        
            
<h4 class="name" id="maxInt"><span class="type-signature">(constant) </span>maxInt<span class="type-signature"> :number</span></h4>




<div class="description">
    <p>Max int that can be accurately represented with 64-bit Number (2^53)</p>
</div>



    <h5>Type:</h5>
    <ul>
        <li>
            
<span class="param-type">number</span>


        </li>
    </ul>





<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L16" target="_blank" rel="noopener">utils.js, line 16</a></p></div>






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




<div class="description">
    <p>Default maxRequestsPerConnection value for protocol v1 and v2</p>
</div>







<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/client-options.js#L415" target="_blank" rel="noopener">client-options.js, line 415</a></p></div>






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




<div class="description">
    <p>Default maxRequestsPerConnection value for protocol v3+</p>
</div>







<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/client-options.js#L418" target="_blank" rel="noopener">client-options.js, line 418</a></p></div>






        
    

    
        </div>

## Methods

<div class="jsdoc-content">

        
            

    

    
    <h4 class="name" id="adaptNamedParamsPrepared"><span class="type-signature"></span>adaptNamedParamsPrepared<span class="signature">(params, prepared)</span><span class="type-signature"> &rarr; {Array&lt;any>}</span></h4>
    

    



<div class="description">
    <p>Adapts the parameters based on the prepared metadata.
This function assumes params are passed as an associative array (Object),
and it adapts the object into an array with the same order as bound parameters in the prepared statement.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>params</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>prepared</code></td>
            

            <td class="type">
            
                
<span class="param-type">PreparedInfo</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L313" target="_blank" rel="noopener">utils.js, line 313</a></p></div>













<h5>Throws:</h5>

        

<dl>
    <dt>
        <div class="param-desc">
        <p>In case a parameter with a specific name is not defined.</p>
        </div>
    </dt>
    <dd></dd>
    <dt>
        <dl>
            <dt>
                Type
            </dt>
            <dd>
                
<span class="param-type">Error</span>


            </dd>
        </dl>
    </dt>
    <dd></dd>
</dl>


    


<h5>Returns:</h5>

        
<div class="param-desc">
    <p>Returns an array of parameters.</p>
</div>



<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Array&lt;any></span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="adaptNamedParamsWithHints"><span class="type-signature"></span>adaptNamedParamsWithHints<span class="signature">(params, execOptions)</span><span class="type-signature"> &rarr; {Object}</span></h4>
    

    



<div class="description">
    <p>Adapts the associative-array of parameters and hints for simple statements
into Arrays based on the (arbitrary) position of the keys.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>params</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array&lt;any></span>
|

<span class="param-type">Object</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>execOptions</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="ExecutionOptions.html">ExecutionOptions</a></span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L335" target="_blank" rel="noopener">utils.js, line 335</a></p></div>















<h5>Returns:</h5>

        
<div class="param-desc">
    <p>Returns an array of
parameters and the keys as an associative array.</p>
</div>



<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Object</span>


    </dd>
</dl>

    





        
            

    

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

    



<div class="description">
    <p>Ensure the value is one of the accepted numeric types, and convert them to BigInt.</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/new-utils.ts#L41" target="_blank" rel="noopener">new-utils.ts, line 41</a></p></div>




















        
            

    

    
    <h4 class="name" id="arrayIterator"><span class="type-signature"></span>arrayIterator<span class="signature">(arr)</span><span class="type-signature"> &rarr; {Iterator}</span></h4>
    

    



<div class="description">
    <p>Uses the iterator protocol to go through the items of the Array</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>arr</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array&lt;any></span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L223" target="_blank" rel="noopener">utils.js, line 223</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Iterator</span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="asDouble"><span class="type-signature"></span>asDouble<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.6.1/lib/datastax/graph/wrappers.js#L15" target="_blank" rel="noopener">datastax/graph/wrappers.js, line 15</a></p></div>
<div class="admonition warning"><p class="admonition-title">Deprecated</p><p>Not supported by the driver. Usage will throw an error.</p></div>




















        
            

    

    
    <h4 class="name" id="asFloat"><span class="type-signature"></span>asFloat<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.6.1/lib/datastax/graph/wrappers.js#L22" target="_blank" rel="noopener">datastax/graph/wrappers.js, line 22</a></p></div>
<div class="admonition warning"><p class="admonition-title">Deprecated</p><p>Not supported by the driver. Usage will throw an error.</p></div>




















        
            

    

    
    <h4 class="name" id="asInt"><span class="type-signature"></span>asInt<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.6.1/lib/datastax/graph/wrappers.js#L8" target="_blank" rel="noopener">datastax/graph/wrappers.js, line 8</a></p></div>
<div class="admonition warning"><p class="admonition-title">Deprecated</p><p>Not supported by the driver. Usage will throw an error.</p></div>




















        
            

    

    
    <h4 class="name" id="asTimestamp"><span class="type-signature"></span>asTimestamp<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.6.1/lib/datastax/graph/wrappers.js#L29" target="_blank" rel="noopener">datastax/graph/wrappers.js, line 29</a></p></div>
<div class="admonition warning"><p class="admonition-title">Deprecated</p><p>Not supported by the driver. Usage will throw an error.</p></div>




















        
            

    

    
    <h4 class="name" id="asUdt"><span class="type-signature"></span>asUdt<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.6.1/lib/datastax/graph/wrappers.js#L36" target="_blank" rel="noopener">datastax/graph/wrappers.js, line 36</a></p></div>
<div class="admonition warning"><p class="admonition-title">Deprecated</p><p>Not supported by the driver. Usage will throw an error.</p></div>




















        
            

    

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

    



<div class="description">
    <p>Converts from bigint provided by napi into Long type.
BigInt is the way napi handles values too big for js Number type,
while Long is the legacy way the code handles 64-bit integers.</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/new-utils.ts#L27" target="_blank" rel="noopener">new-utils.ts, line 27</a></p></div>




















        
            

    

    
    <h4 class="name" id="binarySearch"><span class="type-signature"></span>binarySearch<span class="signature">(arr, key, compareFunc)</span><span class="type-signature"> &rarr; {number}</span></h4>
    

    



<div class="description">
    <p>Searches the specified Array for the provided key using the binary
search algorithm.  The Array must be sorted.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>arr</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array&lt;any></span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>key</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>compareFunc</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L251" target="_blank" rel="noopener">utils.js, line 251</a></p></div>















<h5>Returns:</h5>

        
<div class="param-desc">
    <p>The position of the key in the Array, if it is found.
If it is not found, it returns a negative number which is the bitwise complement of the index of the first element that is larger than key.</p>
</div>



<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">number</span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="callbackOnce"><span class="type-signature"></span>callbackOnce<span class="signature">(callback)</span><span class="type-signature"> &rarr; {function}</span></h4>
    

    











    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>callback</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L40" target="_blank" rel="noopener">utils.js, line 40</a></p></div>















<h5>Returns:</h5>

        
<div class="param-desc">
    <p>Returns a wrapper function that invokes the underlying callback only once.</p>
</div>



<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">function</span>


    </dd>
</dl>

    





        
            

    

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

    



<div class="description">
    <p>Convert rust ComplexType into type representation used in the driver encoder</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/types/cql-utils.ts#L113" target="_blank" rel="noopener">types/cql-utils.ts, line 113</a></p></div>




















        
            

    

    
    <h4 class="name" id="convertTlsVersion"><span class="type-signature"></span>convertTlsVersion<span class="signature">(value)</span><span class="type-signature"> &rarr; {rust.TlsVersion}</span></h4>
    

    



<div class="description">
    <p>According to the TS type definition, SecureVersion (the value we are handling here),
can be one of the following:
type SecureVersion = &quot;TLSv1.3&quot; | &quot;TLSv1.2&quot; | &quot;TLSv1.1&quot; | &quot;TLSv1&quot;;</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>value</code></td>
            

            <td class="type">
            
                
<span class="param-type">'TLSv1.3'</span>
|

<span class="param-type">'TLSv1.2'</span>
|

<span class="param-type">'TLSv1.1'</span>
|

<span class="param-type">'TLSv1'</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/client-options.js#L788" target="_blank" rel="noopener">client-options.js, line 788</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">rust.TlsVersion</span>


    </dd>
</dl>

    





        
            

    

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

    



<div class="description">
    <p>Creates a copy of a buffer</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L52" target="_blank" rel="noopener">utils.js, line 52</a></p></div>




















        
            

    

    
    <h4 class="name" id="deepExtend"><span class="type-signature"></span>deepExtend<span class="signature">(target)</span><span class="type-signature"> &rarr; {Object}</span></h4>
    

    



<div class="description">
    <p>Extends the target by the most inner props of sources</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>target</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L159" target="_blank" rel="noopener">utils.js, line 159</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Object</span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="defaultOptions"><span class="type-signature"></span>defaultOptions<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="globals.html#ClientOptions">ClientOptions</a>}</span></h4>
    

    















<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/client-options.js#L427" target="_blank" rel="noopener">client-options.js, line 427</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="globals.html#ClientOptions">ClientOptions</a></span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="defaultPromiseFactory"><span class="type-signature"></span>defaultPromiseFactory<span class="signature">(handler)</span><span class="type-signature"> &rarr; {Promise}</span></h4>
    

    











    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>handler</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L423" target="_blank" rel="noopener">utils.js, line 423</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise</span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="delay"><span class="type-signature"></span>delay<span class="signature">(ms)</span><span class="type-signature"> &rarr; {Promise&lt;void>}</span></h4>
    

    



<div class="description">
    <p>Creates a non-clearable timer that resolves the promise once elapses.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>ms</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/promise-utils.js#L9" target="_blank" rel="noopener">promise-utils.js, line 9</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise&lt;void></span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="each"><span class="type-signature"></span>each<span class="signature">(arr, fn, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
    

    











    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>arr</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array&lt;any></span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>fn</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>callback</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L617" target="_blank" rel="noopener">utils.js, line 617</a></p></div>




















        
            

    

    
    <h4 class="name" id="eachSeries"><span class="type-signature"></span>eachSeries<span class="signature">(arr, fn, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
    

    











    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>arr</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array&lt;any></span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>fn</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>callback</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L649" target="_blank" rel="noopener">utils.js, line 649</a></p></div>




















        
            

    

    
    <h4 class="name" id="encodeParams"><span class="type-signature"></span>encodeParams<span class="signature">(expectedTypes, params, encoder)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    <p>Encode whole array of params according to provided type information.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>expectedTypes</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"><p>List of expected types.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>params</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>encoder</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






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













<h5>Throws:</h5>

        

    <div class="param-desc">
    
        <p>ResponseError when received different amount of parameters than expected</p>
    
    </div>


    


<h5>Returns:</h5>

        
<div class="param-desc">
    <p>Returns: null for null values, undefined for unset values
and encoded buffers for all other values.</p>
</div>



    





        
            

    

    
    <h4 class="name" id="ensure32SignedInteger"><span class="type-signature"></span>ensure32SignedInteger<span class="signature">(number, name)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    <p>Checks whether the number is a 32 bit signed integer.
Throws an error, when a value that cannot be represented as i32 is passed.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>number</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>name</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"><p>used in the thrown error</p></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/new-utils.ts#L62" target="_blank" rel="noopener">new-utils.ts, line 62</a></p></div>













<h5>Throws:</h5>

        

    <div class="param-desc">
    
        
<span class="param-type">TypeError</span>


    
    </div>


    







        
            

    

    
    <h4 class="name" id="ensure64SignedInteger"><span class="type-signature"></span>ensure64SignedInteger<span class="signature">(number, name)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    <p>Checks whether the number is a 64 bit signed integer.
Throws an error, when a value that cannot be represented as i64 is passed.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>number</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>name</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"><p>used in the thrown error</p></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/new-utils.ts#L90" target="_blank" rel="noopener">new-utils.ts, line 90</a></p></div>













<h5>Throws:</h5>

        

    <div class="param-desc">
    
        
<span class="param-type">TypeError</span>


    
    </div>


    







        
            

    

    
    <h4 class="name" id="extend"><span class="type-signature"></span>extend<span class="signature">(baseOptions<span class="signature-attributes">opt</span>, userOptions)</span><span class="type-signature"> &rarr; {<a href="globals.html#ClientOptions">ClientOptions</a>}</span></h4>
    

    



<div class="description">
    <p>Extends and validates the user options</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>baseOptions</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"><p>The source object instance that will be overridden</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>userOptions</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/client-options.js#L484" target="_blank" rel="noopener">client-options.js, line 484</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="globals.html#ClientOptions">ClientOptions</a></span>


    </dd>
</dl>

    





        
            

    

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

    



<div class="description">
    <p>Merge the contents of two or more objects together into the first object. Similar to jQuery.extend / Object.assign.
The main difference between this method is that declared properties with an <code>undefined</code> value are not set
to the target.</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L122" target="_blank" rel="noopener">utils.js, line 122</a></p></div>




















        
            

    

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

    



<div class="description">
    <p>Appends the original stack trace to the error after a tick of the event loop</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L61" target="_blank" rel="noopener">utils.js, line 61</a></p></div>




















        
            

    

    
    <h4 class="name" id="forEachOf"><span class="type-signature"></span>forEachOf<span class="signature">(arr, fn, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
    

    











    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>arr</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array&lt;any></span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>fn</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>callback</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L689" target="_blank" rel="noopener">utils.js, line 689</a></p></div>




















        
            

    

    
    <h4 class="name" id="fromCallback"><span class="type-signature"></span>fromCallback<span class="signature">(fn)</span><span class="type-signature"> &rarr; {Promise}</span></h4>
    

    



<div class="description">
    <p>Creates a Promise from a callback based function.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>fn</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/promise-utils.js#L36" target="_blank" rel="noopener">promise-utils.js, line 36</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise</span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="fromEvent"><span class="type-signature"></span>fromEvent<span class="signature">(emitter, eventName)</span><span class="type-signature"> &rarr; {Promise}</span></h4>
    

    



<div class="description">
    <p>Creates a Promise that gets resolved or rejected based on an event.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>emitter</code></td>
            

            <td class="type">
            
                
<span class="param-type">object</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>eventName</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/promise-utils.js#L19" target="_blank" rel="noopener">promise-utils.js, line 19</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise</span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="getCallback"><span class="type-signature"></span>getCallback<span class="signature">(resolve, reject)</span><span class="type-signature"> &rarr; {function}</span></h4>
    

    



<div class="description">
    <p>Gets a function that has the signature of a callback that invokes the appropriate promise handler parameters.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>resolve</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>reject</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/promise-utils.js#L54" target="_blank" rel="noopener">promise-utils.js, line 54</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">function</span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="getColumnsMetadata"><span class="type-signature"></span>getColumnsMetadata<span class="signature">(result)</span><span class="type-signature"> &rarr; {Array&lt;{name, type}>}</span></h4>
    

    











    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>result</code></td>
            

            <td class="type">
            
                
<span class="param-type">rust.QueryResultWrapper</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/types/results-wrapper.js#L35" target="_blank" rel="noopener">types/results-wrapper.js, line 35</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Array&lt;{name, type}></span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="getRowsFromResultsWrapper"><span class="type-signature"></span>getRowsFromResultsWrapper<span class="signature">(result, encoder)</span><span class="type-signature"> &rarr; {Array&lt;_Row>|undefined}</span></h4>
    

    



<div class="description">
    <p>Simple way of getting results from rust driver.
Call the driver O(columns \* rows) times</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>result</code></td>
            

            <td class="type">
            
                
<span class="param-type">rust.QueryResultWrapper</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>encoder</code></td>
            

            <td class="type">
            
                
<span class="param-type">_Encoder</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/types/results-wrapper.js#L15" target="_blank" rel="noopener">types/results-wrapper.js, line 15</a></p></div>















<h5>Returns:</h5>

        
<div class="param-desc">
    <p>Returns array of rows if the result is is of the RowsResult kind, and undefined otherwise</p>
</div>



<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Array&lt;_Row></span>
|

<span class="param-type">undefined</span>


    </dd>
</dl>

    





        
            

    

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

    



<div class="description">
    <p>Derives the hex string representation of a host id from a host id's raw bytes.</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/host.ts#L22" target="_blank" rel="noopener">host.ts, line 22</a></p></div>




















        
            

    

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

    



<div class="description">
    <p>Returns the first not undefined param</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L437" target="_blank" rel="noopener">utils.js, line 437</a></p></div>




















        
            

    

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

    



<div class="description">
    <p>Returns the first not undefined param</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L444" target="_blank" rel="noopener">utils.js, line 444</a></p></div>




















        
            

    

    
    <h4 class="name" id="insertSorted"><span class="type-signature"></span>insertSorted<span class="signature">(arr, item, compareFunc)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    <p>Inserts the value in the position determined by its natural order determined by the compare func</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>arr</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array&lt;any></span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>item</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>compareFunc</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L278" target="_blank" rel="noopener">utils.js, line 278</a></p></div>




















        
            

    

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

    



<div class="description">
    <p>Returns true when params is a named (object) parameter set rather than an array.</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/new-utils.ts#L123" target="_blank" rel="noopener">new-utils.ts, line 123</a></p></div>













<h5>Throws:</h5>

        

<dl>
    <dt>
        <div class="param-desc">
        <p>In case params are of unexpected type</p>
        </div>
    </dt>
    <dd></dd>
    <dt>
        <dl>
            <dt>
                Type
            </dt>
            <dd>
                
<span class="param-type">ArgumentError</span>


            </dd>
        </dl>
    </dt>
    <dd></dd>
</dl>


    







        
            

    

    
    <h4 class="name" id="iteratorToArray"><span class="type-signature"></span>iteratorToArray<span class="signature">(iterator)</span><span class="type-signature"> &rarr; {Array&lt;any>}</span></h4>
    

    



<div class="description">
    <p>Convert the iterator values into an array</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>iterator</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L232" target="_blank" rel="noopener">utils.js, line 232</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Array&lt;any></span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="log"><span class="type-signature"></span>log<span class="signature">(type, info, furtherInfo<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    <p>Uses the logEmitter to emit log events.
Respects the <code>logLevel</code> option — events below the configured severity are suppressed.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>type</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>info</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>furtherInfo</code></td>
            

            <td class="type">
            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






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




















        
            

    

    
    <h4 class="name" id="map"><span class="type-signature"></span>map<span class="signature">(arr, fn, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
    

    











    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>arr</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array&lt;any></span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>fn</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>callback</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L698" target="_blank" rel="noopener">utils.js, line 698</a></p></div>




















        
            

    

    
    <h4 class="name" id="mapSeries"><span class="type-signature"></span>mapSeries<span class="signature">(arr, fn, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
    

    











    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>arr</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array&lt;any></span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>fn</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>callback</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L751" target="_blank" rel="noopener">utils.js, line 751</a></p></div>




















        
            

    

    
    <h4 class="name" id="newQueryPlan"><span class="type-signature"></span>newQueryPlan<span class="signature">(lbp, keyspace, executionOptions)</span><span class="type-signature"> &rarr; {Promise&lt;Iterator>}</span></h4>
    

    



<div class="description">
    <p>Invokes the new query plan of the load balancing policy and returns a Promise.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>lbp</code></td>
            

            <td class="type">
            
                
<span class="param-type">LoadBalancingPolicy</span>


            
            </td>

            

            

            <td class="description last"><p>The load balancing policy.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>keyspace</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Name of currently logged keyspace at <code>Client</code> level.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>executionOptions</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="ExecutionOptions.html">ExecutionOptions</a></span>
|

<span class="param-type">null</span>


            
            </td>

            

            

            <td class="description last"><p>The information related to the execution of the request.</p></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/promise-utils.js#L78" target="_blank" rel="noopener">promise-utils.js, line 78</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise&lt;Iterator></span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="normalizeKey"><span class="type-signature"></span>normalizeKey<span class="signature">(value, name)</span><span class="type-signature"> &rarr; {string}</span></h4>
    

    



<div class="description">
    <p>Normalizes a key that can be either a string or a buffer into a string.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>value</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>
|

<span class="param-type">Buffer</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>name</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>


            
            </td>

            

            

            <td class="description last"><p>Name of the option being normalized, used for error messages</p></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/client-options.js#L769" target="_blank" rel="noopener">client-options.js, line 769</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">string</span>


    </dd>
</dl>

    





        
            

    

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

    



<div class="description">
    <p>This function normalizes the type, and combines all possible page state sources.</p>
<p>Page state can come from two sources:</p>
<ul>
<li>pageState variable: when we execute the following page of the query</li>
<li>execOptions: when the user start a new query from requested state</li>
</ul>
<p>PageState has a priority over execOptions, as execOptions.pageState
will not be cleared for the following pages of the execution.</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/client.ts#L997" target="_blank" rel="noopener">client.ts, line 997</a></p></div>




















        
            

    

    
    <h4 class="name" id="normalizeSslOptions"><span class="type-signature"></span>normalizeSslOptions<span class="signature">(sslOptions)</span><span class="type-signature"> &rarr; {rust.SslOptions}</span></h4>
    

    



<div class="description">
    <p>Normalizes SSL options to be passed to the Rust layer.
The SslOptions class can have values as multiple types,
while the Rust code expects a specific format.
We could do this at the napi layer by trying all accepted types
until we successfully convert it, but we can also convert it here.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>sslOptions</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="SslOptions.html">SslOptions</a></span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/client-options.js#L817" target="_blank" rel="noopener">client-options.js, line 817</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">rust.SslOptions</span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="objectValues"><span class="type-signature"></span>objectValues<span class="signature">(obj)</span><span class="type-signature"> &rarr; {Array&lt;any>}</span></h4>
    

    



<div class="description">
    <p>Returns an array containing the values of the Object, similar to Object.values().
If obj is null or undefined, it will return an empty array.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>obj</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L387" target="_blank" rel="noopener">utils.js, line 387</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Array&lt;any></span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="optionalCallback"><span class="type-signature"></span>optionalCallback<span class="signature">(promise, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise|undefined}</span></h4>
    

    



<div class="description">
    <p>Method that handles optional callbacks (dual promise and callback support).
When callback is undefined it returns the promise.
When using a callback, it will use it as handlers of the continuation of the promise.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>promise</code></td>
            

            <td class="type">
            
                
<span class="param-type">Promise</span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>callback</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/promise-utils.js#L98" target="_blank" rel="noopener">promise-utils.js, line 98</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise</span>
|

<span class="param-type">undefined</span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="parallel"><span class="type-signature"></span>parallel<span class="signature">(arr, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
    

    











    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>arr</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array&lt;function()></span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>callback</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L799" target="_blank" rel="noopener">utils.js, line 799</a></p></div>




















        
            

    

    
    <h4 class="name" id="promiseWrapper"><span class="type-signature"></span>promiseWrapper<span class="signature">(options, originalCallback, handler)</span><span class="type-signature"> &rarr; {Promise|undefined}</span></h4>
    

    



<div class="description">
    <p>Wraps the callback-based method. When no originalCallback is not defined, it returns a Promise.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>options</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="globals.html#ClientOptions">ClientOptions</a></span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>originalCallback</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>handler</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L406" target="_blank" rel="noopener">utils.js, line 406</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise</span>
|

<span class="param-type">undefined</span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="series"><span class="type-signature"></span>series<span class="signature">(arr, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    <p>Similar to async.series(), but instead accumulating the result in an Array, it callbacks with the result of the last
function in the array.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>arr</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array&lt;function()></span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>callback</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L828" target="_blank" rel="noopener">utils.js, line 828</a></p></div>




















        
            

    

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

    



<div class="description">
    <p>Sets the default options that depend on the protocol version and other metadata.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>client</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="Client.html">Client</a></span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/client-options.js#L886" target="_blank" rel="noopener">client-options.js, line 886</a></p></div>




















        
            

    

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

    



<div class="description">
    <p>Returns the string representation of a given socket address.</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/host.ts#L13" target="_blank" rel="noopener">host.ts, line 13</a></p></div>




















        
            

    

    
    <h4 class="name" id="stringRepeat"><span class="type-signature"></span>stringRepeat<span class="signature">(val, times)</span><span class="type-signature"> &rarr; {String}</span></h4>
    

    



<div class="description">
    <p>Returns a string with a value repeated n times</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>val</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>times</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L366" target="_blank" rel="noopener">utils.js, line 366</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">String</span>


    </dd>
</dl>

    





        
            

    

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

    



<div class="description">
    <p>Internal utility for marking not supported endpoints.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>name</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/new-utils.ts#L14" target="_blank" rel="noopener">new-utils.ts, line 14</a></p></div>













<h5>Throws:</h5>

        

    <div class="param-desc">
    
        
<span class="param-type">ReferenceError</span>


    
    </div>


    







        
            

    

    
    <h4 class="name" id="times"><span class="type-signature"></span>times<span class="signature">(count, limit, fn)</span><span class="type-signature"> &rarr; {Promise}</span></h4>
    

    



<div class="description">
    <p>Invokes the provided function multiple times, considering the concurrency level limit.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>count</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>limit</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>fn</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/promise-utils.js#L113" target="_blank" rel="noopener">promise-utils.js, line 113</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise</span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="times"><span class="type-signature"></span>times<span class="signature">(count, iteratorFunc, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
    

    











    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>count</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>iteratorFunc</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>callback</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L861" target="_blank" rel="noopener">utils.js, line 861</a></p></div>




















        
            

    

    
    <h4 class="name" id="timesLimit"><span class="type-signature"></span>timesLimit<span class="signature">(count, limit, iteratorFunc, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
    

    











    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>count</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>limit</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>iteratorFunc</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>callback</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L890" target="_blank" rel="noopener">utils.js, line 890</a></p></div>




















        
            

    

    
    <h4 class="name" id="timesSeries"><span class="type-signature"></span>timesSeries<span class="signature">(count, iteratorFunction, callback)</span><span class="type-signature"></span></h4>
    

    











    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>count</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>iteratorFunction</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>callback</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L933" target="_blank" rel="noopener">utils.js, line 933</a></p></div>




















        
            

    

    
    <h4 class="name" id="toBackground"><span class="type-signature"></span>toBackground<span class="signature">(promise)</span><span class="type-signature"> &rarr; {undefined}</span></h4>
    

    



<div class="description">
    <p>Deals with unexpected rejections in order to avoid the unhandled promise rejection warning or failure.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>promise</code></td>
            

            <td class="type">
            
                
<span class="param-type">Promise</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/promise-utils.js#L136" target="_blank" rel="noopener">promise-utils.js, line 136</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">undefined</span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="toCallback"><span class="type-signature"></span>toCallback<span class="signature">(promise, callback<span class="signature-attributes">nullable</span>)</span><span class="type-signature"> &rarr; {undefined}</span></h4>
    

    



<div class="description">
    <p>Invokes the callback once outside the promise chain the promise is resolved or rejected.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>promise</code></td>
            

            <td class="type">
            
                
<span class="param-type">Promise</span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>callback</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                

                
                    &lt;nullable><br>
                

                
                </td>
            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/promise-utils.js#L146" target="_blank" rel="noopener">promise-utils.js, line 146</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">undefined</span>


    </dd>
</dl>

    





        
            

    

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

    



<div class="description">
    <p>Returns a new object with the property names set to lowercase.</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L144" target="_blank" rel="noopener">utils.js, line 144</a></p></div>




















        
            

    

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

    



<div class="description">
    <p>Gets the sum of the length of the items of an array</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L104" target="_blank" rel="noopener">utils.js, line 104</a></p></div>




















        
            

    

    
    <h4 class="name" id="validateFn"><span class="type-signature"></span>validateFn<span class="signature">(fn, name<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {function}</span></h4>
    

    



<div class="description">
    <p>Validates the provided parameter is of type function.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>fn</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last"><p>The instance to validate.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>name</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"><p>Name of the function to use in the error message. Defaults to 'callback'.</p></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L295" target="_blank" rel="noopener">utils.js, line 295</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">function</span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="whilst"><span class="type-signature"></span>whilst<span class="signature">(condition, fn, callback)</span><span class="type-signature"></span></h4>
    

    











    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>condition</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>fn</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>callback</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/utils.js#L971" target="_blank" rel="noopener">utils.js, line 971</a></p></div>




















        
    

    
        </div>

## Type Definitions

<div class="jsdoc-content">

        
                
<h4 class="name" id="ClientOptions">ClientOptions</h4>




<div class="description">
    <p>Client options.</p>
<p>While the driver provides lots of extensibility points and configurability, few client options are required.</p>
<p>Default values for all settings are designed to be suitable for the majority of use cases, you should avoid
fine tuning it when not needed.</p>
<p>See <a href="Client.html">Client constructor</a> documentation for recommended options.</p>
</div>



    <h5>Type:</h5>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h5 class="subsection-title">Properties:</h5>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>contactPoints</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array&lt;string></span>


            
            </td>

            
                <td class="attributes">
                

                
                </td>
            

            

            <td class="description last"><p>Array of addresses or host names of the nodes to add as contact points.</p>
<p>Contact points are addresses of Cassandra nodes that the driver uses to discover the cluster topology.</p>
<p>Only one contact point is required (the driver will retrieve the address of the other nodes automatically),
but it is usually a good idea to provide more than one contact point, because if that single contact point is
unavailable, the driver will not be able to initialize correctly.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localDataCenter</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>The local data center to use.</p>
<p>If using DCAwareRoundRobinPolicy (default), this option is required and only hosts from this data center are
connected to and used in query plans.</p>
<p>[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>keyspace</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>The logged keyspace for all the connections created within the <a href="Client.html">Client</a> instance.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>credentials</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>An object containing the username and password for plain-text authentication.
It configures the authentication provider to be used against Apache Cassandra's PasswordAuthenticator or DSE's
DseAuthenticator, when default auth scheme is plain-text.</p>
<p>Note that you should configure either <code>credentials</code> or <code>authProvider</code> to connect to an
auth-enabled cluster, but not both.</p>
                <h6>Properties</h6>

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>username</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>The username to use for plain-text authentication.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>password</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>The password to use for plain-text authentication.</p></td>
        </tr>

    
    </tbody>
</table>

            </td>
        </tr>

    

        <tr>
            
                <td class="name"><code>id</code></td>
            

            <td class="type">
            
                
<span class="param-type">Uuid</span>
|

<span class="param-type">string</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>A unique identifier assigned to a <a href="Client.html">Client</a> object, that will be communicated to the
server to identify the client instance created with this options. When not defined, the driver will
generate a random identifier.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>applicationName</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>An optional setting identifying the name of the application using
the <a href="Client.html">Client</a> instance.</p>
<p>This value is passed to database and is useful as metadata for describing a client connection on the server side.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>applicationVersion</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>An optional setting identifying the version of the application using
the <a href="Client.html">Client</a> instance.</p>
<p>This value is passed to database and is useful as metadata for describing a client connection on the server side.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>refreshSchemaDelay</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>The default window size in milliseconds used to debounce node list and schema
refresh metadata requests. Default: 1000.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>prepareOnAllHosts</code></td>
            

            <td class="type">
            
                
<span class="param-type">Boolean</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Determines if the driver should prepare queries on all hosts in the cluster.
Default: <code>true</code>.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>rePrepareOnUp</code></td>
            

            <td class="type">
            
                
<span class="param-type">Boolean</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Determines if the driver should re-prepare all cached prepared queries on a
host when it marks it back up.
Default: <code>true</code>.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>maxPrepared</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Determines the maximum amount of different prepared queries before evicting items
from the internal cache. Reaching a high threshold hints that the queries are not being reused, like when
hard-coding parameter values inside the queries.
Default: <code>512</code>.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>policies</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last">
                <h6>Properties</h6>

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>loadBalancing</code></td>
            

            <td class="type">
            
                
<span class="param-type">LoadBalancingPolicy</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>The load balancing policy instance to be used to determine
the coordinator per query.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>retry</code></td>
            

            <td class="type">
            
                
<span class="param-type">RetryPolicy</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>The retry policy.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>reconnection</code></td>
            

            <td class="type">
            
                
<span class="param-type">ReconnectionPolicy</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>The reconnection policy to be used.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>addressResolution</code></td>
            

            <td class="type">
            
                
<span class="param-type">AddressTranslator</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>The address resolution policy.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>speculativeExecution</code></td>
            

            <td class="type">
            
                
<span class="param-type">SpeculativeExecutionPolicy</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>The <code>SpeculativeExecutionPolicy</code>
instance to be used to determine if the client should send speculative queries when the selected host takes more
time than expected.</p>
<p>Default: <code><a href="policies/speculativeExecution/NoSpeculativeExecutionPolicy.html">NoSpeculativeExecutionPolicy</a></code></p>
<p>[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>timestampGeneration</code></td>
            

            <td class="type">
            
                
<span class="param-type">TimestampGenerator</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>The client-side
<a href="policies/timestampGeneration/TimestampGenerator.html">query timestamp generator</a>.</p>
<p>Default: <code><a href="policies/timestampGeneration/MonotonicTimestampGenerator.html">MonotonicTimestampGenerator</a></code></p>
<p>Use <code>null</code> to disable client-side timestamp generation.</p>
<p>[TODO: Add support for this field]</p></td>
        </tr>

    
    </tbody>
</table>

            </td>
        </tr>

    

        <tr>
            
                <td class="name"><code>queryOptions</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="globals.html#QueryOptions">QueryOptions</a></span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Default options for all queries.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>pooling</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Pooling options.
[TODO: Add support for this field]</p>
                <h6>Properties</h6>

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>heartBeatInterval</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>The amount of idle time in milliseconds that has to pass before the
driver issues a request on an active connection to avoid idle time disconnections. Default: 30000.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>coreConnectionsPerHost</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Associative array containing amount of connections per host
distance.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>maxRequestsPerConnection</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>The maximum number of requests per connection. The default
value is:</p>
<ul>
<li>For modern protocol versions (v3 and above): 2048</li>
<li>For older protocol versions (v1 and v2): 128</li>
</ul>
<p>[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>warmup</code></td>
            

            <td class="type">
            
                
<span class="param-type">Boolean</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Determines if all connections to hosts in the local datacenter must be opened on
connect. Default: true.
[TODO: Add support for this field]</p></td>
        </tr>

    
    </tbody>
</table>

            </td>
        </tr>

    

        <tr>
            
                <td class="name"><code>protocolOptions</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>[TODO: Add support for this field]</p>
                <h6>Properties</h6>

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>port</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>The port to use to connect to the Cassandra host. If not set through this
method, the default port (9042) will be used instead.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>maxSchemaAgreementWaitSeconds</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>The maximum time in seconds to wait for schema
agreement between nodes before returning from a DDL query. Default: 10.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>maxVersion</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>When set, it limits the maximum protocol version used to connect to
the nodes.
Useful for using the driver against a cluster that contains nodes with different major/minor versions of Cassandra.
[TODO: Add support for this field]</p></td>
        </tr>

    
    </tbody>
</table>

            </td>
        </tr>

    

        <tr>
            
                <td class="name"><code>socketOptions</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>[TODO: Add support for this field]</p>
                <h6>Properties</h6>

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>connectTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Connection timeout in milliseconds. Default: 5000.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>defunctReadTimeoutThreshold</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Determines the amount of requests that simultaneously
have to timeout before closing the connection. Default: 64.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>keepAlive</code></td>
            

            <td class="type">
            
                
<span class="param-type">Boolean</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Whether to enable TCP keep-alive on the socket. Default: true.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>keepAliveDelay</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>TCP keep-alive delay in milliseconds. Default: 0.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Per-host read timeout in milliseconds.</p>
<p>Please note that this is not the maximum time a call to <a href="Client.html#execute">Client#execute</a> may have to wait;
this is the maximum time that call will wait for one particular Cassandra host, but other hosts will be tried if
one of them timeout. In other words, a <a href="Client.html#execute">Client#execute</a> call may theoretically wait up to
<code>readTimeout \* number_of_cassandra_hosts</code> (though the total number of hosts tried for a given query also
depends on the LoadBalancingPolicy in use).</p>
<p>When setting this value, keep in mind the following:</p>
<ul>
<li>the timeout settings used on the Cassandra side (\*_request_timeout_in_ms in cassandra.yaml) should be taken
into account when picking a value for this read timeout. You should pick a value a couple of seconds greater than
the Cassandra timeout settings.</li>
<li>the read timeout is only approximate and only control the timeout to one Cassandra host, not the full query.</li>
</ul>
<p>Setting a value of 0 disables read timeouts. Default: <code>12000</code>.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tcpNoDelay</code></td>
            

            <td class="type">
            
                
<span class="param-type">Boolean</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>When set to true, it disables the Nagle algorithm. Default: true.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>coalescingThreshold</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Buffer length in bytes use by the write queue before flushing
the frames. Default: 8000.
[TODO: Add support for this field]</p></td>
        </tr>

    
    </tbody>
</table>

            </td>
        </tr>

    

        <tr>
            
                <td class="name"><code>authProvider</code></td>
            

            <td class="type">
            
                
<span class="param-type">AuthProvider</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Provider to be used to authenticate to an auth-enabled cluster.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>requestTracker</code></td>
            

            <td class="type">
            
                
<span class="param-type">RequestTracker</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>The instance of RequestTracker used to monitor or log requests executed
with this instance.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>sslOptions</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="SslOptions.html">SslOptions</a></span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Client-to-node ssl options. When set the driver will use the secure layer.
You can specify cert, ca, ... options named after the Node.js <code>tls.connect()</code> options.</p>
<p>It uses the same default values as Node.js <code>tls.connect()</code>
[TODO: For now, only limited subset of ssl options is supported]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>encoding</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Encoding options.
[TODO: Add support for this field]</p>
                <h6>Properties</h6>

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>map</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Map constructor to use for Cassandra map&lt;k,v&gt; type encoding and decoding.
If not set, it will default to Javascript Object with map keys as property names.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>set</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Set constructor to use for Cassandra set<k> type encoding and decoding.
If not set, it will default to Javascript Array.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>copyBuffer</code></td>
            

            <td class="type">
            
                
<span class="param-type">Boolean</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Determines if the network buffer should be copied for buffer based data
types (blob, uuid, timeuuid and inet).</p>
<p>Setting it to true will cause that the network buffer is copied for each row value of those types,
causing additional allocations but freeing the network buffer to be reused.
Setting it to true is a good choice for cases where the Row and ResultSet returned by the queries are long-lived
objects.</p>
<p>Setting it to false will cause less overhead and the reference of the network buffer to be maintained until the row
/ result set are de-referenced.
Default: true.</p>
<p>[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>useUndefinedAsUnset</code></td>
            

            <td class="type">
            
                
<span class="param-type">Boolean</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Valid for Cassandra 2.2 and above. Determines that, if a parameter
is set to <code>undefined</code> it should be encoded as <code>unset</code>.</p>
<p>By default, ECMAScript <code>undefined</code> is encoded as <code>null</code> in the driver. Cassandra 2.2
introduced the concept of unset.
At driver level, you can set a parameter to unset using the field <code>types.unset</code>. Setting this flag to
true allows you to use ECMAScript undefined as Cassandra <code>unset</code>.</p>
<p>Default: true.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>useBigIntAsLong</code></td>
            

            <td class="type">
            
                
<span class="param-type">Boolean</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Use <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt">BigInt type</a>
to represent CQL bigint and counter data types. Defaults to true.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>useBigIntAsVarint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Boolean</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Use <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt">BigInt type</a>
to represent CQL varint data type. Defaults to true.</p>
<p>Note, that using Integer as Varint (<code>useBigIntAsVarint == false</code>) is deprecated.</p></td>
        </tr>

    
    </tbody>
</table>

            </td>
        </tr>

    

        <tr>
            
                <td class="name"><code>logLevel</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>The minimum severity of log events emitted by the driver.</p>
<p><strong>WARNING:</strong> While you can configure different log levels for different clients, each client will receive
log messages from all clients at the specified severity.</p>
<p>Valid values are defined in the <a href="types/index.html#~logLevels">module:types~logLevels</a> enum.
We recommend using the enum values (e.g. <code>types.logLevels.info</code>) rather than raw strings.</p>
<p>When set to a value other than <code>'off'</code>, additional driver log messages (connection events, query routing,
retries, etc.) will be emitted as <code>'log'</code> events on the <a href="Client.html">Client</a> instance.</p>
<p>When not set, events at <code>warning</code> level and above are captured. Set to <code>'off'</code> to disable logging.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>profiles</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array&lt;<a href="ExecutionProfile.html">ExecutionProfile</a>></span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>The array of <a href="ExecutionProfile.html">execution profiles</a>.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>promiseFactory</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Function to be used to create a <code>Promise</code> from a
callback-style function.</p>
<p>Promise libraries often provide different methods to create a promise. For example, you can use Bluebird's
<code>Promise.fromCallback()</code> method.</p>
<p>By default, the driver will use the
<a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise constructor</a>.</p>
<p>[TODO: Add support for this field]</p></td>
        </tr>

    
    </tbody>
</table>




<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/client-options.js#L23" target="_blank" rel="noopener">client-options.js, line 23</a></p></div>






            
                
<h4 class="name" id="QueryOptions">QueryOptions</h4>




<div class="description">
    <p>Query options</p>
</div>



    <h5>Type:</h5>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h5 class="subsection-title">Properties:</h5>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>autoPage</code></td>
            

            <td class="type">
            
                
<span class="param-type">boolean</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Determines if the driver must retrieve the following result pages automatically.</p>
<p>This setting is only considered by the <a href="Client.html#eachRow">Client#eachRow()</a> method. For more information,
check the
<a href="https://docs.datastax.com/en/developer/nodejs-driver/latest/features/paging/">paging results documentation</a>.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>captureStackTrace</code></td>
            

            <td class="type">
            
                
<span class="param-type">boolean</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Determines if the stack trace before the query execution should be
maintained.</p>
<p>Useful for debugging purposes, it should be set to <code>false</code> under production environment as it adds an
unnecessary overhead to each execution.</p>
<p>Default: false.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>consistency</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p><a href="types/index.html#~consistencies">Consistency level</a>.</p>
<p>Defaults to <code>localOne</code> for Apache Cassandra and ScyllaDB deployments.</p>
<p>[TODO: Test this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>customPayload</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Key-value payload to be passed to the server. On the Cassandra side,
implementations of QueryHandler can use this data.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>executionProfile</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>
|

<span class="param-type"><a href="ExecutionProfile.html">ExecutionProfile</a></span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Name or instance of the <a href="ExecutionProfile.html">profile</a> to
be used for this execution. If not set, it will the use &quot;default&quot; execution profile.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>fetchSize</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Amount of rows to retrieve per page. Only valid if query is paged.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>hints</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array&lt;any></span>
|

<span class="param-type">Array&lt;Array&lt;any>></span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Type hints for parameters given in the query, ordered as for the parameters.</p>
<p>For batch queries, an array of such arrays, ordered as with the queries in the batch.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>host</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="Host.html">Host</a></span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>The host that should handle the query.</p>
<p>Use of this option is <strong>heavily discouraged</strong> and should only be used in the following cases:</p>
<ol>
<li>Querying node-local tables, such as tables in the <code>system</code> and <code>system_views</code> keyspaces.</li>
<li>Applying a series of schema changes, where it may be advantageous to execute schema changes in sequence on the
same node.</li>
</ol>
<p>Configuring a specific host causes the configured
<a href="policies/loadBalancing/LoadBalancingPolicy.html">LoadBalancingPolicy</a> to be completely bypassed.
However, if the load balancing policy dictates that the host is at a
<a href="types/index.html#~distance">distance of ignored</a> or there is no active connectivity to the host, the request will
fail with a <a href="errors/NoHostAvailableError.html">NoHostAvailableError</a>.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>idempotent</code></td>
            

            <td class="type">
            
                
<span class="param-type">boolean</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Defines whether the query can be applied multiple times without changing the result
beyond the initial application.</p>
<p>The query execution idempotence can be used at <a href="policies/retry/RetryPolicy.html">RetryPolicy</a> level to
determine if an statement can be retried in case of request error or write timeout.</p>
<p>Default: <code>false</code>.</p>
<p>[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>keyspace</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Specifies the keyspace for the query. It is used for the following:</p>
<ol>
<li>To indicate what keyspace the statement is applicable to (protocol V5+ only).  This is useful when the
query does not provide an explicit keyspace and you want to override the current <a href="Client.html#keyspace">Client#keyspace</a>.</li>
<li>For query routing when the query operates on a different keyspace than the current <a href="Client.html#keyspace">Client#keyspace</a>.</li>
</ol>
<p>[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>logged</code></td>
            

            <td class="type">
            
                
<span class="param-type">boolean</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Determines if the batch should be written to the batchlog. Only valid for
<a href="Client.html#batch">Client#batch()</a>, it will be ignored by other methods. Default: true.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>counter</code></td>
            

            <td class="type">
            
                
<span class="param-type">boolean</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Determines if its a counter batch. Only valid for
<a href="Client.html#batch">Client#batch()</a>, it will be ignored by other methods. Default: false.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>paged</code></td>
            

            <td class="type">
            
                
<span class="param-type">boolean</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Determines if the query should be paged. Default: true.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>pageState</code></td>
            

            <td class="type">
            
                
<span class="param-type">Buffer</span>
|

<span class="param-type">string</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Buffer or string token representing the paging state.</p>
<p>Useful for manual paging, if provided, the query will be executed starting from a given paging state.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>prepare</code></td>
            

            <td class="type">
            
                
<span class="param-type">boolean</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Determines if the query must be executed as a prepared statement.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>When defined, it overrides the default read timeout
(<code>socketOptions.readTimeout</code>) in milliseconds for this execution per coordinator.</p>
<p>Suitable for statements for which the coordinator may allow a longer server-side timeout, for example aggregation
queries.</p>
<p>A value of <code>0</code> disables client side read timeout for the execution. Default: <code>undefined</code>.</p>
<p>[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>retry</code></td>
            

            <td class="type">
            
                
<span class="param-type">RetryPolicy</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Retry policy for the query.</p>
<p>This property can be used to specify a different <a href="policies/retry/index.html">retry policy</a> to the one specified
in the <a href="globals.html#ClientOptions">ClientOptions</a>.policies.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>routingIndexes</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array&lt;any></span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Index of the parameters that are part of the partition key to determine
the routing.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>routingKey</code></td>
            

            <td class="type">
            
                
<span class="param-type">Buffer</span>
|

<span class="param-type">Array&lt;any></span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Partition key(s) to determine which coordinator should be used for the query.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>routingNames</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array&lt;any></span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Array of the parameters names that are part of the partition key to determine the
routing. Only valid for non-prepared requests, it's recommended that you use the prepare flag instead.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>serialConsistency</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Serial consistency is the consistency level for the serial phase of
conditional updates.
This option will be ignored for anything else that a conditional update/insert.
[TODO: Add support for this field]</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>timestamp</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>
|

<span class="param-type">Long</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>The default timestamp for the query in microseconds from the unix epoch
(00:00:00, January 1st, 1970).</p>
<p>If provided, this will replace the server side assigned timestamp as default timestamp.</p>
<p>Use <a href="types/index.html#~generateTimestamp">generateTimestamp()</a> utility method to generate a valid timestamp
based on a Date and microseconds parts.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>traceQuery</code></td>
            

            <td class="type">
            
                
<span class="param-type">boolean</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                
                </td>
            

            

            <td class="description last"><p>Enable query tracing for the execution. Use query tracing to diagnose performance
problems related to query executions. Default: false.</p>
<p>To retrieve trace, you can call <a href="metadata/Metadata.html#getTrace">Metadata.getTrace()</a> method.</p></td>
        </tr>

    
    </tbody>
</table>




<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/query-options.js#L6" target="_blank" rel="noopener">query-options.js, line 6</a></p></div></div>
