Loading...

vastorbit.create_schema

vastorbit.create_schema(schema: str, raise_error: bool = False) bool

Creates a new schema.

Parameters:
  • schema (str) – Schema name.

  • raise_error (bool, optional) – If the schema couldn’t be created, the function raises an error.

Returns:

True if the schema was successfully created, False otherwise.

Return type:

bool

Examples

Create a new schema:

from vastorbit.sql import create_schema

create_schema(schema = "employees_test")

See also

create_table() : Creates a table.