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

# gpudb::CreateSchemaRequest

> gpudb::CreateSchemaRequest — Kinetica C++ API

<div className="kinetica-doxygen">
  <div className="contents">
    <p>A set of parameters for <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#a4aa5990ebebfab30b5961654f546cfd0">GPUdb::createSchema</a>. <a href="#details">More...</a></p>
    <p><code>#include \<<a className="el" href="/content/api/cpp/create__schema_8h_source">gpudb/protocol/create\_schema.h</a>></code></p>

    <table className="memberdecls">
      <tr className="heading">
        <td colSpan="2">
          <h2 className="groupheader"> Public Member Functions</h2>
        </td>
      </tr>

      <tr className="memitem:a5627917564418dd1430675dadc396a7f" id="r_a5627917564418dd1430675dadc396a7f">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a5627917564418dd1430675dadc396a7f">CreateSchemaRequest</a> ()</td>
      </tr>

      <tr className="memdesc:a5627917564418dd1430675dadc396a7f">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1CreateSchemaRequest" title="A set of parameters for GPUdb::createSchema.">CreateSchemaRequest</a> object with default parameters. <br /></td>
      </tr>

      <tr className="separator:a5627917564418dd1430675dadc396a7f">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:a4fcbc318f13a83b6f2760a74e8636520" id="r_a4fcbc318f13a83b6f2760a74e8636520">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a4fcbc318f13a83b6f2760a74e8636520">CreateSchemaRequest</a> (const std::string \&schemaName\_, const std::map\< std::string, std::string > \&options\_)</td>
      </tr>

      <tr className="memdesc:a4fcbc318f13a83b6f2760a74e8636520">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1CreateSchemaRequest" title="A set of parameters for GPUdb::createSchema.">CreateSchemaRequest</a> object with the specified parameters. <br /></td>
      </tr>

      <tr className="separator:a4fcbc318f13a83b6f2760a74e8636520">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>
    </table>

    <table className="memberdecls">
      <tr className="heading">
        <td colSpan="2">
          <h2 className="groupheader"> Public Attributes</h2>
        </td>
      </tr>

      <tr className="memitem:a42b0a50ae90fe55b5cc2c198cf5af02e" id="r_a42b0a50ae90fe55b5cc2c198cf5af02e">
        <td className="memItemLeft" align="right" valign="top">std::string </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a42b0a50ae90fe55b5cc2c198cf5af02e">schemaName</a></td>
      </tr>

      <tr className="memdesc:a42b0a50ae90fe55b5cc2c198cf5af02e">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Name of the schema to be created. <br /></td>
      </tr>

      <tr className="separator:a42b0a50ae90fe55b5cc2c198cf5af02e">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:a0fe27c92970b2a1e15834029ebc35e66" id="r_a0fe27c92970b2a1e15834029ebc35e66">
        <td className="memItemLeft" align="right" valign="top">std::map\< std::string, std::string > </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a0fe27c92970b2a1e15834029ebc35e66">options</a></td>
      </tr>

      <tr className="memdesc:a0fe27c92970b2a1e15834029ebc35e66">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Optional parameters. <br /></td>
      </tr>

      <tr className="separator:a0fe27c92970b2a1e15834029ebc35e66">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>
    </table>

    <h2 className="groupheader">Detailed Description</h2>

    <div className="textblock">
      <p>A set of parameters for <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#a4aa5990ebebfab30b5961654f546cfd0">GPUdb::createSchema</a>. </p>
      <p>Creates a SQL-style <a href="/content/concepts/schemas/" target="_top">schema</a>. Schemas are containers for tables and views. Multiple tables and views can be defined with the same name in different schemas. </p>
      <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__schema_8h_source#l00021">21</a> of file <a className="el" href="/content/api/cpp/create__schema_8h_source">create\_schema.h</a>.</p>
    </div>

    <h2 className="groupheader">Constructor & Destructor Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#a5627917564418dd1430675dadc396a7f">◆ </a></span>CreateSchemaRequest() <span className="overload">\[1/2]</span></h2>

    <div className="memitem">
      <div className="memproto">
        <table className="mlabels">
          <tr>
            <td className="mlabels-left">
              <table className="memname">
                <tr>
                  <td className="memname">gpudb::CreateSchemaRequest::CreateSchemaRequest </td>
                  <td>(</td>

                  <td className="paramname">
                    <span className="paramname">
                      <span className="em" />
                    </span>
                  </td>

                  <td>)</td>

                  <td />
                </tr>
              </table>
            </td>

            <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1CreateSchemaRequest" title="A set of parameters for GPUdb::createSchema.">CreateSchemaRequest</a> object with default parameters. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__schema_8h_source#l00026">26</a> of file <a className="el" href="/content/api/cpp/create__schema_8h_source">create\_schema.h</a>.</p>
      </div>
    </div>

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

    <div className="memitem">
      <div className="memproto">
        <table className="mlabels">
          <tr>
            <td className="mlabels-left">
              <table className="memname">
                <tr>
                  <td className="memname">gpudb::CreateSchemaRequest::CreateSchemaRequest </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>
              </table>
            </td>

            <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1CreateSchemaRequest" title="A set of parameters for GPUdb::createSchema.">CreateSchemaRequest</a> object with the specified parameters. </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>

        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__schema_8h_source#l00061">61</a> of file <a className="el" href="/content/api/cpp/create__schema_8h_source">create\_schema.h</a>.</p>
      </div>
    </div>

    <h2 className="groupheader">Member Data Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#a0fe27c92970b2a1e15834029ebc35e66">◆ </a></span>options</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::map\<std::string, std::string> gpudb::CreateSchemaRequest::options</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Optional parameters. </p>

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

        <p>The default value is an empty map. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__schema_8h_source#l00091">91</a> of file <a className="el" href="/content/api/cpp/create__schema_8h_source">create\_schema.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a42b0a50ae90fe55b5cc2c198cf5af02e">◆ </a></span>schemaName</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::string gpudb::CreateSchemaRequest::schemaName</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Name of the schema to be created. </p>
        <p>Has the same naming restrictions as <a href="/content/concepts/tables/" target="_top">tables</a>. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__schema_8h_source#l00071">71</a> of file <a className="el" href="/content/api/cpp/create__schema_8h_source">create\_schema.h</a>.</p>
      </div>
    </div>

    <hr />

    The documentation for this struct was generated from the following file:

    <ul>
      <li>gpudb/protocol/<a className="el" href="/content/api/cpp/create__schema_8h_source">create\_schema.h</a></li>
    </ul>
  </div>
</div>
