Skip to main content
create_schema(schema_name=None, options=)[source]

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

schema_name (str) –

Name of the schema to be created. Has the same naming restrictions as tables.

options (dict of str to str) –

Optional parameters. Allowed keys are:

  • no_error_if_exists – If true, prevents an error from occurring if the schema already exists. Allowed values are:

    • true

    • false

    The default value is ‘false’.

The default value is an empty dict ( ).

Returns

A dict with the following entries–

schema_name (str) –

Value of input parameter schema_name.

info (dict of str to str) –

Additional information.