> ## 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.

# createSchema

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

  <h2 className="memtitle"><span className="permalink"><a href="#a4aa5990ebebfab30b5961654f546cfd0">◆ </a></span>createSchema() <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_1CreateSchemaResponse">CreateSchemaResponse</a> gpudb::GPUdb::createSchema </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1CreateSchemaRequest">CreateSchemaRequest</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>Creates a SQL-style <a href="/content/concepts/schemas/" target="_top">schema</a>. </p>
      <p>Schemas are containers for tables and views. Multiple tables and views can be defined with the same name in different schemas.</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_1CreateSchemaRequest">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_1CreateSchemaResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a38d46d66b880642f20a0c166aa4c2b15" />

  <h2 className="memtitle"><span className="permalink"><a href="#a38d46d66b880642f20a0c166aa4c2b15">◆ </a></span>createSchema() <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_1CreateSchemaResponse">CreateSchemaResponse</a> & gpudb::GPUdb::createSchema </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1CreateSchemaRequest">CreateSchemaRequest</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_1CreateSchemaResponse">CreateSchemaResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Creates a SQL-style <a href="/content/concepts/schemas/" target="_top">schema</a>. </p>
      <p>Schemas are containers for tables and views. Multiple tables and views can be defined with the same name in different schemas.</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_1CreateSchemaRequest">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_1CreateSchemaResponse">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_1CreateSchemaResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>

  <div id="a33d9a0a8e738d14b688f9f869f9640ad" />

  <h2 className="memtitle"><span className="permalink"><a href="#a33d9a0a8e738d14b688f9f869f9640ad">◆ </a></span>createSchema() <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_1CreateSchemaResponse">CreateSchemaResponse</a> gpudb::GPUdb::createSchema </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::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>Creates a SQL-style <a href="/content/concepts/schemas/" target="_top">schema</a>. </p>
      <p>Schemas are containers for tables and views. Multiple tables and views can be defined with the same name in different schemas.</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 created. Has the same naming restrictions as <a href="/content/concepts/tables/" target="_top">tables</a>. </td>
            </tr>

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

              <td>
                Optional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a97e7aa79ac96ea0e2461f3a66ac187eb">create\_schema\_no\_error\_if\_exists</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#a6ce6815b864986239b8d5505d12e5e8d">true</a>, prevents an error from occurring if the schema already exists. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a6ce6815b864986239b8d5505d12e5e8d">create\_schema\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a685381bd913b0b3d0d43411d115843d0">create\_schema\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a685381bd913b0b3d0d43411d115843d0">create\_schema\_false</a>.
                  </li>
                </ul>

                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_1CreateSchemaResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="ae91be6d23881ea7ef324a60ca65cd529" />

  <h2 className="memtitle"><span className="permalink"><a href="#ae91be6d23881ea7ef324a60ca65cd529">◆ </a></span>createSchema() <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_1CreateSchemaResponse">CreateSchemaResponse</a> & gpudb::GPUdb::createSchema </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::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_1CreateSchemaResponse">CreateSchemaResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Creates a SQL-style <a href="/content/concepts/schemas/" target="_top">schema</a>. </p>
      <p>Schemas are containers for tables and views. Multiple tables and views can be defined with the same name in different schemas.</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 created. Has the same naming restrictions as <a href="/content/concepts/tables/" target="_top">tables</a>. </td>
            </tr>

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

              <td>
                Optional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a97e7aa79ac96ea0e2461f3a66ac187eb">create\_schema\_no\_error\_if\_exists</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#a6ce6815b864986239b8d5505d12e5e8d">true</a>, prevents an error from occurring if the schema already exists. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a6ce6815b864986239b8d5505d12e5e8d">create\_schema\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a685381bd913b0b3d0d43411d115843d0">create\_schema\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a685381bd913b0b3d0d43411d115843d0">create\_schema\_false</a>.
                  </li>
                </ul>

                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_1CreateSchemaResponse">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_1CreateSchemaResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>
</div>
