> ## 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="ac754b44062e7b90b8afa50ddfa8ccbf2" />

  <h2 className="memtitle"><span className="permalink"><a href="#ac754b44062e7b90b8afa50ddfa8ccbf2">◆ </a></span>createSchema() <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"><a className="el" href="/content/api/cs/classkinetica_1_1CreateSchemaResponse">CreateSchemaResponse</a> kinetica.Kinetica.createSchema </td>
                <td>(</td>
                <td className="paramtype"><a className="el" href="/content/api/cs/classkinetica_1_1CreateSchemaRequest">CreateSchemaRequest</a></td>
                <td className="paramname"><span className="paramname"><span className="em">request\_</span></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>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="paramname">request\_</td>
              <td>Request 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">Response object containing the result of the operation. </div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L23584">23584</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>

  <div id="a608012de827495718f992ab2ba57f5d3" />

  <h2 className="memtitle"><span className="permalink"><a href="#a608012de827495718f992ab2ba57f5d3">◆ </a></span>createSchema() <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"><a className="el" href="/content/api/cs/classkinetica_1_1CreateSchemaResponse">CreateSchemaResponse</a> kinetica.Kinetica.createSchema </td>
                <td>(</td>
                <td className="paramtype">string</td>
                <td className="paramname"><span className="paramname"><span className="em">schema\_name</span></span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">IDictionary\< string, string ></td>
                <td className="paramname"><span className="paramname"><span className="em">options</span></span><span className="paramdefsep"> = </span><span className="paramdefval">null</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>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="paramname">schema\_name</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="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1CreateSchemaRequest_1_1Options#a986951ff61bbe426d0c1fd1990d07438">NO\_ERROR\_IF\_EXISTS</a>: If <a className="el" href="/content/api/cs/structkinetica_1_1CreateSchemaRequest_1_1Options#af921a7ee719d16f1c87b6f15aeb36231">TRUE</a>, prevents an error from occurring if the schema already exists. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateSchemaRequest_1_1Options#af921a7ee719d16f1c87b6f15aeb36231">TRUE</a> </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateSchemaRequest_1_1Options#ad83605ba1a10d842240ac21bbd721d59">FALSE</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1CreateSchemaRequest_1_1Options#ad83605ba1a10d842240ac21bbd721d59">FALSE</a>.
                  </li>
                </ul>

                The default value is an empty Dictionary.
              </td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">Response object containing the result of the operation. </div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L23650">23650</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>

  <div id="ac2cc64daa0db589634a90d3ab01e53d9" />

  <h2 className="memtitle"><span className="permalink"><a href="#ac2cc64daa0db589634a90d3ab01e53d9">◆ </a></span>CreateSchemaAsync() <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">async System.Threading.Tasks.Task\< <a className="el" href="/content/api/cs/classkinetica_1_1CreateSchemaResponse">CreateSchemaResponse</a> > kinetica.Kinetica.CreateSchemaAsync </td>
                <td>(</td>
                <td className="paramtype"><a className="el" href="/content/api/cs/classkinetica_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">System.Threading.CancellationToken</td>
                <td className="paramname"><span className="paramname"><span className="em">cancellationToken</span></span><span className="paramdefsep"> = </span><span className="paramdefval">default</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>Creates a SQL-style <a href="/content/concepts/schemas/" target="_top">schema</a>. </p>
      <p>(async) </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="paramname">request\_</td>
              <td>Request object containing the parameters for the operation.</td>
            </tr>

            <tr>
              <td className="paramname">cancellationToken</td>
              <td>Cancellation token to cancel the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">Task that returns the response object containing the result of the operation.</div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L23603">23603</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>

  <div id="af6f16cf0b270721ae4e192deeb6577dd" />

  <h2 className="memtitle"><span className="permalink"><a href="#af6f16cf0b270721ae4e192deeb6577dd">◆ </a></span>CreateSchemaAsync() <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">async System.Threading.Tasks.Task\< <a className="el" href="/content/api/cs/classkinetica_1_1CreateSchemaResponse">CreateSchemaResponse</a> > kinetica.Kinetica.CreateSchemaAsync </td>
                <td>(</td>
                <td className="paramtype">string</td>
                <td className="paramname"><span className="paramname"><span className="em">schema\_name</span></span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">IDictionary\< string, string ></td>
                <td className="paramname"><span className="paramname"><span className="em">options</span></span><span className="paramdefsep"> = </span><span className="paramdefval">null</span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">System.Threading.CancellationToken</td>
                <td className="paramname"><span className="paramname"><span className="em">cancellationToken</span></span><span className="paramdefsep"> = </span><span className="paramdefval">default</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>Creates a SQL-style <a href="/content/concepts/schemas/" target="_top">schema</a>. </p>
      <p>(async) </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="paramname">schema\_name</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="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1CreateSchemaRequest_1_1Options#a986951ff61bbe426d0c1fd1990d07438">NO\_ERROR\_IF\_EXISTS</a>: If <a className="el" href="/content/api/cs/structkinetica_1_1CreateSchemaRequest_1_1Options#af921a7ee719d16f1c87b6f15aeb36231">TRUE</a>, prevents an error from occurring if the schema already exists. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateSchemaRequest_1_1Options#af921a7ee719d16f1c87b6f15aeb36231">TRUE</a> </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateSchemaRequest_1_1Options#ad83605ba1a10d842240ac21bbd721d59">FALSE</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1CreateSchemaRequest_1_1Options#ad83605ba1a10d842240ac21bbd721d59">FALSE</a>.
                  </li>
                </ul>

                The default value is an empty Dictionary.
              </td>
            </tr>

            <tr>
              <td className="paramname">cancellationToken</td>
              <td>Cancellation token to cancel the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">Task that returns the response object containing the result of the operation.</div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L23697">23697</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>
</div>
