> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# alterSchema

<div className="kinetica-doxygen">
  <div id="a6d8737eef0ac5964bafee8168c7001c2" />

  <h2 className="memtitle"><span className="permalink"><a href="#a6d8737eef0ac5964bafee8168c7001c2">◆ </a></span>alterSchema() <span className="overload">\[1/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1AlterSchemaResponse">AlterSchemaResponse</a> gpudb::GPUdb::alterSchema </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1AlterSchemaRequest">AlterSchemaRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span></td>
          <td>)</td>
          <td> const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Used to change the name of a SQL-style <a href="/content/concepts/schemas/" target="_top">schema</a>, specified in <a className="el" href="/content/api/cpp/structgpudb_1_1AlterSchemaRequest#a5d2aa8bd3561ad50e0ff38b0fb54e188">schemaName</a>. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1AlterSchemaRequest">Request</a> object containing the parameters for the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1AlterSchemaResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="afe7e4516bdc03ae78bcac0da1eab7308" />

  <h2 className="memtitle"><span className="permalink"><a href="#afe7e4516bdc03ae78bcac0da1eab7308">◆ </a></span>alterSchema() <span className="overload">\[2/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1AlterSchemaResponse">AlterSchemaResponse</a> & gpudb::GPUdb::alterSchema </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1AlterSchemaRequest">AlterSchemaRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1AlterSchemaResponse">AlterSchemaResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Used to change the name of a SQL-style <a href="/content/concepts/schemas/" target="_top">schema</a>, specified in <a className="el" href="/content/api/cpp/structgpudb_1_1AlterSchemaRequest#a5d2aa8bd3561ad50e0ff38b0fb54e188">schemaName</a>. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1AlterSchemaRequest">Request</a> object containing the parameters for the operation. </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1AlterSchemaResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1AlterSchemaResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>

  <div id="ac3b14375b824755702348959f65b809b" />

  <h2 className="memtitle"><span className="permalink"><a href="#ac3b14375b824755702348959f65b809b">◆ </a></span>alterSchema() <span className="overload">\[3/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1AlterSchemaResponse">AlterSchemaResponse</a> gpudb::GPUdb::alterSchema </td>
          <td>(</td>
          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">schemaName</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">action</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">value</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::map\< std::string, std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">options</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Used to change the name of a SQL-style <a href="/content/concepts/schemas/" target="_top">schema</a>, specified in <span className="em arg">schemaName</span>. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">schemaName</td>
              <td>Name of the schema to be altered. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">action</td>

              <td>
                Modification operation to be applied. Supported values:

                <ul>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a215bf1e57bd8f9f909b7239f69646f85">alter\_schema\_add\_comment</a>: Adds a comment describing the schema. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#ad4b093863b91bdd60ffe707d7e063072">alter\_schema\_rename\_schema</a>: Renames a schema to <span className="em arg">value</span>. Has the same naming restrictions as <a href="/content/concepts/tables/" target="_top">tables</a>. </li>
                </ul>
              </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">value</td>
              <td>The value of the modification, depending on <span className="em arg">action</span>. For now the only value of <span className="em arg">action</span> is <a className="el" href="/content/api/cpp/namespacegpudb#ad4b093863b91bdd60ffe707d7e063072">rename\_schema</a>. In this case the value is the new name of the schema. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">options</td>
              <td>Optional parameters. The default value is an empty map.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1AlterSchemaResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a06fbae44bfb19d07d0336d2fa2baa9de" />

  <h2 className="memtitle"><span className="permalink"><a href="#a06fbae44bfb19d07d0336d2fa2baa9de">◆ </a></span>alterSchema() <span className="overload">\[4/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1AlterSchemaResponse">AlterSchemaResponse</a> & gpudb::GPUdb::alterSchema </td>
          <td>(</td>
          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">schemaName</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">action</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">value</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::map\< std::string, std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">options</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1AlterSchemaResponse">AlterSchemaResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Used to change the name of a SQL-style <a href="/content/concepts/schemas/" target="_top">schema</a>, specified in <span className="em arg">schemaName</span>. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">schemaName</td>
              <td>Name of the schema to be altered. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">action</td>

              <td>
                Modification operation to be applied. Supported values:

                <ul>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a215bf1e57bd8f9f909b7239f69646f85">alter\_schema\_add\_comment</a>: Adds a comment describing the schema. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#ad4b093863b91bdd60ffe707d7e063072">alter\_schema\_rename\_schema</a>: Renames a schema to <span className="em arg">value</span>. Has the same naming restrictions as <a href="/content/concepts/tables/" target="_top">tables</a>. </li>
                </ul>
              </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">value</td>
              <td>The value of the modification, depending on <span className="em arg">action</span>. For now the only value of <span className="em arg">action</span> is <a className="el" href="/content/api/cpp/namespacegpudb#ad4b093863b91bdd60ffe707d7e063072">rename\_schema</a>. In this case the value is the new name of the schema. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">options</td>
              <td>Optional parameters. The default value is an empty map. </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1AlterSchemaResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1AlterSchemaResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>
</div>
