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

# create_schema

### create\_schema

<ul>
  <li>
    create\_schema(\
    &#x20;schema\_name: string,\
    &#x20;options?: Record\<string, string>,\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md),\
    ): Promise\<[CreateSchemaResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/CreateSchemaResponse.md)>

    Creates a SQL-style schema. Schemas are containers for tables and views. Multiple tables and views can be defined with the same name in different schemas.

    #### Parameters

    <ul>
      <li>
        schema\_name: string

        Name of the schema to be created. Has the same naming restrictions as tables.
      </li>

      <li>
        `Optional`options: Record\<string, string>

        Optional parameters.
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[CreateSchemaResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/CreateSchemaResponse.md)>

    Promise\<Types.CreateSchemaResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:6749](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L6749)</li>
    </ul>
  </li>
</ul>

### create\_schema\_request

<ul>
  <li>
    create\_schema\_request(\
    &#x20;request: [CreateSchemaRequest](https://docs.kinetica.com/content/api/nodejs/interfaces/CreateSchemaRequest.md),\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md),\
    ): Promise\<[CreateSchemaResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/CreateSchemaResponse.md)>

    Creates a SQL-style schema. Schemas are containers for tables and views. Multiple tables and views can be defined with the same name in different schemas.

    #### Parameters

    <ul>
      <li>
        request: [CreateSchemaRequest](https://docs.kinetica.com/content/api/nodejs/interfaces/CreateSchemaRequest.md)

        Request object containing the parameters for the operation
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[CreateSchemaResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/CreateSchemaResponse.md)>

    Promise\<Types.CreateSchemaResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:6724](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L6724)</li>
    </ul>
  </li>
</ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.