code: public static String prepareScripts(WorkspaceEntry wsEntry, String dialect) throws IOException,
        RepositoryConfigurationException
     {
        String itemTableSuffix = getItemTableSuffix(wsEntry);
        String valueTableSuffix = getValueTableSuffix(wsEntry);
        String refTableSuffix = getRefTableSuffix(wsEntry);
  
        DatabaseStructureType dbType = DBInitializerHelper.getDatabaseType(wsEntry);
  
        boolean isolatedDB = dbType == DatabaseStructureType.ISOLATED;
        String initScriptPath = DBInitializerHelper.scriptPath(dialect, dbType.isMultiDatabase());
  
        return prepareScripts(initScriptPath, itemTableSuffix, valueTableSuffix, refTableSuffix, isolatedDB);
     }
docs: Returns SQL scripts for initialization database for defined {@link WorkspaceEntry}.
  
  @param wsEntry
  workspace configuration
  @param dialect
  database dialect which is used, since {@link JDBCWorkspaceDataContainer#DB_DIALECT} parameter
  can contain {@link DialectConstants#DB_DIALECT_AUTO} value it is necessary to resolve dialect
  before based on database connection.