# types

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


    
        

        
    
    

    

    

    
        </div>

## Classes

<div class="jsdoc-content">

        <dl>
            <dt><a href="BigDecimal.html">BigDecimal</a></dt>
            <dd></dd>
        
            <dt><a href="Duration.html">Duration</a></dt>
            <dd></dd>
        
            <dt><a href="InetAddress.html">InetAddress</a></dt>
            <dd></dd>
        
            <dt><a href="Integer.html">Integer</a></dt>
            <dd></dd>
        
            <dt><a href="LocalDate.html">LocalDate</a></dt>
            <dd></dd>
        
            <dt><a href="index.html#~LocalTime">LocalTime</a></dt>
            <dd></dd>
        
            <dt><a href="Long.html">Long</a></dt>
            <dd></dd>
        
            <dt><a href="ResultSet.html">ResultSet</a></dt>
            <dd></dd>
        
            <dt><a href="ResultStream.html">ResultStream</a></dt>
            <dd></dd>
        
            <dt><a href="Row.html">Row</a></dt>
            <dd></dd>
        
            <dt><a href="TimeUuid.html">TimeUuid</a></dt>
            <dd></dd>
        
            <dt><a href="Tuple.html">Tuple</a></dt>
            <dd></dd>
        
            <dt><a href="Uuid.html">Uuid</a></dt>
            <dd></dd>
        
            <dt><a href="Vector.html">Vector</a></dt>
            <dd></dd>
        </dl>
    

    

    

    

    
        </div>

## Members

<div class="jsdoc-content">

        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the hour component of the time represented by the current instance, a number from 0 to 23.</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/local-time.ts#L51" target="_blank" rel="noopener">types/local-time.ts, line 51</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the minute component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L55" target="_blank" rel="noopener">types/local-time.ts, line 55</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the second component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L59" target="_blank" rel="noopener">types/local-time.ts, line 59</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the nanoseconds component of the time represented by the current instance, a number from 0 to 999999999.</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/local-time.ts#L63" target="_blank" rel="noopener">types/local-time.ts, line 63</a></p></div>






        
            
<h3 class="name" id="~consistencies"><span class="type-signature">(inner, constant) </span>consistencies<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Consistency levels</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>Writing: A write must be written to at least one node. If all replica nodes for the given row key are down, the write can still succeed after a hinted handoff has been written. If all replica nodes are down at write time, an ANY write is not readable until the replica nodes for that row have recovered.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns a response from the closest replica, as determined by the snitch.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from two of the closest replicas.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from three of the closest replicas.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after a quorum of replicas has responded regardless of data center. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after all replicas have responded. The read operation will fail if a replica does not respond. Writing: A write must be written to the commit log and memory table on all replica nodes in the cluster for that row.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp once a quorum of replicas in the current data center as the coordinator node has reported. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes in the same data center as the coordinator node. Avoids latency of inter-data center communication.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record once a quorum of replicas in each data center of the cluster has responded. Writing: Strong consistency. A write must be written to the commit log and memtable on a quorum of replica nodes in all data centers.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Achieves linearizable consistency for lightweight transactions by preventing unconditional updates.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Same as serial but confined to the data center. A write must be written conditionally to the commit log and memtable on a quorum of replica nodes in the same data center.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Similar to One but only within the DC the coordinator is in.</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/types/index.js#L32" target="_blank" rel="noopener">types/index.js, line 32</a></p></div>






        
            
<h3 class="name" id="~consistencyToString"><span class="type-signature">(inner, constant) </span>consistencyToString<span class="type-signature"> :Object&lt;number, string></span></h3>




<div class="description">
    <p>Mapping of consistency level codes to their string representation.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object&lt;number, string></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/types/index.js#L50" target="_blank" rel="noopener">types/index.js, line 50</a></p></div>






        
            
<h3 class="name" id="~dataTypes"><span class="type-signature">(inner, constant) </span>dataTypes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>CQL data types</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>A custom type.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>ASCII character string.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>64-bit signed long.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Arbitrary bytes (no validation).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>true or false.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Counter column (64-bit signed value).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Variable-precision decimal.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>64-bit IEEE-754 floating point.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>32-bit IEEE-754 floating point.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>32-bit signed integer.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A timestamp.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Type 1 or type 4 UUID.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Arbitrary-precision integer.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Type 1 UUID.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>An IP address. It can be either 4 bytes long (IPv4) or 16 bytes long (IPv6).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A date without a time-zone in the ISO-8601 calendar system.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A value representing the time portion of the day.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>16-bit two's complement integer.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>8-bit two's complement integer.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A collection of elements.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Key/value pairs.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A collection that contains no duplicate elements.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>User-defined type.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A sequence of values.</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/types/index.js#L93" target="_blank" rel="noopener">types/index.js, line 93</a></p></div>






        
            
<h3 class="name" id="~dateCenter"><span class="type-signature">(inner, constant) </span>dateCenter<span class="type-signature"></span></h3>




<div class="description">
    <p>2^31 days before unix epoch is -5877641-06-23. This is the first day that can be represented by this class.</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/local-date.js#L10" target="_blank" rel="noopener">types/local-date.js, line 10</a></p></div>






        
            
<h3 class="name" id="~distance"><span class="type-signature">(inner, constant) </span>distance<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Represents the distance of Cassandra node as assigned by a LoadBalancingPolicy relatively to the driver instance.</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>A local node.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A remote node.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A node that is meant to be ignored.</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/types/index.js#L205" target="_blank" rel="noopener">types/index.js, line 205</a></p></div>






        
            
<h3 class="name" id="~logLevels"><span class="type-signature">(inner, constant) </span>logLevels<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Log level values used for the <code>logLevel</code> client option and emitted in <code>'log'</code> events.</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>Finest-grained diagnostic information (TRACE level events).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Fine-grained diagnostic information useful during development (DEBUG level events).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>High-level informational messages.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Potentially harmful situations (default when logLevel is not set).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Error conditions.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Disables internal driver log forwarding.</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/types/index.js#L221" target="_blank" rel="noopener">types/index.js, line 221</a></p></div>






        
            
<h3 class="name" id="~protocolVersion"><span class="type-signature">(inner, constant) </span>protocolVersion<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Contains information for the different protocol versions supported by the driver.</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v1, supported in Apache Cassandra 1.2--&gt;2.2.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v2, supported in Apache Cassandra 2.0--&gt;2.2.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v3, supported in Apache Cassandra 2.1--&gt;3.x.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v4, supported in Apache Cassandra 2.2--&gt;3.x.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v5, in beta from Apache Cassandra 3.x+. Currently not supported by the
driver.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v1, DSE 5.1+</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v2, DSE 6.0+</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns the higher protocol version that is supported by this driver.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns the lower protocol version that is supported by this driver.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A function that returns a boolean determining whether a given protocol version
is supported.</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/types/protocol-version.js#L30" target="_blank" rel="noopener">types/protocol-version.js, line 30</a></p></div>






        
            
<h3 class="name" id="~responseErrorCodes"><span class="type-signature">(inner, constant) </span>responseErrorCodes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Server error codes returned by Cassandra</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>Something unexpected happened.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Some client message triggered a protocol violation.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Authentication was required and failed.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Raised when coordinator knows there is not enough replicas alive to perform a query with the requested consistency level.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The request cannot be processed because the coordinator is overloaded.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The request was a read request but the coordinator node is bootstrapping.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Error encountered during a truncate request.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on write query on coordinator waiting for response(s) from replicas.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on read query on coordinator waitign for response(s) from replicas.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a read request.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A (user defined) function encountered during execution.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a write request.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The submitted query has a syntax error.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The logged user doesn't have the right to perform the query.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The query is syntactically correct but invalid.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The query is invalid because of some configuration issue.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The query attempted to create a schema element (i.e. keyspace, table) that already exists.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Can be thrown while a prepared statement tries to be executed if the provided statement is not known by the coordinator.</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/types/index.js#L252" target="_blank" rel="noopener">types/index.js, line 252</a></p></div>






        
            
<h3 class="name" id="~unset"><span class="type-signature">(inner, constant) </span>unset<span class="type-signature"></span></h3>




<div class="description">
    <p>Unset representation.</p>
<p>Use this field if you want to set a parameter to <code>unset</code>. Valid for Cassandra 2.2 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/types/index.js#L279" target="_blank" rel="noopener">types/index.js, line 279</a></p></div>






        
    

    
        </div>

## Methods

<div class="jsdoc-content">

        
            

    

    
    <h3 class="name" id="~generateTimestamp"><span class="type-signature">(inner) </span>generateTimestamp<span class="signature">(date<span class="signature-attributes">opt</span>, microseconds<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Long}</span></h3>
    

    



<div class="description">
    <p>Generates a value representing the timestamp for the query in microseconds based on the date and the microseconds provided</p>
</div>









    <h4>Parameters:</h4>
    

<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>date</code></td>
            

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


            
            </td>

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

                

                
                </td>
            

            

            <td class="description last"><p>The date to generate the value, if not provided it will use the current date.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>microseconds</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 number from 0 to 999 used to build the microseconds part of the date.</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/types/index.js#L468" target="_blank" rel="noopener">types/index.js, line 468</a></p></div>















<h4>Returns:</h4>

        


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


    </dd>
</dl>

    





        
            

    

    
    <h3 class="name" id="~isLeapYear"><span class="type-signature">(inner) </span>isLeapYear<span class="signature">(year)</span><span class="type-signature"> &rarr; {boolean}</span></h3>
    

    











    <h4>Parameters:</h4>
    

<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>year</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/types/local-date.js#L18" target="_blank" rel="noopener">types/local-date.js, line 18</a></p></div>















<h4>Returns:</h4>

        


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


    </dd>
</dl>







<header>
    
        
    
</header>


    
        

        
    
    

    

    

    
        </div>

## Classes

<div class="jsdoc-content">

        <dl>
            <dt><a href="BigDecimal.html">BigDecimal</a></dt>
            <dd></dd>
        
            <dt><a href="Duration.html">Duration</a></dt>
            <dd></dd>
        
            <dt><a href="InetAddress.html">InetAddress</a></dt>
            <dd></dd>
        
            <dt><a href="Integer.html">Integer</a></dt>
            <dd></dd>
        
            <dt><a href="LocalDate.html">LocalDate</a></dt>
            <dd></dd>
        
            <dt><a href="index.html#~LocalTime">LocalTime</a></dt>
            <dd></dd>
        
            <dt><a href="Long.html">Long</a></dt>
            <dd></dd>
        
            <dt><a href="ResultSet.html">ResultSet</a></dt>
            <dd></dd>
        
            <dt><a href="ResultStream.html">ResultStream</a></dt>
            <dd></dd>
        
            <dt><a href="Row.html">Row</a></dt>
            <dd></dd>
        
            <dt><a href="TimeUuid.html">TimeUuid</a></dt>
            <dd></dd>
        
            <dt><a href="Tuple.html">Tuple</a></dt>
            <dd></dd>
        
            <dt><a href="Uuid.html">Uuid</a></dt>
            <dd></dd>
        
            <dt><a href="Vector.html">Vector</a></dt>
            <dd></dd>
        </dl>
    

    

    

    

    
        </div>

## Members

<div class="jsdoc-content">

        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the hour component of the time represented by the current instance, a number from 0 to 23.</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/local-time.ts#L51" target="_blank" rel="noopener">types/local-time.ts, line 51</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the minute component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L55" target="_blank" rel="noopener">types/local-time.ts, line 55</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the second component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L59" target="_blank" rel="noopener">types/local-time.ts, line 59</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the nanoseconds component of the time represented by the current instance, a number from 0 to 999999999.</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/local-time.ts#L63" target="_blank" rel="noopener">types/local-time.ts, line 63</a></p></div>






        
            
<h3 class="name" id="~consistencies"><span class="type-signature">(inner, constant) </span>consistencies<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Consistency levels</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>Writing: A write must be written to at least one node. If all replica nodes for the given row key are down, the write can still succeed after a hinted handoff has been written. If all replica nodes are down at write time, an ANY write is not readable until the replica nodes for that row have recovered.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns a response from the closest replica, as determined by the snitch.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from two of the closest replicas.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from three of the closest replicas.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after a quorum of replicas has responded regardless of data center. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after all replicas have responded. The read operation will fail if a replica does not respond. Writing: A write must be written to the commit log and memory table on all replica nodes in the cluster for that row.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp once a quorum of replicas in the current data center as the coordinator node has reported. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes in the same data center as the coordinator node. Avoids latency of inter-data center communication.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record once a quorum of replicas in each data center of the cluster has responded. Writing: Strong consistency. A write must be written to the commit log and memtable on a quorum of replica nodes in all data centers.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Achieves linearizable consistency for lightweight transactions by preventing unconditional updates.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Same as serial but confined to the data center. A write must be written conditionally to the commit log and memtable on a quorum of replica nodes in the same data center.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Similar to One but only within the DC the coordinator is in.</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/types/index.js#L32" target="_blank" rel="noopener">types/index.js, line 32</a></p></div>






        
            
<h3 class="name" id="~consistencyToString"><span class="type-signature">(inner, constant) </span>consistencyToString<span class="type-signature"> :Object&lt;number, string></span></h3>




<div class="description">
    <p>Mapping of consistency level codes to their string representation.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object&lt;number, string></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/types/index.js#L50" target="_blank" rel="noopener">types/index.js, line 50</a></p></div>






        
            
<h3 class="name" id="~dataTypes"><span class="type-signature">(inner, constant) </span>dataTypes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>CQL data types</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>A custom type.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>ASCII character string.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>64-bit signed long.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Arbitrary bytes (no validation).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>true or false.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Counter column (64-bit signed value).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Variable-precision decimal.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>64-bit IEEE-754 floating point.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>32-bit IEEE-754 floating point.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>32-bit signed integer.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A timestamp.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Type 1 or type 4 UUID.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Arbitrary-precision integer.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Type 1 UUID.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>An IP address. It can be either 4 bytes long (IPv4) or 16 bytes long (IPv6).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A date without a time-zone in the ISO-8601 calendar system.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A value representing the time portion of the day.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>16-bit two's complement integer.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>8-bit two's complement integer.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A collection of elements.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Key/value pairs.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A collection that contains no duplicate elements.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>User-defined type.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A sequence of values.</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/types/index.js#L93" target="_blank" rel="noopener">types/index.js, line 93</a></p></div>






        
            
<h3 class="name" id="~dateCenter"><span class="type-signature">(inner, constant) </span>dateCenter<span class="type-signature"></span></h3>




<div class="description">
    <p>2^31 days before unix epoch is -5877641-06-23. This is the first day that can be represented by this class.</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/local-date.js#L10" target="_blank" rel="noopener">types/local-date.js, line 10</a></p></div>






        
            
<h3 class="name" id="~distance"><span class="type-signature">(inner, constant) </span>distance<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Represents the distance of Cassandra node as assigned by a LoadBalancingPolicy relatively to the driver instance.</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>A local node.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A remote node.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A node that is meant to be ignored.</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/types/index.js#L205" target="_blank" rel="noopener">types/index.js, line 205</a></p></div>






        
            
<h3 class="name" id="~logLevels"><span class="type-signature">(inner, constant) </span>logLevels<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Log level values used for the <code>logLevel</code> client option and emitted in <code>'log'</code> events.</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>Finest-grained diagnostic information (TRACE level events).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Fine-grained diagnostic information useful during development (DEBUG level events).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>High-level informational messages.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Potentially harmful situations (default when logLevel is not set).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Error conditions.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Disables internal driver log forwarding.</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/types/index.js#L221" target="_blank" rel="noopener">types/index.js, line 221</a></p></div>






        
            
<h3 class="name" id="~protocolVersion"><span class="type-signature">(inner, constant) </span>protocolVersion<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Contains information for the different protocol versions supported by the driver.</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v1, supported in Apache Cassandra 1.2--&gt;2.2.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v2, supported in Apache Cassandra 2.0--&gt;2.2.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v3, supported in Apache Cassandra 2.1--&gt;3.x.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v4, supported in Apache Cassandra 2.2--&gt;3.x.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v5, in beta from Apache Cassandra 3.x+. Currently not supported by the
driver.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v1, DSE 5.1+</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v2, DSE 6.0+</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns the higher protocol version that is supported by this driver.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns the lower protocol version that is supported by this driver.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A function that returns a boolean determining whether a given protocol version
is supported.</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/types/protocol-version.js#L30" target="_blank" rel="noopener">types/protocol-version.js, line 30</a></p></div>






        
            
<h3 class="name" id="~responseErrorCodes"><span class="type-signature">(inner, constant) </span>responseErrorCodes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Server error codes returned by Cassandra</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>Something unexpected happened.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Some client message triggered a protocol violation.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Authentication was required and failed.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Raised when coordinator knows there is not enough replicas alive to perform a query with the requested consistency level.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The request cannot be processed because the coordinator is overloaded.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The request was a read request but the coordinator node is bootstrapping.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Error encountered during a truncate request.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on write query on coordinator waiting for response(s) from replicas.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on read query on coordinator waitign for response(s) from replicas.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a read request.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A (user defined) function encountered during execution.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a write request.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The submitted query has a syntax error.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The logged user doesn't have the right to perform the query.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The query is syntactically correct but invalid.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The query is invalid because of some configuration issue.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The query attempted to create a schema element (i.e. keyspace, table) that already exists.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Can be thrown while a prepared statement tries to be executed if the provided statement is not known by the coordinator.</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/types/index.js#L252" target="_blank" rel="noopener">types/index.js, line 252</a></p></div>






        
            
<h3 class="name" id="~unset"><span class="type-signature">(inner, constant) </span>unset<span class="type-signature"></span></h3>




<div class="description">
    <p>Unset representation.</p>
<p>Use this field if you want to set a parameter to <code>unset</code>. Valid for Cassandra 2.2 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/types/index.js#L279" target="_blank" rel="noopener">types/index.js, line 279</a></p></div>






        
    

    
        </div>

## Methods

<div class="jsdoc-content">

        
            

    

    
    <h3 class="name" id="~generateTimestamp"><span class="type-signature">(inner) </span>generateTimestamp<span class="signature">(date<span class="signature-attributes">opt</span>, microseconds<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Long}</span></h3>
    

    



<div class="description">
    <p>Generates a value representing the timestamp for the query in microseconds based on the date and the microseconds provided</p>
</div>









    <h4>Parameters:</h4>
    

<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>date</code></td>
            

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


            
            </td>

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

                

                
                </td>
            

            

            <td class="description last"><p>The date to generate the value, if not provided it will use the current date.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>microseconds</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 number from 0 to 999 used to build the microseconds part of the date.</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/types/index.js#L468" target="_blank" rel="noopener">types/index.js, line 468</a></p></div>















<h4>Returns:</h4>

        


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


    </dd>
</dl>

    





        
            

    

    
    <h3 class="name" id="~isLeapYear"><span class="type-signature">(inner) </span>isLeapYear<span class="signature">(year)</span><span class="type-signature"> &rarr; {boolean}</span></h3>
    

    











    <h4>Parameters:</h4>
    

<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>year</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/types/local-date.js#L18" target="_blank" rel="noopener">types/local-date.js, line 18</a></p></div>















<h4>Returns:</h4>

        


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


    </dd>
</dl>







<header>
    
        
    
</header>


    
        

        
    
    

    

    

    
        </div>

## Classes

<div class="jsdoc-content">

        <dl>
            <dt><a href="BigDecimal.html">BigDecimal</a></dt>
            <dd></dd>
        
            <dt><a href="Duration.html">Duration</a></dt>
            <dd></dd>
        
            <dt><a href="InetAddress.html">InetAddress</a></dt>
            <dd></dd>
        
            <dt><a href="Integer.html">Integer</a></dt>
            <dd></dd>
        
            <dt><a href="LocalDate.html">LocalDate</a></dt>
            <dd></dd>
        
            <dt><a href="index.html#~LocalTime">LocalTime</a></dt>
            <dd></dd>
        
            <dt><a href="Long.html">Long</a></dt>
            <dd></dd>
        
            <dt><a href="ResultSet.html">ResultSet</a></dt>
            <dd></dd>
        
            <dt><a href="ResultStream.html">ResultStream</a></dt>
            <dd></dd>
        
            <dt><a href="Row.html">Row</a></dt>
            <dd></dd>
        
            <dt><a href="TimeUuid.html">TimeUuid</a></dt>
            <dd></dd>
        
            <dt><a href="Tuple.html">Tuple</a></dt>
            <dd></dd>
        
            <dt><a href="Uuid.html">Uuid</a></dt>
            <dd></dd>
        
            <dt><a href="Vector.html">Vector</a></dt>
            <dd></dd>
        </dl>
    

    

    

    

    
        </div>

## Members

<div class="jsdoc-content">

        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the hour component of the time represented by the current instance, a number from 0 to 23.</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/local-time.ts#L51" target="_blank" rel="noopener">types/local-time.ts, line 51</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the minute component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L55" target="_blank" rel="noopener">types/local-time.ts, line 55</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the second component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L59" target="_blank" rel="noopener">types/local-time.ts, line 59</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the nanoseconds component of the time represented by the current instance, a number from 0 to 999999999.</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/local-time.ts#L63" target="_blank" rel="noopener">types/local-time.ts, line 63</a></p></div>






        
            
<h3 class="name" id="~consistencies"><span class="type-signature">(inner, constant) </span>consistencies<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Consistency levels</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>Writing: A write must be written to at least one node. If all replica nodes for the given row key are down, the write can still succeed after a hinted handoff has been written. If all replica nodes are down at write time, an ANY write is not readable until the replica nodes for that row have recovered.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns a response from the closest replica, as determined by the snitch.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from two of the closest replicas.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from three of the closest replicas.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after a quorum of replicas has responded regardless of data center. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after all replicas have responded. The read operation will fail if a replica does not respond. Writing: A write must be written to the commit log and memory table on all replica nodes in the cluster for that row.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp once a quorum of replicas in the current data center as the coordinator node has reported. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes in the same data center as the coordinator node. Avoids latency of inter-data center communication.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record once a quorum of replicas in each data center of the cluster has responded. Writing: Strong consistency. A write must be written to the commit log and memtable on a quorum of replica nodes in all data centers.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Achieves linearizable consistency for lightweight transactions by preventing unconditional updates.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Same as serial but confined to the data center. A write must be written conditionally to the commit log and memtable on a quorum of replica nodes in the same data center.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Similar to One but only within the DC the coordinator is in.</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/types/index.js#L32" target="_blank" rel="noopener">types/index.js, line 32</a></p></div>






        
            
<h3 class="name" id="~consistencyToString"><span class="type-signature">(inner, constant) </span>consistencyToString<span class="type-signature"> :Object&lt;number, string></span></h3>




<div class="description">
    <p>Mapping of consistency level codes to their string representation.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object&lt;number, string></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/types/index.js#L50" target="_blank" rel="noopener">types/index.js, line 50</a></p></div>






        
            
<h3 class="name" id="~dataTypes"><span class="type-signature">(inner, constant) </span>dataTypes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>CQL data types</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>A custom type.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>ASCII character string.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>64-bit signed long.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Arbitrary bytes (no validation).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>true or false.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Counter column (64-bit signed value).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Variable-precision decimal.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>64-bit IEEE-754 floating point.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>32-bit IEEE-754 floating point.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>32-bit signed integer.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A timestamp.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Type 1 or type 4 UUID.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Arbitrary-precision integer.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Type 1 UUID.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>An IP address. It can be either 4 bytes long (IPv4) or 16 bytes long (IPv6).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A date without a time-zone in the ISO-8601 calendar system.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A value representing the time portion of the day.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>16-bit two's complement integer.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>8-bit two's complement integer.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A collection of elements.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Key/value pairs.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A collection that contains no duplicate elements.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>User-defined type.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A sequence of values.</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/types/index.js#L93" target="_blank" rel="noopener">types/index.js, line 93</a></p></div>






        
            
<h3 class="name" id="~dateCenter"><span class="type-signature">(inner, constant) </span>dateCenter<span class="type-signature"></span></h3>




<div class="description">
    <p>2^31 days before unix epoch is -5877641-06-23. This is the first day that can be represented by this class.</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/local-date.js#L10" target="_blank" rel="noopener">types/local-date.js, line 10</a></p></div>






        
            
<h3 class="name" id="~distance"><span class="type-signature">(inner, constant) </span>distance<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Represents the distance of Cassandra node as assigned by a LoadBalancingPolicy relatively to the driver instance.</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>A local node.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A remote node.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A node that is meant to be ignored.</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/types/index.js#L205" target="_blank" rel="noopener">types/index.js, line 205</a></p></div>






        
            
<h3 class="name" id="~logLevels"><span class="type-signature">(inner, constant) </span>logLevels<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Log level values used for the <code>logLevel</code> client option and emitted in <code>'log'</code> events.</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>Finest-grained diagnostic information (TRACE level events).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Fine-grained diagnostic information useful during development (DEBUG level events).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>High-level informational messages.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Potentially harmful situations (default when logLevel is not set).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Error conditions.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Disables internal driver log forwarding.</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/types/index.js#L221" target="_blank" rel="noopener">types/index.js, line 221</a></p></div>






        
            
<h3 class="name" id="~protocolVersion"><span class="type-signature">(inner, constant) </span>protocolVersion<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Contains information for the different protocol versions supported by the driver.</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v1, supported in Apache Cassandra 1.2--&gt;2.2.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v2, supported in Apache Cassandra 2.0--&gt;2.2.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v3, supported in Apache Cassandra 2.1--&gt;3.x.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v4, supported in Apache Cassandra 2.2--&gt;3.x.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v5, in beta from Apache Cassandra 3.x+. Currently not supported by the
driver.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v1, DSE 5.1+</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v2, DSE 6.0+</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns the higher protocol version that is supported by this driver.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns the lower protocol version that is supported by this driver.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A function that returns a boolean determining whether a given protocol version
is supported.</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/types/protocol-version.js#L30" target="_blank" rel="noopener">types/protocol-version.js, line 30</a></p></div>






        
            
<h3 class="name" id="~responseErrorCodes"><span class="type-signature">(inner, constant) </span>responseErrorCodes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Server error codes returned by Cassandra</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>Something unexpected happened.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Some client message triggered a protocol violation.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Authentication was required and failed.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Raised when coordinator knows there is not enough replicas alive to perform a query with the requested consistency level.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The request cannot be processed because the coordinator is overloaded.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The request was a read request but the coordinator node is bootstrapping.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Error encountered during a truncate request.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on write query on coordinator waiting for response(s) from replicas.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on read query on coordinator waitign for response(s) from replicas.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a read request.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A (user defined) function encountered during execution.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a write request.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The submitted query has a syntax error.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The logged user doesn't have the right to perform the query.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The query is syntactically correct but invalid.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The query is invalid because of some configuration issue.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The query attempted to create a schema element (i.e. keyspace, table) that already exists.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Can be thrown while a prepared statement tries to be executed if the provided statement is not known by the coordinator.</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/types/index.js#L252" target="_blank" rel="noopener">types/index.js, line 252</a></p></div>






        
            
<h3 class="name" id="~unset"><span class="type-signature">(inner, constant) </span>unset<span class="type-signature"></span></h3>




<div class="description">
    <p>Unset representation.</p>
<p>Use this field if you want to set a parameter to <code>unset</code>. Valid for Cassandra 2.2 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/types/index.js#L279" target="_blank" rel="noopener">types/index.js, line 279</a></p></div>






        
    

    
        </div>

## Methods

<div class="jsdoc-content">

        
            

    

    
    <h3 class="name" id="~generateTimestamp"><span class="type-signature">(inner) </span>generateTimestamp<span class="signature">(date<span class="signature-attributes">opt</span>, microseconds<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Long}</span></h3>
    

    



<div class="description">
    <p>Generates a value representing the timestamp for the query in microseconds based on the date and the microseconds provided</p>
</div>









    <h4>Parameters:</h4>
    

<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>date</code></td>
            

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


            
            </td>

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

                

                
                </td>
            

            

            <td class="description last"><p>The date to generate the value, if not provided it will use the current date.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>microseconds</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 number from 0 to 999 used to build the microseconds part of the date.</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/types/index.js#L468" target="_blank" rel="noopener">types/index.js, line 468</a></p></div>















<h4>Returns:</h4>

        


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


    </dd>
</dl>

    





        
            

    

    
    <h3 class="name" id="~isLeapYear"><span class="type-signature">(inner) </span>isLeapYear<span class="signature">(year)</span><span class="type-signature"> &rarr; {boolean}</span></h3>
    

    











    <h4>Parameters:</h4>
    

<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>year</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/types/local-date.js#L18" target="_blank" rel="noopener">types/local-date.js, line 18</a></p></div>















<h4>Returns:</h4>

        


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


    </dd>
</dl>







<header>
    
        
    
</header>


    
        

        
    
    

    

    

    
        </div>

## Classes

<div class="jsdoc-content">

        <dl>
            <dt><a href="BigDecimal.html">BigDecimal</a></dt>
            <dd></dd>
        
            <dt><a href="Duration.html">Duration</a></dt>
            <dd></dd>
        
            <dt><a href="InetAddress.html">InetAddress</a></dt>
            <dd></dd>
        
            <dt><a href="Integer.html">Integer</a></dt>
            <dd></dd>
        
            <dt><a href="LocalDate.html">LocalDate</a></dt>
            <dd></dd>
        
            <dt><a href="index.html#~LocalTime">LocalTime</a></dt>
            <dd></dd>
        
            <dt><a href="Long.html">Long</a></dt>
            <dd></dd>
        
            <dt><a href="ResultSet.html">ResultSet</a></dt>
            <dd></dd>
        
            <dt><a href="ResultStream.html">ResultStream</a></dt>
            <dd></dd>
        
            <dt><a href="Row.html">Row</a></dt>
            <dd></dd>
        
            <dt><a href="TimeUuid.html">TimeUuid</a></dt>
            <dd></dd>
        
            <dt><a href="Tuple.html">Tuple</a></dt>
            <dd></dd>
        
            <dt><a href="Uuid.html">Uuid</a></dt>
            <dd></dd>
        
            <dt><a href="Vector.html">Vector</a></dt>
            <dd></dd>
        </dl>
    

    

    

    

    
        </div>

## Members

<div class="jsdoc-content">

        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the hour component of the time represented by the current instance, a number from 0 to 23.</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/local-time.ts#L51" target="_blank" rel="noopener">types/local-time.ts, line 51</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the minute component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L55" target="_blank" rel="noopener">types/local-time.ts, line 55</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the second component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L59" target="_blank" rel="noopener">types/local-time.ts, line 59</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the nanoseconds component of the time represented by the current instance, a number from 0 to 999999999.</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/local-time.ts#L63" target="_blank" rel="noopener">types/local-time.ts, line 63</a></p></div>






        
            
<h3 class="name" id="~consistencies"><span class="type-signature">(inner, constant) </span>consistencies<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Consistency levels</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>Writing: A write must be written to at least one node. If all replica nodes for the given row key are down, the write can still succeed after a hinted handoff has been written. If all replica nodes are down at write time, an ANY write is not readable until the replica nodes for that row have recovered.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns a response from the closest replica, as determined by the snitch.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from two of the closest replicas.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from three of the closest replicas.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after a quorum of replicas has responded regardless of data center. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after all replicas have responded. The read operation will fail if a replica does not respond. Writing: A write must be written to the commit log and memory table on all replica nodes in the cluster for that row.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp once a quorum of replicas in the current data center as the coordinator node has reported. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes in the same data center as the coordinator node. Avoids latency of inter-data center communication.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record once a quorum of replicas in each data center of the cluster has responded. Writing: Strong consistency. A write must be written to the commit log and memtable on a quorum of replica nodes in all data centers.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Achieves linearizable consistency for lightweight transactions by preventing unconditional updates.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Same as serial but confined to the data center. A write must be written conditionally to the commit log and memtable on a quorum of replica nodes in the same data center.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Similar to One but only within the DC the coordinator is in.</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/types/index.js#L32" target="_blank" rel="noopener">types/index.js, line 32</a></p></div>






        
            
<h3 class="name" id="~consistencyToString"><span class="type-signature">(inner, constant) </span>consistencyToString<span class="type-signature"> :Object&lt;number, string></span></h3>




<div class="description">
    <p>Mapping of consistency level codes to their string representation.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object&lt;number, string></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/types/index.js#L50" target="_blank" rel="noopener">types/index.js, line 50</a></p></div>






        
            
<h3 class="name" id="~dataTypes"><span class="type-signature">(inner, constant) </span>dataTypes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>CQL data types</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>A custom type.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>ASCII character string.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>64-bit signed long.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Arbitrary bytes (no validation).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>true or false.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Counter column (64-bit signed value).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Variable-precision decimal.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>64-bit IEEE-754 floating point.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>32-bit IEEE-754 floating point.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>32-bit signed integer.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A timestamp.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Type 1 or type 4 UUID.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Arbitrary-precision integer.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Type 1 UUID.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>An IP address. It can be either 4 bytes long (IPv4) or 16 bytes long (IPv6).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A date without a time-zone in the ISO-8601 calendar system.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A value representing the time portion of the day.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>16-bit two's complement integer.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>8-bit two's complement integer.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A collection of elements.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Key/value pairs.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A collection that contains no duplicate elements.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>User-defined type.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A sequence of values.</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/types/index.js#L93" target="_blank" rel="noopener">types/index.js, line 93</a></p></div>






        
            
<h3 class="name" id="~dateCenter"><span class="type-signature">(inner, constant) </span>dateCenter<span class="type-signature"></span></h3>




<div class="description">
    <p>2^31 days before unix epoch is -5877641-06-23. This is the first day that can be represented by this class.</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/local-date.js#L10" target="_blank" rel="noopener">types/local-date.js, line 10</a></p></div>






        
            
<h3 class="name" id="~distance"><span class="type-signature">(inner, constant) </span>distance<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Represents the distance of Cassandra node as assigned by a LoadBalancingPolicy relatively to the driver instance.</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>A local node.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A remote node.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A node that is meant to be ignored.</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/types/index.js#L205" target="_blank" rel="noopener">types/index.js, line 205</a></p></div>






        
            
<h3 class="name" id="~logLevels"><span class="type-signature">(inner, constant) </span>logLevels<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Log level values used for the <code>logLevel</code> client option and emitted in <code>'log'</code> events.</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>Finest-grained diagnostic information (TRACE level events).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Fine-grained diagnostic information useful during development (DEBUG level events).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>High-level informational messages.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Potentially harmful situations (default when logLevel is not set).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Error conditions.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Disables internal driver log forwarding.</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/types/index.js#L221" target="_blank" rel="noopener">types/index.js, line 221</a></p></div>






        
            
<h3 class="name" id="~protocolVersion"><span class="type-signature">(inner, constant) </span>protocolVersion<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Contains information for the different protocol versions supported by the driver.</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v1, supported in Apache Cassandra 1.2--&gt;2.2.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v2, supported in Apache Cassandra 2.0--&gt;2.2.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v3, supported in Apache Cassandra 2.1--&gt;3.x.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v4, supported in Apache Cassandra 2.2--&gt;3.x.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v5, in beta from Apache Cassandra 3.x+. Currently not supported by the
driver.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v1, DSE 5.1+</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v2, DSE 6.0+</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns the higher protocol version that is supported by this driver.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns the lower protocol version that is supported by this driver.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A function that returns a boolean determining whether a given protocol version
is supported.</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/types/protocol-version.js#L30" target="_blank" rel="noopener">types/protocol-version.js, line 30</a></p></div>






        
            
<h3 class="name" id="~responseErrorCodes"><span class="type-signature">(inner, constant) </span>responseErrorCodes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Server error codes returned by Cassandra</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>Something unexpected happened.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Some client message triggered a protocol violation.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Authentication was required and failed.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Raised when coordinator knows there is not enough replicas alive to perform a query with the requested consistency level.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The request cannot be processed because the coordinator is overloaded.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The request was a read request but the coordinator node is bootstrapping.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Error encountered during a truncate request.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on write query on coordinator waiting for response(s) from replicas.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on read query on coordinator waitign for response(s) from replicas.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a read request.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A (user defined) function encountered during execution.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a write request.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The submitted query has a syntax error.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The logged user doesn't have the right to perform the query.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The query is syntactically correct but invalid.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The query is invalid because of some configuration issue.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>The query attempted to create a schema element (i.e. keyspace, table) that already exists.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Can be thrown while a prepared statement tries to be executed if the provided statement is not known by the coordinator.</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/types/index.js#L252" target="_blank" rel="noopener">types/index.js, line 252</a></p></div>






        
            
<h3 class="name" id="~unset"><span class="type-signature">(inner, constant) </span>unset<span class="type-signature"></span></h3>




<div class="description">
    <p>Unset representation.</p>
<p>Use this field if you want to set a parameter to <code>unset</code>. Valid for Cassandra 2.2 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/types/index.js#L279" target="_blank" rel="noopener">types/index.js, line 279</a></p></div>






        
    

    
        </div>

## Methods

<div class="jsdoc-content">

        
            

    

    
    <h3 class="name" id="~generateTimestamp"><span class="type-signature">(inner) </span>generateTimestamp<span class="signature">(date<span class="signature-attributes">opt</span>, microseconds<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Long}</span></h3>
    

    



<div class="description">
    <p>Generates a value representing the timestamp for the query in microseconds based on the date and the microseconds provided</p>
</div>









    <h4>Parameters:</h4>
    

<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>date</code></td>
            

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


            
            </td>

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

                

                
                </td>
            

            

            <td class="description last"><p>The date to generate the value, if not provided it will use the current date.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>microseconds</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 number from 0 to 999 used to build the microseconds part of the date.</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/types/index.js#L468" target="_blank" rel="noopener">types/index.js, line 468</a></p></div>















<h4>Returns:</h4>

        


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


    </dd>
</dl>

    





        
            

    

    
    <h3 class="name" id="~isLeapYear"><span class="type-signature">(inner) </span>isLeapYear<span class="signature">(year)</span><span class="type-signature"> &rarr; {boolean}</span></h3>
    

    











    <h4>Parameters:</h4>
    

<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>year</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/types/local-date.js#L18" target="_blank" rel="noopener">types/local-date.js, line 18</a></p></div>















<h4>Returns:</h4>

        


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


    </dd>
</dl>







<header>
    
        
    
</header>


    
        

        
    
    

    

    

    
        </div>

## Classes

<div class="jsdoc-content">

        <dl>
            <dt><a href="BigDecimal.html">BigDecimal</a></dt>
            <dd></dd>
        
            <dt><a href="Duration.html">Duration</a></dt>
            <dd></dd>
        
            <dt><a href="InetAddress.html">InetAddress</a></dt>
            <dd></dd>
        
            <dt><a href="Integer.html">Integer</a></dt>
            <dd></dd>
        
            <dt><a href="LocalDate.html">LocalDate</a></dt>
            <dd></dd>
        
            <dt><a href="index.html#~LocalTime">LocalTime</a></dt>
            <dd></dd>
        
            <dt><a href="Long.html">Long</a></dt>
            <dd></dd>
        
            <dt><a href="ResultSet.html">ResultSet</a></dt>
            <dd></dd>
        
            <dt><a href="ResultStream.html">ResultStream</a></dt>
            <dd></dd>
        
            <dt><a href="Row.html">Row</a></dt>
            <dd></dd>
        
            <dt><a href="TimeUuid.html">TimeUuid</a></dt>
            <dd></dd>
        
            <dt><a href="Tuple.html">Tuple</a></dt>
            <dd></dd>
        
            <dt><a href="Uuid.html">Uuid</a></dt>
            <dd></dd>
        
            <dt><a href="Vector.html">Vector</a></dt>
            <dd></dd>
        </dl>
    

    

    

    

    
        </div>

## Members

<div class="jsdoc-content">

        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the hour component of the time represented by the current instance, a number from 0 to 23.</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/local-time.ts#L51" target="_blank" rel="noopener">types/local-time.ts, line 51</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the minute component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L55" target="_blank" rel="noopener">types/local-time.ts, line 55</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the second component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L59" target="_blank" rel="noopener">types/local-time.ts, line 59</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the nanoseconds component of the time represented by the current instance, a number from 0 to 999999999.</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/local-time.ts#L63" target="_blank" rel="noopener">types/local-time.ts, line 63</a></p></div>






        
            
<h3 class="name" id="~consistencies"><span class="type-signature">(inner, constant) </span>consistencies<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Consistency levels</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>Writing: A write must be written to at least one node. If all replica nodes for the given row key are down, the write can still succeed after a hinted handoff has been written. If all replica nodes are down at write time, an ANY write is not readable until the replica nodes for that row have recovered.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns a response from the closest replica, as determined by the snitch.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from two of the closest replicas.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from three of the closest replicas.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after a quorum of replicas has responded regardless of data center. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after all replicas have responded. The read operation will fail if a replica does not respond. Writing: A write must be written to the commit log and memory table on all replica nodes in the cluster for that row.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp once a quorum of replicas in the current data center as the coordinator node has reported. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes in the same data center as the coordinator node. Avoids latency of inter-data center communication.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record once a quorum of replicas in each data center of the cluster has responded. Writing: Strong consistency. A write must be written to the commit log and memtable on a quorum of replica nodes in all data centers.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Achieves linearizable consistency for lightweight transactions by preventing unconditional updates.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Same as serial but confined to the data center. A write must be written conditionally to the commit log and memtable on a quorum of replica nodes in the same data center.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Similar to One but only within the DC the coordinator is in.</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/types/index.js#L32" target="_blank" rel="noopener">types/index.js, line 32</a></p></div>






        
            
<h3 class="name" id="~consistencyToString"><span class="type-signature">(inner, constant) </span>consistencyToString<span class="type-signature"> :Object&lt;number, string></span></h3>




<div class="description">
    <p>Mapping of consistency level codes to their string representation.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object&lt;number, string></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/types/index.js#L50" target="_blank" rel="noopener">types/index.js, line 50</a></p></div>






        
            
<h3 class="name" id="~dataTypes"><span class="type-signature">(inner, constant) </span>dataTypes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>CQL data types</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>A custom type.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>ASCII character string.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>64-bit signed long.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Arbitrary bytes (no validation).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>true or false.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Counter column (64-bit signed value).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Variable-precision decimal.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>64-bit IEEE-754 floating point.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>32-bit IEEE-754 floating point.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>32-bit signed integer.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A timestamp.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Type 1 or type 4 UUID.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Arbitrary-precision integer.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Type 1 UUID.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>An IP address. It can be either 4 bytes long (IPv4) or 16 bytes long (IPv6).</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A date without a time-zone in the ISO-8601 calendar system.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A value representing the time portion of the day.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>16-bit two's complement integer.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>8-bit two's complement integer.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A collection of elements.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>Key/value pairs.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A collection that contains no duplicate elements.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>User-defined type.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A sequence of values.</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/types/index.js#L93" target="_blank" rel="noopener">types/index.js, line 93</a></p></div>






        
            
<h3 class="name" id="~dateCenter"><span class="type-signature">(inner, constant) </span>dateCenter<span class="type-signature"></span></h3>




<div class="description">
    <p>2^31 days before unix epoch is -5877641-06-23. This is the first day that can be represented by this class.</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/local-date.js#L10" target="_blank" rel="noopener">types/local-date.js, line 10</a></p></div>






        
            
<h3 class="name" id="~distance"><span class="type-signature">(inner, constant) </span>distance<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Represents the distance of Cassandra node as assigned by a LoadBalancingPolicy relatively to the driver instance.</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>A local node.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A remote node.</p></td>
        </tr>

    

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

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


            
            </td>

            

            

            <td class="description last"><p>A node that is meant to be ignored.</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/types/index.js#L205" target="_blank" rel="noopener">types/index.js, line 205</a></p></div>






        
            
<h3 class="name" id="~logLevels"><span class="type-signature">(inner, constant) </span>logLevels<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Log level values used for the <code>logLevel</code> client option and emitted in <code>'log'</code> events.</p>
</div>



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


        </li>
    </ul>





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

    

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

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>trace</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Finest-grained diagnostic information (TRACE level events).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>debug</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Fine-grained diagnostic information useful during development (DEBUG level events).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>info</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>High-level informational messages.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>warning</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Potentially harmful situations (default when logLevel is not set).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>error</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Error conditions.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>off</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Disables internal driver log forwarding.</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/types/index.js#L221" target="_blank" rel="noopener">types/index.js, line 221</a></p></div>






        
            
<h3 class="name" id="~protocolVersion"><span class="type-signature">(inner, constant) </span>protocolVersion<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Contains information for the different protocol versions supported by the driver.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>v1</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v1, supported in Apache Cassandra 1.2--&gt;2.2.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v2</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v2, supported in Apache Cassandra 2.0--&gt;2.2.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v3</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v3, supported in Apache Cassandra 2.1--&gt;3.x.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v4</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v4, supported in Apache Cassandra 2.2--&gt;3.x.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v5</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v5, in beta from Apache Cassandra 3.x+. Currently not supported by the
driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dseV1</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v1, DSE 5.1+</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dseV2</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v2, DSE 6.0+</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>maxSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the higher protocol version that is supported by this driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>minSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the lower protocol version that is supported by this driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>isSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"><p>A function that returns a boolean determining whether a given protocol version
is supported.</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/types/protocol-version.js#L30" target="_blank" rel="noopener">types/protocol-version.js, line 30</a></p></div>






        
            
<h3 class="name" id="~responseErrorCodes"><span class="type-signature">(inner, constant) </span>responseErrorCodes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Server error codes returned by Cassandra</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>serverError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Something unexpected happened.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>protocolError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Some client message triggered a protocol violation.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>badCredentials</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Authentication was required and failed.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unavailableException</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Raised when coordinator knows there is not enough replicas alive to perform a query with the requested consistency level.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>overloaded</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The request cannot be processed because the coordinator is overloaded.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>isBootstrapping</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The request was a read request but the coordinator node is bootstrapping.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>truncateError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Error encountered during a truncate request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>writeTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on write query on coordinator waiting for response(s) from replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on read query on coordinator waitign for response(s) from replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a read request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>functionFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A (user defined) function encountered during execution.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>writeFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a write request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>syntaxError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The submitted query has a syntax error.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unauthorized</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The logged user doesn't have the right to perform the query.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>invalid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query is syntactically correct but invalid.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>configError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query is invalid because of some configuration issue.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>alreadyExists</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query attempted to create a schema element (i.e. keyspace, table) that already exists.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unprepared</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Can be thrown while a prepared statement tries to be executed if the provided statement is not known by the coordinator.</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/types/index.js#L252" target="_blank" rel="noopener">types/index.js, line 252</a></p></div>






        
            
<h3 class="name" id="~unset"><span class="type-signature">(inner, constant) </span>unset<span class="type-signature"></span></h3>




<div class="description">
    <p>Unset representation.</p>
<p>Use this field if you want to set a parameter to <code>unset</code>. Valid for Cassandra 2.2 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/types/index.js#L279" target="_blank" rel="noopener">types/index.js, line 279</a></p></div>






        
    

    
        </div>

## Methods

<div class="jsdoc-content">

        
            

    

    
    <h3 class="name" id="~generateTimestamp"><span class="type-signature">(inner) </span>generateTimestamp<span class="signature">(date<span class="signature-attributes">opt</span>, microseconds<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Long}</span></h3>
    

    



<div class="description">
    <p>Generates a value representing the timestamp for the query in microseconds based on the date and the microseconds provided</p>
</div>









    <h4>Parameters:</h4>
    

<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>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">Date</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"><p>The date to generate the value, if not provided it will use the current date.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>microseconds</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 number from 0 to 999 used to build the microseconds part of the date.</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/types/index.js#L468" target="_blank" rel="noopener">types/index.js, line 468</a></p></div>















<h4>Returns:</h4>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Long</span>


    </dd>
</dl>

    





        
            

    

    
    <h3 class="name" id="~isLeapYear"><span class="type-signature">(inner) </span>isLeapYear<span class="signature">(year)</span><span class="type-signature"> &rarr; {boolean}</span></h3>
    

    











    <h4>Parameters:</h4>
    

<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>year</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/types/local-date.js#L18" target="_blank" rel="noopener">types/local-date.js, line 18</a></p></div>















<h4>Returns:</h4>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">boolean</span>


    </dd>
</dl>







<header>
    
        
    
</header>


    
        

        
    
    

    

    

    
        </div>

## Classes

<div class="jsdoc-content">

        <dl>
            <dt><a href="BigDecimal.html">BigDecimal</a></dt>
            <dd></dd>
        
            <dt><a href="Duration.html">Duration</a></dt>
            <dd></dd>
        
            <dt><a href="InetAddress.html">InetAddress</a></dt>
            <dd></dd>
        
            <dt><a href="Integer.html">Integer</a></dt>
            <dd></dd>
        
            <dt><a href="LocalDate.html">LocalDate</a></dt>
            <dd></dd>
        
            <dt><a href="index.html#~LocalTime">LocalTime</a></dt>
            <dd></dd>
        
            <dt><a href="Long.html">Long</a></dt>
            <dd></dd>
        
            <dt><a href="ResultSet.html">ResultSet</a></dt>
            <dd></dd>
        
            <dt><a href="ResultStream.html">ResultStream</a></dt>
            <dd></dd>
        
            <dt><a href="Row.html">Row</a></dt>
            <dd></dd>
        
            <dt><a href="TimeUuid.html">TimeUuid</a></dt>
            <dd></dd>
        
            <dt><a href="Tuple.html">Tuple</a></dt>
            <dd></dd>
        
            <dt><a href="Uuid.html">Uuid</a></dt>
            <dd></dd>
        
            <dt><a href="Vector.html">Vector</a></dt>
            <dd></dd>
        </dl>
    

    

    

    

    
        </div>

## Members

<div class="jsdoc-content">

        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the hour component of the time represented by the current instance, a number from 0 to 23.</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/local-time.ts#L51" target="_blank" rel="noopener">types/local-time.ts, line 51</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the minute component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L55" target="_blank" rel="noopener">types/local-time.ts, line 55</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the second component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L59" target="_blank" rel="noopener">types/local-time.ts, line 59</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the nanoseconds component of the time represented by the current instance, a number from 0 to 999999999.</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/local-time.ts#L63" target="_blank" rel="noopener">types/local-time.ts, line 63</a></p></div>






        
            
<h3 class="name" id="~consistencies"><span class="type-signature">(inner, constant) </span>consistencies<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Consistency levels</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>any</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Writing: A write must be written to at least one node. If all replica nodes for the given row key are down, the write can still succeed after a hinted handoff has been written. If all replica nodes are down at write time, an ANY write is not readable until the replica nodes for that row have recovered.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>one</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns a response from the closest replica, as determined by the snitch.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>two</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from two of the closest replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>three</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from three of the closest replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>quorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after a quorum of replicas has responded regardless of data center. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>all</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after all replicas have responded. The read operation will fail if a replica does not respond. Writing: A write must be written to the commit log and memory table on all replica nodes in the cluster for that row.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localQuorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp once a quorum of replicas in the current data center as the coordinator node has reported. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes in the same data center as the coordinator node. Avoids latency of inter-data center communication.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>eachQuorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record once a quorum of replicas in each data center of the cluster has responded. Writing: Strong consistency. A write must be written to the commit log and memtable on a quorum of replica nodes in all data centers.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>serial</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Achieves linearizable consistency for lightweight transactions by preventing unconditional updates.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localSerial</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Same as serial but confined to the data center. A write must be written conditionally to the commit log and memtable on a quorum of replica nodes in the same data center.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localOne</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Similar to One but only within the DC the coordinator is in.</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/types/index.js#L32" target="_blank" rel="noopener">types/index.js, line 32</a></p></div>






        
            
<h3 class="name" id="~consistencyToString"><span class="type-signature">(inner, constant) </span>consistencyToString<span class="type-signature"> :Object&lt;number, string></span></h3>




<div class="description">
    <p>Mapping of consistency level codes to their string representation.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object&lt;number, string></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/types/index.js#L50" target="_blank" rel="noopener">types/index.js, line 50</a></p></div>






        
            
<h3 class="name" id="~dataTypes"><span class="type-signature">(inner, constant) </span>dataTypes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>CQL data types</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>custom</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A custom type.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>ascii</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>ASCII character string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>bigint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>64-bit signed long.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>blob</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Arbitrary bytes (no validation).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>boolean</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>true or false.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>counter</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Counter column (64-bit signed value).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>decimal</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Variable-precision decimal.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>double</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>64-bit IEEE-754 floating point.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>float</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>32-bit IEEE-754 floating point.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>int</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>32-bit signed integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>text</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>timestamp</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A timestamp.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>uuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Type 1 or type 4 UUID.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>varchar</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>varint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Arbitrary-precision integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>timeuuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Type 1 UUID.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>inet</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>An IP address. It can be either 4 bytes long (IPv4) or 16 bytes long (IPv6).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A date without a time-zone in the ISO-8601 calendar system.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>time</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A value representing the time portion of the day.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>smallint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>16-bit two's complement integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tinyint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>8-bit two's complement integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>list</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A collection of elements.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>map</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Key/value pairs.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>set</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A collection that contains no duplicate elements.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>udt</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>User-defined type.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tuple</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A sequence of values.</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/types/index.js#L93" target="_blank" rel="noopener">types/index.js, line 93</a></p></div>






        
            
<h3 class="name" id="~dateCenter"><span class="type-signature">(inner, constant) </span>dateCenter<span class="type-signature"></span></h3>




<div class="description">
    <p>2^31 days before unix epoch is -5877641-06-23. This is the first day that can be represented by this class.</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/local-date.js#L10" target="_blank" rel="noopener">types/local-date.js, line 10</a></p></div>






        
            
<h3 class="name" id="~distance"><span class="type-signature">(inner, constant) </span>distance<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Represents the distance of Cassandra node as assigned by a LoadBalancingPolicy relatively to the driver instance.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>local</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A local node.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>remote</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A remote node.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>ignored</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A node that is meant to be ignored.</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/types/index.js#L205" target="_blank" rel="noopener">types/index.js, line 205</a></p></div>






        
            
<h3 class="name" id="~logLevels"><span class="type-signature">(inner, constant) </span>logLevels<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Log level values used for the <code>logLevel</code> client option and emitted in <code>'log'</code> events.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>trace</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Finest-grained diagnostic information (TRACE level events).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>debug</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Fine-grained diagnostic information useful during development (DEBUG level events).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>info</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>High-level informational messages.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>warning</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Potentially harmful situations (default when logLevel is not set).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>error</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Error conditions.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>off</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Disables internal driver log forwarding.</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/types/index.js#L221" target="_blank" rel="noopener">types/index.js, line 221</a></p></div>






        
            
<h3 class="name" id="~protocolVersion"><span class="type-signature">(inner, constant) </span>protocolVersion<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Contains information for the different protocol versions supported by the driver.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>v1</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v1, supported in Apache Cassandra 1.2--&gt;2.2.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v2</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v2, supported in Apache Cassandra 2.0--&gt;2.2.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v3</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v3, supported in Apache Cassandra 2.1--&gt;3.x.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v4</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v4, supported in Apache Cassandra 2.2--&gt;3.x.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v5</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v5, in beta from Apache Cassandra 3.x+. Currently not supported by the
driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dseV1</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v1, DSE 5.1+</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dseV2</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v2, DSE 6.0+</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>maxSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the higher protocol version that is supported by this driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>minSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the lower protocol version that is supported by this driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>isSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"><p>A function that returns a boolean determining whether a given protocol version
is supported.</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/types/protocol-version.js#L30" target="_blank" rel="noopener">types/protocol-version.js, line 30</a></p></div>






        
            
<h3 class="name" id="~responseErrorCodes"><span class="type-signature">(inner, constant) </span>responseErrorCodes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Server error codes returned by Cassandra</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>serverError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Something unexpected happened.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>protocolError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Some client message triggered a protocol violation.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>badCredentials</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Authentication was required and failed.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unavailableException</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Raised when coordinator knows there is not enough replicas alive to perform a query with the requested consistency level.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>overloaded</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The request cannot be processed because the coordinator is overloaded.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>isBootstrapping</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The request was a read request but the coordinator node is bootstrapping.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>truncateError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Error encountered during a truncate request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>writeTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on write query on coordinator waiting for response(s) from replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on read query on coordinator waitign for response(s) from replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a read request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>functionFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A (user defined) function encountered during execution.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>writeFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a write request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>syntaxError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The submitted query has a syntax error.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unauthorized</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The logged user doesn't have the right to perform the query.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>invalid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query is syntactically correct but invalid.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>configError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query is invalid because of some configuration issue.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>alreadyExists</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query attempted to create a schema element (i.e. keyspace, table) that already exists.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unprepared</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Can be thrown while a prepared statement tries to be executed if the provided statement is not known by the coordinator.</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/types/index.js#L252" target="_blank" rel="noopener">types/index.js, line 252</a></p></div>






        
            
<h3 class="name" id="~unset"><span class="type-signature">(inner, constant) </span>unset<span class="type-signature"></span></h3>




<div class="description">
    <p>Unset representation.</p>
<p>Use this field if you want to set a parameter to <code>unset</code>. Valid for Cassandra 2.2 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/types/index.js#L279" target="_blank" rel="noopener">types/index.js, line 279</a></p></div>






        
    

    
        </div>

## Methods

<div class="jsdoc-content">

        
            

    

    
    <h3 class="name" id="~generateTimestamp"><span class="type-signature">(inner) </span>generateTimestamp<span class="signature">(date<span class="signature-attributes">opt</span>, microseconds<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Long}</span></h3>
    

    



<div class="description">
    <p>Generates a value representing the timestamp for the query in microseconds based on the date and the microseconds provided</p>
</div>









    <h4>Parameters:</h4>
    

<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>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">Date</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"><p>The date to generate the value, if not provided it will use the current date.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>microseconds</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 number from 0 to 999 used to build the microseconds part of the date.</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/types/index.js#L468" target="_blank" rel="noopener">types/index.js, line 468</a></p></div>















<h4>Returns:</h4>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Long</span>


    </dd>
</dl>

    





        
            

    

    
    <h3 class="name" id="~isLeapYear"><span class="type-signature">(inner) </span>isLeapYear<span class="signature">(year)</span><span class="type-signature"> &rarr; {boolean}</span></h3>
    

    











    <h4>Parameters:</h4>
    

<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>year</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/types/local-date.js#L18" target="_blank" rel="noopener">types/local-date.js, line 18</a></p></div>















<h4>Returns:</h4>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">boolean</span>


    </dd>
</dl>







<header>
    
        
    
</header>


    
        

        
    
    

    

    

    
        </div>

## Classes

<div class="jsdoc-content">

        <dl>
            <dt><a href="BigDecimal.html">BigDecimal</a></dt>
            <dd></dd>
        
            <dt><a href="Duration.html">Duration</a></dt>
            <dd></dd>
        
            <dt><a href="InetAddress.html">InetAddress</a></dt>
            <dd></dd>
        
            <dt><a href="Integer.html">Integer</a></dt>
            <dd></dd>
        
            <dt><a href="LocalDate.html">LocalDate</a></dt>
            <dd></dd>
        
            <dt><a href="index.html#~LocalTime">LocalTime</a></dt>
            <dd></dd>
        
            <dt><a href="Long.html">Long</a></dt>
            <dd></dd>
        
            <dt><a href="ResultSet.html">ResultSet</a></dt>
            <dd></dd>
        
            <dt><a href="ResultStream.html">ResultStream</a></dt>
            <dd></dd>
        
            <dt><a href="Row.html">Row</a></dt>
            <dd></dd>
        
            <dt><a href="TimeUuid.html">TimeUuid</a></dt>
            <dd></dd>
        
            <dt><a href="Tuple.html">Tuple</a></dt>
            <dd></dd>
        
            <dt><a href="Uuid.html">Uuid</a></dt>
            <dd></dd>
        
            <dt><a href="Vector.html">Vector</a></dt>
            <dd></dd>
        </dl>
    

    

    

    

    
        </div>

## Members

<div class="jsdoc-content">

        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the hour component of the time represented by the current instance, a number from 0 to 23.</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/local-time.ts#L51" target="_blank" rel="noopener">types/local-time.ts, line 51</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the minute component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L55" target="_blank" rel="noopener">types/local-time.ts, line 55</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the second component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L59" target="_blank" rel="noopener">types/local-time.ts, line 59</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the nanoseconds component of the time represented by the current instance, a number from 0 to 999999999.</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/local-time.ts#L63" target="_blank" rel="noopener">types/local-time.ts, line 63</a></p></div>






        
            
<h3 class="name" id="~consistencies"><span class="type-signature">(inner, constant) </span>consistencies<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Consistency levels</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>any</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Writing: A write must be written to at least one node. If all replica nodes for the given row key are down, the write can still succeed after a hinted handoff has been written. If all replica nodes are down at write time, an ANY write is not readable until the replica nodes for that row have recovered.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>one</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns a response from the closest replica, as determined by the snitch.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>two</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from two of the closest replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>three</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from three of the closest replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>quorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after a quorum of replicas has responded regardless of data center. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>all</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after all replicas have responded. The read operation will fail if a replica does not respond. Writing: A write must be written to the commit log and memory table on all replica nodes in the cluster for that row.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localQuorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp once a quorum of replicas in the current data center as the coordinator node has reported. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes in the same data center as the coordinator node. Avoids latency of inter-data center communication.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>eachQuorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record once a quorum of replicas in each data center of the cluster has responded. Writing: Strong consistency. A write must be written to the commit log and memtable on a quorum of replica nodes in all data centers.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>serial</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Achieves linearizable consistency for lightweight transactions by preventing unconditional updates.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localSerial</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Same as serial but confined to the data center. A write must be written conditionally to the commit log and memtable on a quorum of replica nodes in the same data center.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localOne</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Similar to One but only within the DC the coordinator is in.</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/types/index.js#L32" target="_blank" rel="noopener">types/index.js, line 32</a></p></div>






        
            
<h3 class="name" id="~consistencyToString"><span class="type-signature">(inner, constant) </span>consistencyToString<span class="type-signature"> :Object&lt;number, string></span></h3>




<div class="description">
    <p>Mapping of consistency level codes to their string representation.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object&lt;number, string></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/types/index.js#L50" target="_blank" rel="noopener">types/index.js, line 50</a></p></div>






        
            
<h3 class="name" id="~dataTypes"><span class="type-signature">(inner, constant) </span>dataTypes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>CQL data types</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>custom</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A custom type.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>ascii</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>ASCII character string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>bigint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>64-bit signed long.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>blob</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Arbitrary bytes (no validation).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>boolean</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>true or false.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>counter</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Counter column (64-bit signed value).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>decimal</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Variable-precision decimal.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>double</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>64-bit IEEE-754 floating point.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>float</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>32-bit IEEE-754 floating point.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>int</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>32-bit signed integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>text</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>timestamp</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A timestamp.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>uuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Type 1 or type 4 UUID.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>varchar</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>varint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Arbitrary-precision integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>timeuuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Type 1 UUID.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>inet</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>An IP address. It can be either 4 bytes long (IPv4) or 16 bytes long (IPv6).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A date without a time-zone in the ISO-8601 calendar system.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>time</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A value representing the time portion of the day.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>smallint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>16-bit two's complement integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tinyint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>8-bit two's complement integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>list</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A collection of elements.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>map</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Key/value pairs.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>set</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A collection that contains no duplicate elements.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>udt</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>User-defined type.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tuple</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A sequence of values.</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/types/index.js#L93" target="_blank" rel="noopener">types/index.js, line 93</a></p></div>






        
            
<h3 class="name" id="~dateCenter"><span class="type-signature">(inner, constant) </span>dateCenter<span class="type-signature"></span></h3>




<div class="description">
    <p>2^31 days before unix epoch is -5877641-06-23. This is the first day that can be represented by this class.</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/local-date.js#L10" target="_blank" rel="noopener">types/local-date.js, line 10</a></p></div>






        
            
<h3 class="name" id="~distance"><span class="type-signature">(inner, constant) </span>distance<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Represents the distance of Cassandra node as assigned by a LoadBalancingPolicy relatively to the driver instance.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>local</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A local node.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>remote</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A remote node.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>ignored</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A node that is meant to be ignored.</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/types/index.js#L205" target="_blank" rel="noopener">types/index.js, line 205</a></p></div>






        
            
<h3 class="name" id="~logLevels"><span class="type-signature">(inner, constant) </span>logLevels<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Log level values used for the <code>logLevel</code> client option and emitted in <code>'log'</code> events.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>trace</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Finest-grained diagnostic information (TRACE level events).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>debug</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Fine-grained diagnostic information useful during development (DEBUG level events).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>info</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>High-level informational messages.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>warning</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Potentially harmful situations (default when logLevel is not set).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>error</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Error conditions.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>off</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Disables internal driver log forwarding.</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/types/index.js#L221" target="_blank" rel="noopener">types/index.js, line 221</a></p></div>






        
            
<h3 class="name" id="~protocolVersion"><span class="type-signature">(inner, constant) </span>protocolVersion<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Contains information for the different protocol versions supported by the driver.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>v1</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v1, supported in Apache Cassandra 1.2--&gt;2.2.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v2</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v2, supported in Apache Cassandra 2.0--&gt;2.2.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v3</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v3, supported in Apache Cassandra 2.1--&gt;3.x.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v4</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v4, supported in Apache Cassandra 2.2--&gt;3.x.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v5</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v5, in beta from Apache Cassandra 3.x+. Currently not supported by the
driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dseV1</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v1, DSE 5.1+</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dseV2</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v2, DSE 6.0+</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>maxSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the higher protocol version that is supported by this driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>minSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the lower protocol version that is supported by this driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>isSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"><p>A function that returns a boolean determining whether a given protocol version
is supported.</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/types/protocol-version.js#L30" target="_blank" rel="noopener">types/protocol-version.js, line 30</a></p></div>






        
            
<h3 class="name" id="~responseErrorCodes"><span class="type-signature">(inner, constant) </span>responseErrorCodes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Server error codes returned by Cassandra</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>serverError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Something unexpected happened.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>protocolError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Some client message triggered a protocol violation.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>badCredentials</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Authentication was required and failed.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unavailableException</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Raised when coordinator knows there is not enough replicas alive to perform a query with the requested consistency level.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>overloaded</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The request cannot be processed because the coordinator is overloaded.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>isBootstrapping</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The request was a read request but the coordinator node is bootstrapping.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>truncateError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Error encountered during a truncate request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>writeTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on write query on coordinator waiting for response(s) from replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on read query on coordinator waitign for response(s) from replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a read request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>functionFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A (user defined) function encountered during execution.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>writeFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a write request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>syntaxError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The submitted query has a syntax error.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unauthorized</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The logged user doesn't have the right to perform the query.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>invalid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query is syntactically correct but invalid.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>configError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query is invalid because of some configuration issue.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>alreadyExists</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query attempted to create a schema element (i.e. keyspace, table) that already exists.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unprepared</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Can be thrown while a prepared statement tries to be executed if the provided statement is not known by the coordinator.</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/types/index.js#L252" target="_blank" rel="noopener">types/index.js, line 252</a></p></div>






        
            
<h3 class="name" id="~unset"><span class="type-signature">(inner, constant) </span>unset<span class="type-signature"></span></h3>




<div class="description">
    <p>Unset representation.</p>
<p>Use this field if you want to set a parameter to <code>unset</code>. Valid for Cassandra 2.2 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/types/index.js#L279" target="_blank" rel="noopener">types/index.js, line 279</a></p></div>






        
    

    
        </div>

## Methods

<div class="jsdoc-content">

        
            

    

    
    <h3 class="name" id="~generateTimestamp"><span class="type-signature">(inner) </span>generateTimestamp<span class="signature">(date<span class="signature-attributes">opt</span>, microseconds<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Long}</span></h3>
    

    



<div class="description">
    <p>Generates a value representing the timestamp for the query in microseconds based on the date and the microseconds provided</p>
</div>









    <h4>Parameters:</h4>
    

<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>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">Date</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"><p>The date to generate the value, if not provided it will use the current date.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>microseconds</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 number from 0 to 999 used to build the microseconds part of the date.</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/types/index.js#L468" target="_blank" rel="noopener">types/index.js, line 468</a></p></div>















<h4>Returns:</h4>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Long</span>


    </dd>
</dl>

    





        
            

    

    
    <h3 class="name" id="~isLeapYear"><span class="type-signature">(inner) </span>isLeapYear<span class="signature">(year)</span><span class="type-signature"> &rarr; {boolean}</span></h3>
    

    











    <h4>Parameters:</h4>
    

<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>year</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/types/local-date.js#L18" target="_blank" rel="noopener">types/local-date.js, line 18</a></p></div>















<h4>Returns:</h4>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">boolean</span>


    </dd>
</dl>







<header>
    
        
    
</header>


    
        

        
    
    

    

    

    
        </div>

## Classes

<div class="jsdoc-content">

        <dl>
            <dt><a href="BigDecimal.html">BigDecimal</a></dt>
            <dd></dd>
        
            <dt><a href="Duration.html">Duration</a></dt>
            <dd></dd>
        
            <dt><a href="InetAddress.html">InetAddress</a></dt>
            <dd></dd>
        
            <dt><a href="Integer.html">Integer</a></dt>
            <dd></dd>
        
            <dt><a href="LocalDate.html">LocalDate</a></dt>
            <dd></dd>
        
            <dt><a href="index.html#~LocalTime">LocalTime</a></dt>
            <dd></dd>
        
            <dt><a href="Long.html">Long</a></dt>
            <dd></dd>
        
            <dt><a href="ResultSet.html">ResultSet</a></dt>
            <dd></dd>
        
            <dt><a href="ResultStream.html">ResultStream</a></dt>
            <dd></dd>
        
            <dt><a href="Row.html">Row</a></dt>
            <dd></dd>
        
            <dt><a href="TimeUuid.html">TimeUuid</a></dt>
            <dd></dd>
        
            <dt><a href="Tuple.html">Tuple</a></dt>
            <dd></dd>
        
            <dt><a href="Uuid.html">Uuid</a></dt>
            <dd></dd>
        
            <dt><a href="Vector.html">Vector</a></dt>
            <dd></dd>
        </dl>
    

    

    

    

    
        </div>

## Members

<div class="jsdoc-content">

        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the hour component of the time represented by the current instance, a number from 0 to 23.</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/local-time.ts#L51" target="_blank" rel="noopener">types/local-time.ts, line 51</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the minute component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L55" target="_blank" rel="noopener">types/local-time.ts, line 55</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the second component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L59" target="_blank" rel="noopener">types/local-time.ts, line 59</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the nanoseconds component of the time represented by the current instance, a number from 0 to 999999999.</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/local-time.ts#L63" target="_blank" rel="noopener">types/local-time.ts, line 63</a></p></div>






        
            
<h3 class="name" id="~consistencies"><span class="type-signature">(inner, constant) </span>consistencies<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Consistency levels</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>any</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Writing: A write must be written to at least one node. If all replica nodes for the given row key are down, the write can still succeed after a hinted handoff has been written. If all replica nodes are down at write time, an ANY write is not readable until the replica nodes for that row have recovered.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>one</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns a response from the closest replica, as determined by the snitch.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>two</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from two of the closest replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>three</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from three of the closest replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>quorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after a quorum of replicas has responded regardless of data center. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>all</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after all replicas have responded. The read operation will fail if a replica does not respond. Writing: A write must be written to the commit log and memory table on all replica nodes in the cluster for that row.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localQuorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp once a quorum of replicas in the current data center as the coordinator node has reported. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes in the same data center as the coordinator node. Avoids latency of inter-data center communication.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>eachQuorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record once a quorum of replicas in each data center of the cluster has responded. Writing: Strong consistency. A write must be written to the commit log and memtable on a quorum of replica nodes in all data centers.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>serial</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Achieves linearizable consistency for lightweight transactions by preventing unconditional updates.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localSerial</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Same as serial but confined to the data center. A write must be written conditionally to the commit log and memtable on a quorum of replica nodes in the same data center.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localOne</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Similar to One but only within the DC the coordinator is in.</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/types/index.js#L32" target="_blank" rel="noopener">types/index.js, line 32</a></p></div>






        
            
<h3 class="name" id="~consistencyToString"><span class="type-signature">(inner, constant) </span>consistencyToString<span class="type-signature"> :Object&lt;number, string></span></h3>




<div class="description">
    <p>Mapping of consistency level codes to their string representation.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object&lt;number, string></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/types/index.js#L50" target="_blank" rel="noopener">types/index.js, line 50</a></p></div>






        
            
<h3 class="name" id="~dataTypes"><span class="type-signature">(inner, constant) </span>dataTypes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>CQL data types</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>custom</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A custom type.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>ascii</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>ASCII character string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>bigint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>64-bit signed long.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>blob</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Arbitrary bytes (no validation).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>boolean</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>true or false.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>counter</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Counter column (64-bit signed value).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>decimal</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Variable-precision decimal.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>double</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>64-bit IEEE-754 floating point.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>float</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>32-bit IEEE-754 floating point.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>int</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>32-bit signed integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>text</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>timestamp</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A timestamp.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>uuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Type 1 or type 4 UUID.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>varchar</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>varint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Arbitrary-precision integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>timeuuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Type 1 UUID.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>inet</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>An IP address. It can be either 4 bytes long (IPv4) or 16 bytes long (IPv6).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A date without a time-zone in the ISO-8601 calendar system.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>time</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A value representing the time portion of the day.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>smallint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>16-bit two's complement integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tinyint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>8-bit two's complement integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>list</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A collection of elements.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>map</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Key/value pairs.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>set</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A collection that contains no duplicate elements.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>udt</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>User-defined type.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tuple</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A sequence of values.</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/types/index.js#L93" target="_blank" rel="noopener">types/index.js, line 93</a></p></div>






        
            
<h3 class="name" id="~dateCenter"><span class="type-signature">(inner, constant) </span>dateCenter<span class="type-signature"></span></h3>




<div class="description">
    <p>2^31 days before unix epoch is -5877641-06-23. This is the first day that can be represented by this class.</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/local-date.js#L10" target="_blank" rel="noopener">types/local-date.js, line 10</a></p></div>






        
            
<h3 class="name" id="~distance"><span class="type-signature">(inner, constant) </span>distance<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Represents the distance of Cassandra node as assigned by a LoadBalancingPolicy relatively to the driver instance.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>local</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A local node.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>remote</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A remote node.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>ignored</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A node that is meant to be ignored.</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/types/index.js#L205" target="_blank" rel="noopener">types/index.js, line 205</a></p></div>






        
            
<h3 class="name" id="~logLevels"><span class="type-signature">(inner, constant) </span>logLevels<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Log level values used for the <code>logLevel</code> client option and emitted in <code>'log'</code> events.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>trace</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Finest-grained diagnostic information (TRACE level events).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>debug</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Fine-grained diagnostic information useful during development (DEBUG level events).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>info</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>High-level informational messages.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>warning</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Potentially harmful situations (default when logLevel is not set).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>error</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Error conditions.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>off</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Disables internal driver log forwarding.</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/types/index.js#L221" target="_blank" rel="noopener">types/index.js, line 221</a></p></div>






        
            
<h3 class="name" id="~protocolVersion"><span class="type-signature">(inner, constant) </span>protocolVersion<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Contains information for the different protocol versions supported by the driver.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>v1</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v1, supported in Apache Cassandra 1.2--&gt;2.2.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v2</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v2, supported in Apache Cassandra 2.0--&gt;2.2.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v3</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v3, supported in Apache Cassandra 2.1--&gt;3.x.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v4</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v4, supported in Apache Cassandra 2.2--&gt;3.x.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v5</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v5, in beta from Apache Cassandra 3.x+. Currently not supported by the
driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dseV1</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v1, DSE 5.1+</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dseV2</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v2, DSE 6.0+</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>maxSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the higher protocol version that is supported by this driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>minSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the lower protocol version that is supported by this driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>isSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"><p>A function that returns a boolean determining whether a given protocol version
is supported.</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/types/protocol-version.js#L30" target="_blank" rel="noopener">types/protocol-version.js, line 30</a></p></div>






        
            
<h3 class="name" id="~responseErrorCodes"><span class="type-signature">(inner, constant) </span>responseErrorCodes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Server error codes returned by Cassandra</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>serverError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Something unexpected happened.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>protocolError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Some client message triggered a protocol violation.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>badCredentials</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Authentication was required and failed.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unavailableException</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Raised when coordinator knows there is not enough replicas alive to perform a query with the requested consistency level.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>overloaded</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The request cannot be processed because the coordinator is overloaded.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>isBootstrapping</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The request was a read request but the coordinator node is bootstrapping.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>truncateError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Error encountered during a truncate request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>writeTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on write query on coordinator waiting for response(s) from replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on read query on coordinator waitign for response(s) from replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a read request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>functionFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A (user defined) function encountered during execution.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>writeFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a write request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>syntaxError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The submitted query has a syntax error.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unauthorized</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The logged user doesn't have the right to perform the query.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>invalid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query is syntactically correct but invalid.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>configError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query is invalid because of some configuration issue.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>alreadyExists</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query attempted to create a schema element (i.e. keyspace, table) that already exists.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unprepared</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Can be thrown while a prepared statement tries to be executed if the provided statement is not known by the coordinator.</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/types/index.js#L252" target="_blank" rel="noopener">types/index.js, line 252</a></p></div>






        
            
<h3 class="name" id="~unset"><span class="type-signature">(inner, constant) </span>unset<span class="type-signature"></span></h3>




<div class="description">
    <p>Unset representation.</p>
<p>Use this field if you want to set a parameter to <code>unset</code>. Valid for Cassandra 2.2 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/types/index.js#L279" target="_blank" rel="noopener">types/index.js, line 279</a></p></div>






        
    

    
        </div>

## Methods

<div class="jsdoc-content">

        
            

    

    
    <h3 class="name" id="~generateTimestamp"><span class="type-signature">(inner) </span>generateTimestamp<span class="signature">(date<span class="signature-attributes">opt</span>, microseconds<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Long}</span></h3>
    

    



<div class="description">
    <p>Generates a value representing the timestamp for the query in microseconds based on the date and the microseconds provided</p>
</div>









    <h4>Parameters:</h4>
    

<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>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">Date</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"><p>The date to generate the value, if not provided it will use the current date.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>microseconds</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 number from 0 to 999 used to build the microseconds part of the date.</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/types/index.js#L468" target="_blank" rel="noopener">types/index.js, line 468</a></p></div>















<h4>Returns:</h4>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Long</span>


    </dd>
</dl>

    





        
            

    

    
    <h3 class="name" id="~isLeapYear"><span class="type-signature">(inner) </span>isLeapYear<span class="signature">(year)</span><span class="type-signature"> &rarr; {boolean}</span></h3>
    

    











    <h4>Parameters:</h4>
    

<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>year</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/types/local-date.js#L18" target="_blank" rel="noopener">types/local-date.js, line 18</a></p></div>















<h4>Returns:</h4>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">boolean</span>


    </dd>
</dl>







<header>
    
        
    
</header>


    
        

        
    
    

    

    

    
        </div>

## Classes

<div class="jsdoc-content">

        <dl>
            <dt><a href="BigDecimal.html">BigDecimal</a></dt>
            <dd></dd>
        
            <dt><a href="Duration.html">Duration</a></dt>
            <dd></dd>
        
            <dt><a href="InetAddress.html">InetAddress</a></dt>
            <dd></dd>
        
            <dt><a href="Integer.html">Integer</a></dt>
            <dd></dd>
        
            <dt><a href="LocalDate.html">LocalDate</a></dt>
            <dd></dd>
        
            <dt><a href="index.html#~LocalTime">LocalTime</a></dt>
            <dd></dd>
        
            <dt><a href="Long.html">Long</a></dt>
            <dd></dd>
        
            <dt><a href="ResultSet.html">ResultSet</a></dt>
            <dd></dd>
        
            <dt><a href="ResultStream.html">ResultStream</a></dt>
            <dd></dd>
        
            <dt><a href="Row.html">Row</a></dt>
            <dd></dd>
        
            <dt><a href="TimeUuid.html">TimeUuid</a></dt>
            <dd></dd>
        
            <dt><a href="Tuple.html">Tuple</a></dt>
            <dd></dd>
        
            <dt><a href="Uuid.html">Uuid</a></dt>
            <dd></dd>
        
            <dt><a href="Vector.html">Vector</a></dt>
            <dd></dd>
        </dl>
    

    

    

    

    
        </div>

## Members

<div class="jsdoc-content">

        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the hour component of the time represented by the current instance, a number from 0 to 23.</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/local-time.ts#L51" target="_blank" rel="noopener">types/local-time.ts, line 51</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the minute component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L55" target="_blank" rel="noopener">types/local-time.ts, line 55</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the second component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L59" target="_blank" rel="noopener">types/local-time.ts, line 59</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the nanoseconds component of the time represented by the current instance, a number from 0 to 999999999.</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/local-time.ts#L63" target="_blank" rel="noopener">types/local-time.ts, line 63</a></p></div>






        
            
<h3 class="name" id="~consistencies"><span class="type-signature">(inner, constant) </span>consistencies<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Consistency levels</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>any</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Writing: A write must be written to at least one node. If all replica nodes for the given row key are down, the write can still succeed after a hinted handoff has been written. If all replica nodes are down at write time, an ANY write is not readable until the replica nodes for that row have recovered.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>one</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns a response from the closest replica, as determined by the snitch.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>two</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from two of the closest replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>three</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from three of the closest replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>quorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after a quorum of replicas has responded regardless of data center. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>all</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after all replicas have responded. The read operation will fail if a replica does not respond. Writing: A write must be written to the commit log and memory table on all replica nodes in the cluster for that row.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localQuorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp once a quorum of replicas in the current data center as the coordinator node has reported. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes in the same data center as the coordinator node. Avoids latency of inter-data center communication.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>eachQuorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record once a quorum of replicas in each data center of the cluster has responded. Writing: Strong consistency. A write must be written to the commit log and memtable on a quorum of replica nodes in all data centers.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>serial</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Achieves linearizable consistency for lightweight transactions by preventing unconditional updates.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localSerial</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Same as serial but confined to the data center. A write must be written conditionally to the commit log and memtable on a quorum of replica nodes in the same data center.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localOne</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Similar to One but only within the DC the coordinator is in.</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/types/index.js#L32" target="_blank" rel="noopener">types/index.js, line 32</a></p></div>






        
            
<h3 class="name" id="~consistencyToString"><span class="type-signature">(inner, constant) </span>consistencyToString<span class="type-signature"> :Object&lt;number, string></span></h3>




<div class="description">
    <p>Mapping of consistency level codes to their string representation.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object&lt;number, string></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/types/index.js#L50" target="_blank" rel="noopener">types/index.js, line 50</a></p></div>






        
            
<h3 class="name" id="~dataTypes"><span class="type-signature">(inner, constant) </span>dataTypes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>CQL data types</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>custom</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A custom type.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>ascii</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>ASCII character string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>bigint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>64-bit signed long.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>blob</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Arbitrary bytes (no validation).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>boolean</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>true or false.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>counter</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Counter column (64-bit signed value).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>decimal</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Variable-precision decimal.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>double</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>64-bit IEEE-754 floating point.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>float</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>32-bit IEEE-754 floating point.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>int</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>32-bit signed integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>text</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>timestamp</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A timestamp.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>uuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Type 1 or type 4 UUID.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>varchar</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>varint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Arbitrary-precision integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>timeuuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Type 1 UUID.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>inet</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>An IP address. It can be either 4 bytes long (IPv4) or 16 bytes long (IPv6).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A date without a time-zone in the ISO-8601 calendar system.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>time</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A value representing the time portion of the day.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>smallint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>16-bit two's complement integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tinyint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>8-bit two's complement integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>list</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A collection of elements.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>map</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Key/value pairs.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>set</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A collection that contains no duplicate elements.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>udt</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>User-defined type.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tuple</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A sequence of values.</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/types/index.js#L93" target="_blank" rel="noopener">types/index.js, line 93</a></p></div>






        
            
<h3 class="name" id="~dateCenter"><span class="type-signature">(inner, constant) </span>dateCenter<span class="type-signature"></span></h3>




<div class="description">
    <p>2^31 days before unix epoch is -5877641-06-23. This is the first day that can be represented by this class.</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/local-date.js#L10" target="_blank" rel="noopener">types/local-date.js, line 10</a></p></div>






        
            
<h3 class="name" id="~distance"><span class="type-signature">(inner, constant) </span>distance<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Represents the distance of Cassandra node as assigned by a LoadBalancingPolicy relatively to the driver instance.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>local</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A local node.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>remote</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A remote node.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>ignored</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A node that is meant to be ignored.</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/types/index.js#L205" target="_blank" rel="noopener">types/index.js, line 205</a></p></div>






        
            
<h3 class="name" id="~logLevels"><span class="type-signature">(inner, constant) </span>logLevels<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Log level values used for the <code>logLevel</code> client option and emitted in <code>'log'</code> events.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>trace</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Finest-grained diagnostic information (TRACE level events).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>debug</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Fine-grained diagnostic information useful during development (DEBUG level events).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>info</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>High-level informational messages.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>warning</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Potentially harmful situations (default when logLevel is not set).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>error</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Error conditions.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>off</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Disables internal driver log forwarding.</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/types/index.js#L221" target="_blank" rel="noopener">types/index.js, line 221</a></p></div>






        
            
<h3 class="name" id="~protocolVersion"><span class="type-signature">(inner, constant) </span>protocolVersion<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Contains information for the different protocol versions supported by the driver.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>v1</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v1, supported in Apache Cassandra 1.2--&gt;2.2.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v2</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v2, supported in Apache Cassandra 2.0--&gt;2.2.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v3</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v3, supported in Apache Cassandra 2.1--&gt;3.x.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v4</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v4, supported in Apache Cassandra 2.2--&gt;3.x.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v5</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v5, in beta from Apache Cassandra 3.x+. Currently not supported by the
driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dseV1</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v1, DSE 5.1+</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dseV2</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v2, DSE 6.0+</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>maxSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the higher protocol version that is supported by this driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>minSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the lower protocol version that is supported by this driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>isSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"><p>A function that returns a boolean determining whether a given protocol version
is supported.</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/types/protocol-version.js#L30" target="_blank" rel="noopener">types/protocol-version.js, line 30</a></p></div>






        
            
<h3 class="name" id="~responseErrorCodes"><span class="type-signature">(inner, constant) </span>responseErrorCodes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Server error codes returned by Cassandra</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>serverError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Something unexpected happened.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>protocolError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Some client message triggered a protocol violation.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>badCredentials</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Authentication was required and failed.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unavailableException</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Raised when coordinator knows there is not enough replicas alive to perform a query with the requested consistency level.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>overloaded</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The request cannot be processed because the coordinator is overloaded.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>isBootstrapping</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The request was a read request but the coordinator node is bootstrapping.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>truncateError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Error encountered during a truncate request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>writeTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on write query on coordinator waiting for response(s) from replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on read query on coordinator waitign for response(s) from replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a read request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>functionFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A (user defined) function encountered during execution.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>writeFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a write request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>syntaxError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The submitted query has a syntax error.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unauthorized</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The logged user doesn't have the right to perform the query.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>invalid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query is syntactically correct but invalid.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>configError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query is invalid because of some configuration issue.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>alreadyExists</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query attempted to create a schema element (i.e. keyspace, table) that already exists.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unprepared</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Can be thrown while a prepared statement tries to be executed if the provided statement is not known by the coordinator.</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/types/index.js#L252" target="_blank" rel="noopener">types/index.js, line 252</a></p></div>






        
            
<h3 class="name" id="~unset"><span class="type-signature">(inner, constant) </span>unset<span class="type-signature"></span></h3>




<div class="description">
    <p>Unset representation.</p>
<p>Use this field if you want to set a parameter to <code>unset</code>. Valid for Cassandra 2.2 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/types/index.js#L279" target="_blank" rel="noopener">types/index.js, line 279</a></p></div>






        
    

    
        </div>

## Methods

<div class="jsdoc-content">

        
            

    

    
    <h3 class="name" id="~generateTimestamp"><span class="type-signature">(inner) </span>generateTimestamp<span class="signature">(date<span class="signature-attributes">opt</span>, microseconds<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Long}</span></h3>
    

    



<div class="description">
    <p>Generates a value representing the timestamp for the query in microseconds based on the date and the microseconds provided</p>
</div>









    <h4>Parameters:</h4>
    

<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>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">Date</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"><p>The date to generate the value, if not provided it will use the current date.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>microseconds</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 number from 0 to 999 used to build the microseconds part of the date.</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/types/index.js#L468" target="_blank" rel="noopener">types/index.js, line 468</a></p></div>















<h4>Returns:</h4>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Long</span>


    </dd>
</dl>

    





        
            

    

    
    <h3 class="name" id="~isLeapYear"><span class="type-signature">(inner) </span>isLeapYear<span class="signature">(year)</span><span class="type-signature"> &rarr; {boolean}</span></h3>
    

    











    <h4>Parameters:</h4>
    

<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>year</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/types/local-date.js#L18" target="_blank" rel="noopener">types/local-date.js, line 18</a></p></div>















<h4>Returns:</h4>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">boolean</span>


    </dd>
</dl>







<header>
    
        
    
</header>


    
        

        
    
    

    

    

    
        </div>

## Classes

<div class="jsdoc-content">

        <dl>
            <dt><a href="BigDecimal.html">BigDecimal</a></dt>
            <dd></dd>
        
            <dt><a href="Duration.html">Duration</a></dt>
            <dd></dd>
        
            <dt><a href="InetAddress.html">InetAddress</a></dt>
            <dd></dd>
        
            <dt><a href="Integer.html">Integer</a></dt>
            <dd></dd>
        
            <dt><a href="LocalDate.html">LocalDate</a></dt>
            <dd></dd>
        
            <dt><a href="index.html#~LocalTime">LocalTime</a></dt>
            <dd></dd>
        
            <dt><a href="Long.html">Long</a></dt>
            <dd></dd>
        
            <dt><a href="ResultSet.html">ResultSet</a></dt>
            <dd></dd>
        
            <dt><a href="ResultStream.html">ResultStream</a></dt>
            <dd></dd>
        
            <dt><a href="Row.html">Row</a></dt>
            <dd></dd>
        
            <dt><a href="TimeUuid.html">TimeUuid</a></dt>
            <dd></dd>
        
            <dt><a href="Tuple.html">Tuple</a></dt>
            <dd></dd>
        
            <dt><a href="Uuid.html">Uuid</a></dt>
            <dd></dd>
        
            <dt><a href="Vector.html">Vector</a></dt>
            <dd></dd>
        </dl>
    

    

    

    

    
        </div>

## Members

<div class="jsdoc-content">

        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the hour component of the time represented by the current instance, a number from 0 to 23.</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/local-time.ts#L51" target="_blank" rel="noopener">types/local-time.ts, line 51</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the minute component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L55" target="_blank" rel="noopener">types/local-time.ts, line 55</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the second component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L59" target="_blank" rel="noopener">types/local-time.ts, line 59</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the nanoseconds component of the time represented by the current instance, a number from 0 to 999999999.</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/local-time.ts#L63" target="_blank" rel="noopener">types/local-time.ts, line 63</a></p></div>






        
            
<h3 class="name" id="~consistencies"><span class="type-signature">(inner, constant) </span>consistencies<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Consistency levels</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>any</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Writing: A write must be written to at least one node. If all replica nodes for the given row key are down, the write can still succeed after a hinted handoff has been written. If all replica nodes are down at write time, an ANY write is not readable until the replica nodes for that row have recovered.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>one</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns a response from the closest replica, as determined by the snitch.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>two</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from two of the closest replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>three</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from three of the closest replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>quorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after a quorum of replicas has responded regardless of data center. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>all</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after all replicas have responded. The read operation will fail if a replica does not respond. Writing: A write must be written to the commit log and memory table on all replica nodes in the cluster for that row.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localQuorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp once a quorum of replicas in the current data center as the coordinator node has reported. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes in the same data center as the coordinator node. Avoids latency of inter-data center communication.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>eachQuorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record once a quorum of replicas in each data center of the cluster has responded. Writing: Strong consistency. A write must be written to the commit log and memtable on a quorum of replica nodes in all data centers.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>serial</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Achieves linearizable consistency for lightweight transactions by preventing unconditional updates.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localSerial</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Same as serial but confined to the data center. A write must be written conditionally to the commit log and memtable on a quorum of replica nodes in the same data center.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localOne</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Similar to One but only within the DC the coordinator is in.</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/types/index.js#L32" target="_blank" rel="noopener">types/index.js, line 32</a></p></div>






        
            
<h3 class="name" id="~consistencyToString"><span class="type-signature">(inner, constant) </span>consistencyToString<span class="type-signature"> :Object&lt;number, string></span></h3>




<div class="description">
    <p>Mapping of consistency level codes to their string representation.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object&lt;number, string></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/types/index.js#L50" target="_blank" rel="noopener">types/index.js, line 50</a></p></div>






        
            
<h3 class="name" id="~dataTypes"><span class="type-signature">(inner, constant) </span>dataTypes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>CQL data types</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>custom</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A custom type.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>ascii</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>ASCII character string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>bigint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>64-bit signed long.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>blob</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Arbitrary bytes (no validation).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>boolean</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>true or false.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>counter</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Counter column (64-bit signed value).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>decimal</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Variable-precision decimal.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>double</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>64-bit IEEE-754 floating point.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>float</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>32-bit IEEE-754 floating point.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>int</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>32-bit signed integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>text</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>timestamp</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A timestamp.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>uuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Type 1 or type 4 UUID.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>varchar</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>varint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Arbitrary-precision integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>timeuuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Type 1 UUID.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>inet</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>An IP address. It can be either 4 bytes long (IPv4) or 16 bytes long (IPv6).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A date without a time-zone in the ISO-8601 calendar system.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>time</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A value representing the time portion of the day.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>smallint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>16-bit two's complement integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tinyint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>8-bit two's complement integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>list</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A collection of elements.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>map</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Key/value pairs.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>set</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A collection that contains no duplicate elements.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>udt</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>User-defined type.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tuple</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A sequence of values.</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/types/index.js#L93" target="_blank" rel="noopener">types/index.js, line 93</a></p></div>






        
            
<h3 class="name" id="~dateCenter"><span class="type-signature">(inner, constant) </span>dateCenter<span class="type-signature"></span></h3>




<div class="description">
    <p>2^31 days before unix epoch is -5877641-06-23. This is the first day that can be represented by this class.</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/local-date.js#L10" target="_blank" rel="noopener">types/local-date.js, line 10</a></p></div>






        
            
<h3 class="name" id="~distance"><span class="type-signature">(inner, constant) </span>distance<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Represents the distance of Cassandra node as assigned by a LoadBalancingPolicy relatively to the driver instance.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>local</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A local node.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>remote</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A remote node.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>ignored</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A node that is meant to be ignored.</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/types/index.js#L205" target="_blank" rel="noopener">types/index.js, line 205</a></p></div>






        
            
<h3 class="name" id="~logLevels"><span class="type-signature">(inner, constant) </span>logLevels<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Log level values used for the <code>logLevel</code> client option and emitted in <code>'log'</code> events.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>trace</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Finest-grained diagnostic information (TRACE level events).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>debug</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Fine-grained diagnostic information useful during development (DEBUG level events).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>info</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>High-level informational messages.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>warning</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Potentially harmful situations (default when logLevel is not set).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>error</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Error conditions.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>off</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Disables internal driver log forwarding.</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/types/index.js#L221" target="_blank" rel="noopener">types/index.js, line 221</a></p></div>






        
            
<h3 class="name" id="~protocolVersion"><span class="type-signature">(inner, constant) </span>protocolVersion<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Contains information for the different protocol versions supported by the driver.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>v1</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v1, supported in Apache Cassandra 1.2--&gt;2.2.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v2</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v2, supported in Apache Cassandra 2.0--&gt;2.2.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v3</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v3, supported in Apache Cassandra 2.1--&gt;3.x.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v4</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v4, supported in Apache Cassandra 2.2--&gt;3.x.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v5</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v5, in beta from Apache Cassandra 3.x+. Currently not supported by the
driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dseV1</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v1, DSE 5.1+</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dseV2</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v2, DSE 6.0+</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>maxSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the higher protocol version that is supported by this driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>minSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the lower protocol version that is supported by this driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>isSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"><p>A function that returns a boolean determining whether a given protocol version
is supported.</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/types/protocol-version.js#L30" target="_blank" rel="noopener">types/protocol-version.js, line 30</a></p></div>






        
            
<h3 class="name" id="~responseErrorCodes"><span class="type-signature">(inner, constant) </span>responseErrorCodes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Server error codes returned by Cassandra</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>serverError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Something unexpected happened.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>protocolError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Some client message triggered a protocol violation.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>badCredentials</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Authentication was required and failed.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unavailableException</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Raised when coordinator knows there is not enough replicas alive to perform a query with the requested consistency level.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>overloaded</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The request cannot be processed because the coordinator is overloaded.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>isBootstrapping</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The request was a read request but the coordinator node is bootstrapping.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>truncateError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Error encountered during a truncate request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>writeTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on write query on coordinator waiting for response(s) from replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on read query on coordinator waitign for response(s) from replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a read request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>functionFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A (user defined) function encountered during execution.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>writeFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a write request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>syntaxError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The submitted query has a syntax error.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unauthorized</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The logged user doesn't have the right to perform the query.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>invalid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query is syntactically correct but invalid.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>configError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query is invalid because of some configuration issue.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>alreadyExists</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query attempted to create a schema element (i.e. keyspace, table) that already exists.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unprepared</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Can be thrown while a prepared statement tries to be executed if the provided statement is not known by the coordinator.</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/types/index.js#L252" target="_blank" rel="noopener">types/index.js, line 252</a></p></div>






        
            
<h3 class="name" id="~unset"><span class="type-signature">(inner, constant) </span>unset<span class="type-signature"></span></h3>




<div class="description">
    <p>Unset representation.</p>
<p>Use this field if you want to set a parameter to <code>unset</code>. Valid for Cassandra 2.2 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/types/index.js#L279" target="_blank" rel="noopener">types/index.js, line 279</a></p></div>






        
    

    
        </div>

## Methods

<div class="jsdoc-content">

        
            

    

    
    <h3 class="name" id="~generateTimestamp"><span class="type-signature">(inner) </span>generateTimestamp<span class="signature">(date<span class="signature-attributes">opt</span>, microseconds<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Long}</span></h3>
    

    



<div class="description">
    <p>Generates a value representing the timestamp for the query in microseconds based on the date and the microseconds provided</p>
</div>









    <h4>Parameters:</h4>
    

<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>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">Date</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"><p>The date to generate the value, if not provided it will use the current date.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>microseconds</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 number from 0 to 999 used to build the microseconds part of the date.</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/types/index.js#L468" target="_blank" rel="noopener">types/index.js, line 468</a></p></div>















<h4>Returns:</h4>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Long</span>


    </dd>
</dl>

    





        
            

    

    
    <h3 class="name" id="~isLeapYear"><span class="type-signature">(inner) </span>isLeapYear<span class="signature">(year)</span><span class="type-signature"> &rarr; {boolean}</span></h3>
    

    











    <h4>Parameters:</h4>
    

<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>year</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/types/local-date.js#L18" target="_blank" rel="noopener">types/local-date.js, line 18</a></p></div>















<h4>Returns:</h4>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">boolean</span>


    </dd>
</dl>







<header>
    
        
    
</header>


    
        

        
    
    

    

    

    
        </div>

## Classes

<div class="jsdoc-content">

        <dl>
            <dt><a href="BigDecimal.html">BigDecimal</a></dt>
            <dd></dd>
        
            <dt><a href="Duration.html">Duration</a></dt>
            <dd></dd>
        
            <dt><a href="InetAddress.html">InetAddress</a></dt>
            <dd></dd>
        
            <dt><a href="Integer.html">Integer</a></dt>
            <dd></dd>
        
            <dt><a href="LocalDate.html">LocalDate</a></dt>
            <dd></dd>
        
            <dt><a href="index.html#~LocalTime">LocalTime</a></dt>
            <dd></dd>
        
            <dt><a href="Long.html">Long</a></dt>
            <dd></dd>
        
            <dt><a href="ResultSet.html">ResultSet</a></dt>
            <dd></dd>
        
            <dt><a href="ResultStream.html">ResultStream</a></dt>
            <dd></dd>
        
            <dt><a href="Row.html">Row</a></dt>
            <dd></dd>
        
            <dt><a href="TimeUuid.html">TimeUuid</a></dt>
            <dd></dd>
        
            <dt><a href="Tuple.html">Tuple</a></dt>
            <dd></dd>
        
            <dt><a href="Uuid.html">Uuid</a></dt>
            <dd></dd>
        
            <dt><a href="Vector.html">Vector</a></dt>
            <dd></dd>
        </dl>
    

    

    

    

    
        </div>

## Members

<div class="jsdoc-content">

        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the hour component of the time represented by the current instance, a number from 0 to 23.</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/local-time.ts#L51" target="_blank" rel="noopener">types/local-time.ts, line 51</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the minute component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L55" target="_blank" rel="noopener">types/local-time.ts, line 55</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the second component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L59" target="_blank" rel="noopener">types/local-time.ts, line 59</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the nanoseconds component of the time represented by the current instance, a number from 0 to 999999999.</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/local-time.ts#L63" target="_blank" rel="noopener">types/local-time.ts, line 63</a></p></div>






        
            
<h3 class="name" id="~consistencies"><span class="type-signature">(inner, constant) </span>consistencies<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Consistency levels</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>any</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Writing: A write must be written to at least one node. If all replica nodes for the given row key are down, the write can still succeed after a hinted handoff has been written. If all replica nodes are down at write time, an ANY write is not readable until the replica nodes for that row have recovered.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>one</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns a response from the closest replica, as determined by the snitch.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>two</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from two of the closest replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>three</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from three of the closest replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>quorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after a quorum of replicas has responded regardless of data center. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>all</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after all replicas have responded. The read operation will fail if a replica does not respond. Writing: A write must be written to the commit log and memory table on all replica nodes in the cluster for that row.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localQuorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp once a quorum of replicas in the current data center as the coordinator node has reported. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes in the same data center as the coordinator node. Avoids latency of inter-data center communication.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>eachQuorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record once a quorum of replicas in each data center of the cluster has responded. Writing: Strong consistency. A write must be written to the commit log and memtable on a quorum of replica nodes in all data centers.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>serial</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Achieves linearizable consistency for lightweight transactions by preventing unconditional updates.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localSerial</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Same as serial but confined to the data center. A write must be written conditionally to the commit log and memtable on a quorum of replica nodes in the same data center.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localOne</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Similar to One but only within the DC the coordinator is in.</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/types/index.js#L32" target="_blank" rel="noopener">types/index.js, line 32</a></p></div>






        
            
<h3 class="name" id="~consistencyToString"><span class="type-signature">(inner, constant) </span>consistencyToString<span class="type-signature"> :Object&lt;number, string></span></h3>




<div class="description">
    <p>Mapping of consistency level codes to their string representation.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object&lt;number, string></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/types/index.js#L50" target="_blank" rel="noopener">types/index.js, line 50</a></p></div>






        
            
<h3 class="name" id="~dataTypes"><span class="type-signature">(inner, constant) </span>dataTypes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>CQL data types</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>custom</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A custom type.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>ascii</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>ASCII character string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>bigint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>64-bit signed long.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>blob</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Arbitrary bytes (no validation).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>boolean</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>true or false.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>counter</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Counter column (64-bit signed value).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>decimal</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Variable-precision decimal.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>double</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>64-bit IEEE-754 floating point.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>float</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>32-bit IEEE-754 floating point.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>int</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>32-bit signed integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>text</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>timestamp</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A timestamp.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>uuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Type 1 or type 4 UUID.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>varchar</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>varint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Arbitrary-precision integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>timeuuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Type 1 UUID.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>inet</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>An IP address. It can be either 4 bytes long (IPv4) or 16 bytes long (IPv6).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A date without a time-zone in the ISO-8601 calendar system.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>time</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A value representing the time portion of the day.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>smallint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>16-bit two's complement integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tinyint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>8-bit two's complement integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>list</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A collection of elements.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>map</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Key/value pairs.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>set</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A collection that contains no duplicate elements.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>udt</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>User-defined type.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tuple</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A sequence of values.</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/types/index.js#L93" target="_blank" rel="noopener">types/index.js, line 93</a></p></div>






        
            
<h3 class="name" id="~dateCenter"><span class="type-signature">(inner, constant) </span>dateCenter<span class="type-signature"></span></h3>




<div class="description">
    <p>2^31 days before unix epoch is -5877641-06-23. This is the first day that can be represented by this class.</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/local-date.js#L10" target="_blank" rel="noopener">types/local-date.js, line 10</a></p></div>






        
            
<h3 class="name" id="~distance"><span class="type-signature">(inner, constant) </span>distance<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Represents the distance of Cassandra node as assigned by a LoadBalancingPolicy relatively to the driver instance.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>local</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A local node.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>remote</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A remote node.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>ignored</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A node that is meant to be ignored.</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/types/index.js#L205" target="_blank" rel="noopener">types/index.js, line 205</a></p></div>






        
            
<h3 class="name" id="~logLevels"><span class="type-signature">(inner, constant) </span>logLevels<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Log level values used for the <code>logLevel</code> client option and emitted in <code>'log'</code> events.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>trace</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Finest-grained diagnostic information (TRACE level events).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>debug</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Fine-grained diagnostic information useful during development (DEBUG level events).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>info</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>High-level informational messages.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>warning</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Potentially harmful situations (default when logLevel is not set).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>error</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Error conditions.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>off</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Disables internal driver log forwarding.</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/types/index.js#L221" target="_blank" rel="noopener">types/index.js, line 221</a></p></div>






        
            
<h3 class="name" id="~protocolVersion"><span class="type-signature">(inner, constant) </span>protocolVersion<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Contains information for the different protocol versions supported by the driver.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>v1</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v1, supported in Apache Cassandra 1.2--&gt;2.2.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v2</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v2, supported in Apache Cassandra 2.0--&gt;2.2.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v3</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v3, supported in Apache Cassandra 2.1--&gt;3.x.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v4</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v4, supported in Apache Cassandra 2.2--&gt;3.x.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v5</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v5, in beta from Apache Cassandra 3.x+. Currently not supported by the
driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dseV1</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v1, DSE 5.1+</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dseV2</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v2, DSE 6.0+</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>maxSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the higher protocol version that is supported by this driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>minSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the lower protocol version that is supported by this driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>isSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"><p>A function that returns a boolean determining whether a given protocol version
is supported.</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/types/protocol-version.js#L30" target="_blank" rel="noopener">types/protocol-version.js, line 30</a></p></div>






        
            
<h3 class="name" id="~responseErrorCodes"><span class="type-signature">(inner, constant) </span>responseErrorCodes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Server error codes returned by Cassandra</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>serverError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Something unexpected happened.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>protocolError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Some client message triggered a protocol violation.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>badCredentials</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Authentication was required and failed.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unavailableException</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Raised when coordinator knows there is not enough replicas alive to perform a query with the requested consistency level.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>overloaded</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The request cannot be processed because the coordinator is overloaded.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>isBootstrapping</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The request was a read request but the coordinator node is bootstrapping.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>truncateError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Error encountered during a truncate request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>writeTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on write query on coordinator waiting for response(s) from replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on read query on coordinator waitign for response(s) from replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a read request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>functionFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A (user defined) function encountered during execution.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>writeFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a write request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>syntaxError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The submitted query has a syntax error.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unauthorized</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The logged user doesn't have the right to perform the query.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>invalid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query is syntactically correct but invalid.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>configError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query is invalid because of some configuration issue.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>alreadyExists</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query attempted to create a schema element (i.e. keyspace, table) that already exists.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unprepared</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Can be thrown while a prepared statement tries to be executed if the provided statement is not known by the coordinator.</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/types/index.js#L252" target="_blank" rel="noopener">types/index.js, line 252</a></p></div>






        
            
<h3 class="name" id="~unset"><span class="type-signature">(inner, constant) </span>unset<span class="type-signature"></span></h3>




<div class="description">
    <p>Unset representation.</p>
<p>Use this field if you want to set a parameter to <code>unset</code>. Valid for Cassandra 2.2 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/types/index.js#L279" target="_blank" rel="noopener">types/index.js, line 279</a></p></div>






        
    

    
        </div>

## Methods

<div class="jsdoc-content">

        
            

    

    
    <h3 class="name" id="~generateTimestamp"><span class="type-signature">(inner) </span>generateTimestamp<span class="signature">(date<span class="signature-attributes">opt</span>, microseconds<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Long}</span></h3>
    

    



<div class="description">
    <p>Generates a value representing the timestamp for the query in microseconds based on the date and the microseconds provided</p>
</div>









    <h4>Parameters:</h4>
    

<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>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">Date</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"><p>The date to generate the value, if not provided it will use the current date.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>microseconds</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 number from 0 to 999 used to build the microseconds part of the date.</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/types/index.js#L468" target="_blank" rel="noopener">types/index.js, line 468</a></p></div>















<h4>Returns:</h4>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Long</span>


    </dd>
</dl>

    





        
            

    

    
    <h3 class="name" id="~isLeapYear"><span class="type-signature">(inner) </span>isLeapYear<span class="signature">(year)</span><span class="type-signature"> &rarr; {boolean}</span></h3>
    

    











    <h4>Parameters:</h4>
    

<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>year</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/types/local-date.js#L18" target="_blank" rel="noopener">types/local-date.js, line 18</a></p></div>















<h4>Returns:</h4>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">boolean</span>


    </dd>
</dl>







<header>
    
        
    
</header>


    
        

        
    
    

    

    

    
        </div>

## Classes

<div class="jsdoc-content">

        <dl>
            <dt><a href="BigDecimal.html">BigDecimal</a></dt>
            <dd></dd>
        
            <dt><a href="Duration.html">Duration</a></dt>
            <dd></dd>
        
            <dt><a href="InetAddress.html">InetAddress</a></dt>
            <dd></dd>
        
            <dt><a href="Integer.html">Integer</a></dt>
            <dd></dd>
        
            <dt><a href="LocalDate.html">LocalDate</a></dt>
            <dd></dd>
        
            <dt><a href="index.html#~LocalTime">LocalTime</a></dt>
            <dd></dd>
        
            <dt><a href="Long.html">Long</a></dt>
            <dd></dd>
        
            <dt><a href="ResultSet.html">ResultSet</a></dt>
            <dd></dd>
        
            <dt><a href="ResultStream.html">ResultStream</a></dt>
            <dd></dd>
        
            <dt><a href="Row.html">Row</a></dt>
            <dd></dd>
        
            <dt><a href="TimeUuid.html">TimeUuid</a></dt>
            <dd></dd>
        
            <dt><a href="Tuple.html">Tuple</a></dt>
            <dd></dd>
        
            <dt><a href="Uuid.html">Uuid</a></dt>
            <dd></dd>
        
            <dt><a href="Vector.html">Vector</a></dt>
            <dd></dd>
        </dl>
    

    

    

    

    
        </div>

## Members

<div class="jsdoc-content">

        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the hour component of the time represented by the current instance, a number from 0 to 23.</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/local-time.ts#L51" target="_blank" rel="noopener">types/local-time.ts, line 51</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the minute component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L55" target="_blank" rel="noopener">types/local-time.ts, line 55</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the second component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L59" target="_blank" rel="noopener">types/local-time.ts, line 59</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the nanoseconds component of the time represented by the current instance, a number from 0 to 999999999.</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/local-time.ts#L63" target="_blank" rel="noopener">types/local-time.ts, line 63</a></p></div>






        
            
<h3 class="name" id="~consistencies"><span class="type-signature">(inner, constant) </span>consistencies<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Consistency levels</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>any</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Writing: A write must be written to at least one node. If all replica nodes for the given row key are down, the write can still succeed after a hinted handoff has been written. If all replica nodes are down at write time, an ANY write is not readable until the replica nodes for that row have recovered.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>one</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns a response from the closest replica, as determined by the snitch.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>two</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from two of the closest replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>three</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from three of the closest replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>quorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after a quorum of replicas has responded regardless of data center. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>all</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after all replicas have responded. The read operation will fail if a replica does not respond. Writing: A write must be written to the commit log and memory table on all replica nodes in the cluster for that row.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localQuorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp once a quorum of replicas in the current data center as the coordinator node has reported. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes in the same data center as the coordinator node. Avoids latency of inter-data center communication.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>eachQuorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record once a quorum of replicas in each data center of the cluster has responded. Writing: Strong consistency. A write must be written to the commit log and memtable on a quorum of replica nodes in all data centers.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>serial</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Achieves linearizable consistency for lightweight transactions by preventing unconditional updates.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localSerial</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Same as serial but confined to the data center. A write must be written conditionally to the commit log and memtable on a quorum of replica nodes in the same data center.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localOne</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Similar to One but only within the DC the coordinator is in.</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/types/index.js#L32" target="_blank" rel="noopener">types/index.js, line 32</a></p></div>






        
            
<h3 class="name" id="~consistencyToString"><span class="type-signature">(inner, constant) </span>consistencyToString<span class="type-signature"> :Object&lt;number, string></span></h3>




<div class="description">
    <p>Mapping of consistency level codes to their string representation.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object&lt;number, string></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/types/index.js#L50" target="_blank" rel="noopener">types/index.js, line 50</a></p></div>






        
            
<h3 class="name" id="~dataTypes"><span class="type-signature">(inner, constant) </span>dataTypes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>CQL data types</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>custom</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A custom type.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>ascii</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>ASCII character string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>bigint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>64-bit signed long.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>blob</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Arbitrary bytes (no validation).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>boolean</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>true or false.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>counter</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Counter column (64-bit signed value).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>decimal</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Variable-precision decimal.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>double</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>64-bit IEEE-754 floating point.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>float</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>32-bit IEEE-754 floating point.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>int</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>32-bit signed integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>text</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>timestamp</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A timestamp.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>uuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Type 1 or type 4 UUID.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>varchar</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>varint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Arbitrary-precision integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>timeuuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Type 1 UUID.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>inet</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>An IP address. It can be either 4 bytes long (IPv4) or 16 bytes long (IPv6).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A date without a time-zone in the ISO-8601 calendar system.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>time</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A value representing the time portion of the day.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>smallint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>16-bit two's complement integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tinyint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>8-bit two's complement integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>list</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A collection of elements.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>map</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Key/value pairs.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>set</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A collection that contains no duplicate elements.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>udt</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>User-defined type.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tuple</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A sequence of values.</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/types/index.js#L93" target="_blank" rel="noopener">types/index.js, line 93</a></p></div>






        
            
<h3 class="name" id="~dateCenter"><span class="type-signature">(inner, constant) </span>dateCenter<span class="type-signature"></span></h3>




<div class="description">
    <p>2^31 days before unix epoch is -5877641-06-23. This is the first day that can be represented by this class.</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/local-date.js#L10" target="_blank" rel="noopener">types/local-date.js, line 10</a></p></div>






        
            
<h3 class="name" id="~distance"><span class="type-signature">(inner, constant) </span>distance<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Represents the distance of Cassandra node as assigned by a LoadBalancingPolicy relatively to the driver instance.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>local</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A local node.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>remote</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A remote node.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>ignored</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A node that is meant to be ignored.</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/types/index.js#L205" target="_blank" rel="noopener">types/index.js, line 205</a></p></div>






        
            
<h3 class="name" id="~logLevels"><span class="type-signature">(inner, constant) </span>logLevels<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Log level values used for the <code>logLevel</code> client option and emitted in <code>'log'</code> events.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>trace</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Finest-grained diagnostic information (TRACE level events).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>debug</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Fine-grained diagnostic information useful during development (DEBUG level events).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>info</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>High-level informational messages.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>warning</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Potentially harmful situations (default when logLevel is not set).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>error</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Error conditions.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>off</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Disables internal driver log forwarding.</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/types/index.js#L221" target="_blank" rel="noopener">types/index.js, line 221</a></p></div>






        
            
<h3 class="name" id="~protocolVersion"><span class="type-signature">(inner, constant) </span>protocolVersion<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Contains information for the different protocol versions supported by the driver.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>v1</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v1, supported in Apache Cassandra 1.2--&gt;2.2.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v2</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v2, supported in Apache Cassandra 2.0--&gt;2.2.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v3</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v3, supported in Apache Cassandra 2.1--&gt;3.x.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v4</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v4, supported in Apache Cassandra 2.2--&gt;3.x.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v5</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v5, in beta from Apache Cassandra 3.x+. Currently not supported by the
driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dseV1</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v1, DSE 5.1+</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dseV2</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v2, DSE 6.0+</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>maxSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the higher protocol version that is supported by this driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>minSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the lower protocol version that is supported by this driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>isSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"><p>A function that returns a boolean determining whether a given protocol version
is supported.</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/types/protocol-version.js#L30" target="_blank" rel="noopener">types/protocol-version.js, line 30</a></p></div>






        
            
<h3 class="name" id="~responseErrorCodes"><span class="type-signature">(inner, constant) </span>responseErrorCodes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Server error codes returned by Cassandra</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>serverError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Something unexpected happened.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>protocolError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Some client message triggered a protocol violation.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>badCredentials</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Authentication was required and failed.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unavailableException</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Raised when coordinator knows there is not enough replicas alive to perform a query with the requested consistency level.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>overloaded</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The request cannot be processed because the coordinator is overloaded.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>isBootstrapping</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The request was a read request but the coordinator node is bootstrapping.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>truncateError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Error encountered during a truncate request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>writeTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on write query on coordinator waiting for response(s) from replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on read query on coordinator waitign for response(s) from replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a read request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>functionFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A (user defined) function encountered during execution.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>writeFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a write request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>syntaxError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The submitted query has a syntax error.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unauthorized</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The logged user doesn't have the right to perform the query.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>invalid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query is syntactically correct but invalid.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>configError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query is invalid because of some configuration issue.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>alreadyExists</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query attempted to create a schema element (i.e. keyspace, table) that already exists.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unprepared</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Can be thrown while a prepared statement tries to be executed if the provided statement is not known by the coordinator.</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/types/index.js#L252" target="_blank" rel="noopener">types/index.js, line 252</a></p></div>






        
            
<h3 class="name" id="~unset"><span class="type-signature">(inner, constant) </span>unset<span class="type-signature"></span></h3>




<div class="description">
    <p>Unset representation.</p>
<p>Use this field if you want to set a parameter to <code>unset</code>. Valid for Cassandra 2.2 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/types/index.js#L279" target="_blank" rel="noopener">types/index.js, line 279</a></p></div>






        
    

    
        </div>

## Methods

<div class="jsdoc-content">

        
            

    

    
    <h3 class="name" id="~generateTimestamp"><span class="type-signature">(inner) </span>generateTimestamp<span class="signature">(date<span class="signature-attributes">opt</span>, microseconds<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Long}</span></h3>
    

    



<div class="description">
    <p>Generates a value representing the timestamp for the query in microseconds based on the date and the microseconds provided</p>
</div>









    <h4>Parameters:</h4>
    

<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>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">Date</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"><p>The date to generate the value, if not provided it will use the current date.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>microseconds</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 number from 0 to 999 used to build the microseconds part of the date.</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/types/index.js#L468" target="_blank" rel="noopener">types/index.js, line 468</a></p></div>















<h4>Returns:</h4>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Long</span>


    </dd>
</dl>

    





        
            

    

    
    <h3 class="name" id="~isLeapYear"><span class="type-signature">(inner) </span>isLeapYear<span class="signature">(year)</span><span class="type-signature"> &rarr; {boolean}</span></h3>
    

    











    <h4>Parameters:</h4>
    

<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>year</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/types/local-date.js#L18" target="_blank" rel="noopener">types/local-date.js, line 18</a></p></div>















<h4>Returns:</h4>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">boolean</span>


    </dd>
</dl>







<header>
    
        
    
</header>


    
        

        
    
    

    

    

    
        </div>

## Classes

<div class="jsdoc-content">

        <dl>
            <dt><a href="BigDecimal.html">BigDecimal</a></dt>
            <dd></dd>
        
            <dt><a href="Duration.html">Duration</a></dt>
            <dd></dd>
        
            <dt><a href="InetAddress.html">InetAddress</a></dt>
            <dd></dd>
        
            <dt><a href="Integer.html">Integer</a></dt>
            <dd></dd>
        
            <dt><a href="LocalDate.html">LocalDate</a></dt>
            <dd></dd>
        
            <dt><a href="index.html#~LocalTime">LocalTime</a></dt>
            <dd></dd>
        
            <dt><a href="Long.html">Long</a></dt>
            <dd></dd>
        
            <dt><a href="ResultSet.html">ResultSet</a></dt>
            <dd></dd>
        
            <dt><a href="ResultStream.html">ResultStream</a></dt>
            <dd></dd>
        
            <dt><a href="Row.html">Row</a></dt>
            <dd></dd>
        
            <dt><a href="TimeUuid.html">TimeUuid</a></dt>
            <dd></dd>
        
            <dt><a href="Tuple.html">Tuple</a></dt>
            <dd></dd>
        
            <dt><a href="Uuid.html">Uuid</a></dt>
            <dd></dd>
        
            <dt><a href="Vector.html">Vector</a></dt>
            <dd></dd>
        </dl>
    

    

    

    

    
        </div>

## Members

<div class="jsdoc-content">

        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the hour component of the time represented by the current instance, a number from 0 to 23.</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/local-time.ts#L51" target="_blank" rel="noopener">types/local-time.ts, line 51</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the minute component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L55" target="_blank" rel="noopener">types/local-time.ts, line 55</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the second component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L59" target="_blank" rel="noopener">types/local-time.ts, line 59</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the nanoseconds component of the time represented by the current instance, a number from 0 to 999999999.</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/local-time.ts#L63" target="_blank" rel="noopener">types/local-time.ts, line 63</a></p></div>






        
            
<h3 class="name" id="~consistencies"><span class="type-signature">(inner, constant) </span>consistencies<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Consistency levels</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>any</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Writing: A write must be written to at least one node. If all replica nodes for the given row key are down, the write can still succeed after a hinted handoff has been written. If all replica nodes are down at write time, an ANY write is not readable until the replica nodes for that row have recovered.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>one</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns a response from the closest replica, as determined by the snitch.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>two</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from two of the closest replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>three</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from three of the closest replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>quorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after a quorum of replicas has responded regardless of data center. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>all</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after all replicas have responded. The read operation will fail if a replica does not respond. Writing: A write must be written to the commit log and memory table on all replica nodes in the cluster for that row.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localQuorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp once a quorum of replicas in the current data center as the coordinator node has reported. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes in the same data center as the coordinator node. Avoids latency of inter-data center communication.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>eachQuorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record once a quorum of replicas in each data center of the cluster has responded. Writing: Strong consistency. A write must be written to the commit log and memtable on a quorum of replica nodes in all data centers.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>serial</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Achieves linearizable consistency for lightweight transactions by preventing unconditional updates.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localSerial</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Same as serial but confined to the data center. A write must be written conditionally to the commit log and memtable on a quorum of replica nodes in the same data center.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localOne</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Similar to One but only within the DC the coordinator is in.</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/types/index.js#L32" target="_blank" rel="noopener">types/index.js, line 32</a></p></div>






        
            
<h3 class="name" id="~consistencyToString"><span class="type-signature">(inner, constant) </span>consistencyToString<span class="type-signature"> :Object&lt;number, string></span></h3>




<div class="description">
    <p>Mapping of consistency level codes to their string representation.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object&lt;number, string></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/types/index.js#L50" target="_blank" rel="noopener">types/index.js, line 50</a></p></div>






        
            
<h3 class="name" id="~dataTypes"><span class="type-signature">(inner, constant) </span>dataTypes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>CQL data types</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>custom</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A custom type.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>ascii</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>ASCII character string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>bigint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>64-bit signed long.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>blob</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Arbitrary bytes (no validation).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>boolean</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>true or false.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>counter</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Counter column (64-bit signed value).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>decimal</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Variable-precision decimal.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>double</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>64-bit IEEE-754 floating point.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>float</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>32-bit IEEE-754 floating point.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>int</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>32-bit signed integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>text</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>timestamp</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A timestamp.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>uuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Type 1 or type 4 UUID.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>varchar</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>varint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Arbitrary-precision integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>timeuuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Type 1 UUID.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>inet</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>An IP address. It can be either 4 bytes long (IPv4) or 16 bytes long (IPv6).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A date without a time-zone in the ISO-8601 calendar system.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>time</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A value representing the time portion of the day.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>smallint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>16-bit two's complement integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tinyint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>8-bit two's complement integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>list</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A collection of elements.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>map</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Key/value pairs.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>set</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A collection that contains no duplicate elements.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>udt</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>User-defined type.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tuple</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A sequence of values.</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/types/index.js#L93" target="_blank" rel="noopener">types/index.js, line 93</a></p></div>






        
            
<h3 class="name" id="~dateCenter"><span class="type-signature">(inner, constant) </span>dateCenter<span class="type-signature"></span></h3>




<div class="description">
    <p>2^31 days before unix epoch is -5877641-06-23. This is the first day that can be represented by this class.</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/local-date.js#L10" target="_blank" rel="noopener">types/local-date.js, line 10</a></p></div>






        
            
<h3 class="name" id="~distance"><span class="type-signature">(inner, constant) </span>distance<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Represents the distance of Cassandra node as assigned by a LoadBalancingPolicy relatively to the driver instance.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>local</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A local node.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>remote</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A remote node.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>ignored</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A node that is meant to be ignored.</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/types/index.js#L205" target="_blank" rel="noopener">types/index.js, line 205</a></p></div>






        
            
<h3 class="name" id="~logLevels"><span class="type-signature">(inner, constant) </span>logLevels<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Log level values used for the <code>logLevel</code> client option and emitted in <code>'log'</code> events.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>trace</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Finest-grained diagnostic information (TRACE level events).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>debug</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Fine-grained diagnostic information useful during development (DEBUG level events).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>info</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>High-level informational messages.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>warning</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Potentially harmful situations (default when logLevel is not set).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>error</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Error conditions.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>off</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Disables internal driver log forwarding.</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/types/index.js#L221" target="_blank" rel="noopener">types/index.js, line 221</a></p></div>






        
            
<h3 class="name" id="~protocolVersion"><span class="type-signature">(inner, constant) </span>protocolVersion<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Contains information for the different protocol versions supported by the driver.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>v1</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v1, supported in Apache Cassandra 1.2--&gt;2.2.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v2</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v2, supported in Apache Cassandra 2.0--&gt;2.2.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v3</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v3, supported in Apache Cassandra 2.1--&gt;3.x.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v4</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v4, supported in Apache Cassandra 2.2--&gt;3.x.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v5</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v5, in beta from Apache Cassandra 3.x+. Currently not supported by the
driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dseV1</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v1, DSE 5.1+</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dseV2</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v2, DSE 6.0+</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>maxSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the higher protocol version that is supported by this driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>minSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the lower protocol version that is supported by this driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>isSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"><p>A function that returns a boolean determining whether a given protocol version
is supported.</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/types/protocol-version.js#L30" target="_blank" rel="noopener">types/protocol-version.js, line 30</a></p></div>






        
            
<h3 class="name" id="~responseErrorCodes"><span class="type-signature">(inner, constant) </span>responseErrorCodes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Server error codes returned by Cassandra</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>serverError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Something unexpected happened.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>protocolError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Some client message triggered a protocol violation.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>badCredentials</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Authentication was required and failed.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unavailableException</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Raised when coordinator knows there is not enough replicas alive to perform a query with the requested consistency level.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>overloaded</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The request cannot be processed because the coordinator is overloaded.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>isBootstrapping</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The request was a read request but the coordinator node is bootstrapping.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>truncateError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Error encountered during a truncate request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>writeTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on write query on coordinator waiting for response(s) from replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on read query on coordinator waitign for response(s) from replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a read request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>functionFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A (user defined) function encountered during execution.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>writeFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a write request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>syntaxError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The submitted query has a syntax error.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unauthorized</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The logged user doesn't have the right to perform the query.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>invalid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query is syntactically correct but invalid.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>configError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query is invalid because of some configuration issue.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>alreadyExists</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query attempted to create a schema element (i.e. keyspace, table) that already exists.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unprepared</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Can be thrown while a prepared statement tries to be executed if the provided statement is not known by the coordinator.</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/types/index.js#L252" target="_blank" rel="noopener">types/index.js, line 252</a></p></div>






        
            
<h3 class="name" id="~unset"><span class="type-signature">(inner, constant) </span>unset<span class="type-signature"></span></h3>




<div class="description">
    <p>Unset representation.</p>
<p>Use this field if you want to set a parameter to <code>unset</code>. Valid for Cassandra 2.2 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/types/index.js#L279" target="_blank" rel="noopener">types/index.js, line 279</a></p></div>






        
    

    
        </div>

## Methods

<div class="jsdoc-content">

        
            

    

    
    <h3 class="name" id="~generateTimestamp"><span class="type-signature">(inner) </span>generateTimestamp<span class="signature">(date<span class="signature-attributes">opt</span>, microseconds<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Long}</span></h3>
    

    



<div class="description">
    <p>Generates a value representing the timestamp for the query in microseconds based on the date and the microseconds provided</p>
</div>









    <h4>Parameters:</h4>
    

<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>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">Date</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"><p>The date to generate the value, if not provided it will use the current date.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>microseconds</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 number from 0 to 999 used to build the microseconds part of the date.</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/types/index.js#L468" target="_blank" rel="noopener">types/index.js, line 468</a></p></div>















<h4>Returns:</h4>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Long</span>


    </dd>
</dl>

    





        
            

    

    
    <h3 class="name" id="~isLeapYear"><span class="type-signature">(inner) </span>isLeapYear<span class="signature">(year)</span><span class="type-signature"> &rarr; {boolean}</span></h3>
    

    











    <h4>Parameters:</h4>
    

<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>year</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/types/local-date.js#L18" target="_blank" rel="noopener">types/local-date.js, line 18</a></p></div>















<h4>Returns:</h4>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">boolean</span>


    </dd>
</dl>







<header>
    
        
    
</header>


    
        

        
    
    

    

    

    
        </div>

## Classes

<div class="jsdoc-content">

        <dl>
            <dt><a href="BigDecimal.html">BigDecimal</a></dt>
            <dd></dd>
        
            <dt><a href="Duration.html">Duration</a></dt>
            <dd></dd>
        
            <dt><a href="InetAddress.html">InetAddress</a></dt>
            <dd></dd>
        
            <dt><a href="Integer.html">Integer</a></dt>
            <dd></dd>
        
            <dt><a href="LocalDate.html">LocalDate</a></dt>
            <dd></dd>
        
            <dt><a href="index.html#~LocalTime">LocalTime</a></dt>
            <dd></dd>
        
            <dt><a href="Long.html">Long</a></dt>
            <dd></dd>
        
            <dt><a href="ResultSet.html">ResultSet</a></dt>
            <dd></dd>
        
            <dt><a href="ResultStream.html">ResultStream</a></dt>
            <dd></dd>
        
            <dt><a href="Row.html">Row</a></dt>
            <dd></dd>
        
            <dt><a href="TimeUuid.html">TimeUuid</a></dt>
            <dd></dd>
        
            <dt><a href="Tuple.html">Tuple</a></dt>
            <dd></dd>
        
            <dt><a href="Uuid.html">Uuid</a></dt>
            <dd></dd>
        
            <dt><a href="Vector.html">Vector</a></dt>
            <dd></dd>
        </dl>
    

    

    

    

    
        </div>

## Members

<div class="jsdoc-content">

        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the hour component of the time represented by the current instance, a number from 0 to 23.</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/local-time.ts#L51" target="_blank" rel="noopener">types/local-time.ts, line 51</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the minute component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L55" target="_blank" rel="noopener">types/local-time.ts, line 55</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the second component of the time represented by the current instance, a number from 0 to 59.</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/local-time.ts#L59" target="_blank" rel="noopener">types/local-time.ts, line 59</a></p></div>






        
            
<h3 class="name" id="~LocalTime"><span class="type-signature">(inner) </span>LocalTime<span class="type-signature"></span></h3>




<div class="description">
    <p>Gets the nanoseconds component of the time represented by the current instance, a number from 0 to 999999999.</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/local-time.ts#L63" target="_blank" rel="noopener">types/local-time.ts, line 63</a></p></div>






        
            
<h3 class="name" id="~consistencies"><span class="type-signature">(inner, constant) </span>consistencies<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Consistency levels</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>any</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Writing: A write must be written to at least one node. If all replica nodes for the given row key are down, the write can still succeed after a hinted handoff has been written. If all replica nodes are down at write time, an ANY write is not readable until the replica nodes for that row have recovered.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>one</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns a response from the closest replica, as determined by the snitch.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>two</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from two of the closest replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>three</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the most recent data from three of the closest replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>quorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after a quorum of replicas has responded regardless of data center. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>all</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp after all replicas have responded. The read operation will fail if a replica does not respond. Writing: A write must be written to the commit log and memory table on all replica nodes in the cluster for that row.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localQuorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record with the most recent timestamp once a quorum of replicas in the current data center as the coordinator node has reported. Writing: A write must be written to the commit log and memory table on a quorum of replica nodes in the same data center as the coordinator node. Avoids latency of inter-data center communication.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>eachQuorum</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Reading: Returns the record once a quorum of replicas in each data center of the cluster has responded. Writing: Strong consistency. A write must be written to the commit log and memtable on a quorum of replica nodes in all data centers.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>serial</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Achieves linearizable consistency for lightweight transactions by preventing unconditional updates.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localSerial</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Same as serial but confined to the data center. A write must be written conditionally to the commit log and memtable on a quorum of replica nodes in the same data center.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>localOne</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Similar to One but only within the DC the coordinator is in.</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/types/index.js#L32" target="_blank" rel="noopener">types/index.js, line 32</a></p></div>






        
            
<h3 class="name" id="~consistencyToString"><span class="type-signature">(inner, constant) </span>consistencyToString<span class="type-signature"> :Object&lt;number, string></span></h3>




<div class="description">
    <p>Mapping of consistency level codes to their string representation.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object&lt;number, string></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/types/index.js#L50" target="_blank" rel="noopener">types/index.js, line 50</a></p></div>






        
            
<h3 class="name" id="~dataTypes"><span class="type-signature">(inner, constant) </span>dataTypes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>CQL data types</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>custom</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A custom type.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>ascii</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>ASCII character string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>bigint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>64-bit signed long.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>blob</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Arbitrary bytes (no validation).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>boolean</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>true or false.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>counter</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Counter column (64-bit signed value).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>decimal</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Variable-precision decimal.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>double</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>64-bit IEEE-754 floating point.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>float</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>32-bit IEEE-754 floating point.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>int</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>32-bit signed integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>text</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>timestamp</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A timestamp.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>uuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Type 1 or type 4 UUID.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>varchar</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>UTF8 encoded string.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>varint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Arbitrary-precision integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>timeuuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Type 1 UUID.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>inet</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>An IP address. It can be either 4 bytes long (IPv4) or 16 bytes long (IPv6).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A date without a time-zone in the ISO-8601 calendar system.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>time</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A value representing the time portion of the day.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>smallint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>16-bit two's complement integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tinyint</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>8-bit two's complement integer.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>list</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A collection of elements.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>map</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Key/value pairs.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>set</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A collection that contains no duplicate elements.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>udt</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>User-defined type.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tuple</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A sequence of values.</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/types/index.js#L93" target="_blank" rel="noopener">types/index.js, line 93</a></p></div>






        
            
<h3 class="name" id="~dateCenter"><span class="type-signature">(inner, constant) </span>dateCenter<span class="type-signature"></span></h3>




<div class="description">
    <p>2^31 days before unix epoch is -5877641-06-23. This is the first day that can be represented by this class.</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/local-date.js#L10" target="_blank" rel="noopener">types/local-date.js, line 10</a></p></div>






        
            
<h3 class="name" id="~distance"><span class="type-signature">(inner, constant) </span>distance<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Represents the distance of Cassandra node as assigned by a LoadBalancingPolicy relatively to the driver instance.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>local</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A local node.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>remote</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A remote node.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>ignored</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A node that is meant to be ignored.</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/types/index.js#L205" target="_blank" rel="noopener">types/index.js, line 205</a></p></div>






        
            
<h3 class="name" id="~logLevels"><span class="type-signature">(inner, constant) </span>logLevels<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Log level values used for the <code>logLevel</code> client option and emitted in <code>'log'</code> events.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>trace</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Finest-grained diagnostic information (TRACE level events).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>debug</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Fine-grained diagnostic information useful during development (DEBUG level events).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>info</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>High-level informational messages.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>warning</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Potentially harmful situations (default when logLevel is not set).</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>error</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Error conditions.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>off</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last"><p>Disables internal driver log forwarding.</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/types/index.js#L221" target="_blank" rel="noopener">types/index.js, line 221</a></p></div>






        
            
<h3 class="name" id="~protocolVersion"><span class="type-signature">(inner, constant) </span>protocolVersion<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Contains information for the different protocol versions supported by the driver.</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>v1</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v1, supported in Apache Cassandra 1.2--&gt;2.2.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v2</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v2, supported in Apache Cassandra 2.0--&gt;2.2.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v3</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v3, supported in Apache Cassandra 2.1--&gt;3.x.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v4</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v4, supported in Apache Cassandra 2.2--&gt;3.x.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>v5</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Cassandra protocol v5, in beta from Apache Cassandra 3.x+. Currently not supported by the
driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dseV1</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v1, DSE 5.1+</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dseV2</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>DataStax Enterprise protocol v2, DSE 6.0+</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>maxSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the higher protocol version that is supported by this driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>minSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Returns the lower protocol version that is supported by this driver.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>isSupported</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last"><p>A function that returns a boolean determining whether a given protocol version
is supported.</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/types/protocol-version.js#L30" target="_blank" rel="noopener">types/protocol-version.js, line 30</a></p></div>






        
            
<h3 class="name" id="~responseErrorCodes"><span class="type-signature">(inner, constant) </span>responseErrorCodes<span class="type-signature"> :Object</span></h3>




<div class="description">
    <p>Server error codes returned by Cassandra</p>
</div>



    <h4>Type:</h4>
    <ul>
        <li>
            
<span class="param-type">Object</span>


        </li>
    </ul>





    <h4 class="subsection-title">Properties:</h4>

    

<table class="props docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>serverError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Something unexpected happened.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>protocolError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Some client message triggered a protocol violation.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>badCredentials</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Authentication was required and failed.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unavailableException</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Raised when coordinator knows there is not enough replicas alive to perform a query with the requested consistency level.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>overloaded</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The request cannot be processed because the coordinator is overloaded.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>isBootstrapping</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The request was a read request but the coordinator node is bootstrapping.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>truncateError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Error encountered during a truncate request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>writeTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on write query on coordinator waiting for response(s) from replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readTimeout</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Timeout encountered on read query on coordinator waitign for response(s) from replicas.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>readFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a read request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>functionFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A (user defined) function encountered during execution.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>writeFailure</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>A non-timeout error encountered during a write request.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>syntaxError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The submitted query has a syntax error.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unauthorized</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The logged user doesn't have the right to perform the query.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>invalid</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query is syntactically correct but invalid.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>configError</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query is invalid because of some configuration issue.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>alreadyExists</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>The query attempted to create a schema element (i.e. keyspace, table) that already exists.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>unprepared</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"><p>Can be thrown while a prepared statement tries to be executed if the provided statement is not known by the coordinator.</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/types/index.js#L252" target="_blank" rel="noopener">types/index.js, line 252</a></p></div>






        
            
<h3 class="name" id="~unset"><span class="type-signature">(inner, constant) </span>unset<span class="type-signature"></span></h3>




<div class="description">
    <p>Unset representation.</p>
<p>Use this field if you want to set a parameter to <code>unset</code>. Valid for Cassandra 2.2 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/types/index.js#L279" target="_blank" rel="noopener">types/index.js, line 279</a></p></div>






        
    

    
        </div>

## Methods

<div class="jsdoc-content">

        
            

    

    
    <h3 class="name" id="~generateTimestamp"><span class="type-signature">(inner) </span>generateTimestamp<span class="signature">(date<span class="signature-attributes">opt</span>, microseconds<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Long}</span></h3>
    

    



<div class="description">
    <p>Generates a value representing the timestamp for the query in microseconds based on the date and the microseconds provided</p>
</div>









    <h4>Parameters:</h4>
    

<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>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">Date</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last"><p>The date to generate the value, if not provided it will use the current date.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>microseconds</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 number from 0 to 999 used to build the microseconds part of the date.</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/types/index.js#L468" target="_blank" rel="noopener">types/index.js, line 468</a></p></div>















<h4>Returns:</h4>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Long</span>


    </dd>
</dl>

    





        
            

    

    
    <h3 class="name" id="~isLeapYear"><span class="type-signature">(inner) </span>isLeapYear<span class="signature">(year)</span><span class="type-signature"> &rarr; {boolean}</span></h3>
    

    











    <h4>Parameters:</h4>
    

<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>year</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/types/local-date.js#L18" target="_blank" rel="noopener">types/local-date.js, line 18</a></p></div>















<h4>Returns:</h4>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">boolean</span>


    </dd>
</dl></div>
