Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 927 Bytes

create_schema.md

File metadata and controls

26 lines (17 loc) · 927 Bytes

CREATE SCHEMA

The CreateSchema class of the SQL Statement Builder provides an entry point to defining a CREATE SCHEMA SQL statement.

Usage

  1. Create an instance of the CreateSchema class through the StatementFactory:
CreateSchema createSchema = StatementFactory.getInstance().createSchema("schemaName");
  1. Render the instance of CreateSchema class. Click here for more information on Rendering SQL Statement.
  • The complete example code

    CreateSchema createSchema = StatementFactory.getInstance().createSchema("schemaName");
    
    // optional step: add configuration
    StringRendererConfig config = StringRendererConfig.builder().lowerCase(true).build();
    CreateSchemaRenderer renderer = CreateSchemaRenderer.create(config);
    createSchema.accept(renderer);
    
    String renderedString = renderer.render();