# TableMappings

<div class="jsdoc-content"><header>
    
        <h2>
            <span class="ancestors"><a href="index.html">mapping</a>~</span>TableMappings</h2>
        
            <div class="class-description"><p>Contains a set of methods to represent a row into a document and a document into a row.</p></div>
        
    
</header>


    
        

        


<div 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#L9" target="_blank" rel="noopener">mapping/table-mappings.js, line 9</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>Gets the name of the column based on the document property name.</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>The name of the property.</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/mapping/table-mappings.js#L23" target="_blank" rel="noopener">mapping/table-mappings.js, line 23</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>Gets the name of the document property based on the column name.</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 name of the column.</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/mapping/table-mappings.js#L32" target="_blank" rel="noopener">mapping/table-mappings.js, line 32</a></p></div>















<h5>Returns:</h5>

        


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


    </dd>
</dl>

    





        
            

    

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

    



<div class="description">
    <p>Method that is called by the mapper to create the instance of the document.</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/mapping/table-mappings.js#L14" target="_blank" rel="noopener">mapping/table-mappings.js, line 14</a></p></div>















<h5>Returns:</h5>

        


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


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