def create_db_schema ( cls , cur , schema_name ) : create_schema_script = "CREATE SCHEMA {0} ;\n" . format ( schema_name ) cur . execute ( create_schema_script )
python create new schema postgresql
Create Postgres schema script and execute it on cursor
def create_db_schema(cls, cur, schema_name):
        """
        Create Postgres schema script and execute it on cursor
        """
        create_schema_script = "CREATE SCHEMA {0} ;\n".format(schema_name)
        cur.execute(create_schema_script)