# UnderscoreCqlToCamelCaseMappings

<div class="jsdoc-content"><header>
    
        <h2><span class="attribs"><span class="type-signature"></span></span>
            <span class="ancestors"><a href="index.html">mapping</a>~</span>UnderscoreCqlToCamelCaseMappings<span class="signature">()</span><span class="type-signature"></span></h2>
        
            <div class="class-description"><p>A <a href="TableMappings.html">TableMappings</a> implementation that converts CQL column names in all-lowercase
identifiers with underscores (snake case) to camel case (initial lowercase letter) property names.</p>
<p>The conversion is performed without any checks for the source format, you should make sure that the source
format is snake case for CQL identifiers and camel case for properties.</p></div>
        
    
</header>


    
        

    
    </div>

## Constructor

<div class="jsdoc-content">
    

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

    



<div class="description">
    <p>Creates a new instance of UnderscoreCqlToCamelCaseMappings</p>
</div>













<dl class="details">

    

    

    

    

    

    
    <dt class="implements">Implements:</dt>
    <dd class="implements"><ul>
        
            <li><a href="TableMappings.html">module:mapping~TableMappings</a></li>
        
    </ul></dd>
    

    

    

    

    

    

    

    
    
    

    

    

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




















    
    

    

    

    

    

    

    

    

    
        </div>

## Methods

<div class="jsdoc-content">

        
            

    

    
    <h4 class="name" id="getColumnName"><span class="type-signature"></span>getColumnName<span class="signature">(propName)</span><span class="type-signature"> &rarr; {String}</span></h4>
    

    



<div class="description">
    <p>Converts a property name in camel case to snake case.</p>
</div>









    <h5>Parameters:</h5>
    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>Name of the property to convert to snake case.</p></td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    
    <dt class="implements">Implements:</dt>
    <dd class="implements"><ul>
        
            <li><a href="TableMappings.html#getColumnName">module:mapping~TableMappings#getColumnName</a></li>
        
    </ul></dd>
    

    

    

    

    

    

    

    
    
    

    

    

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















<h5>Returns:</h5>

        


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


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="getPropertyName"><span class="type-signature"></span>getPropertyName<span class="signature">(columnName)</span><span class="type-signature"> &rarr; {String}</span></h4>
    

    



<div class="description">
    <p>Converts a column name in snake case to camel case.</p>
</div>









    <h5>Parameters:</h5>
    

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

        <th>Type</th>

        

        

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

    <tbody>
    

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

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


            
            </td>

            

            

            <td class="description last"><p>The column name to convert to camel case.</p></td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    
    <dt class="implements">Implements:</dt>
    <dd class="implements"><ul>
        
            <li><a href="TableMappings.html#getPropertyName">module:mapping~TableMappings#getPropertyName</a></li>
        
    </ul></dd>
    

    

    

    

    

    

    

    
    
    

    

    

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















<h5>Returns:</h5>

        


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


    </dd>
</dl></div>
