public final class SchemaReader extends Object
| Constructor and Description |
|---|
SchemaReader() |
| Modifier and Type | Method and Description |
|---|---|
static DDLAction[] |
diffSchema(TypeManager typeManager,
DDLTable[] fromArray,
DDLTable[] ontoArray,
boolean caseSensitive)
Returns the difference between
from and
onto with a bias toward from. |
static DDLTable[] |
readSchema(Connection connection,
DatabaseProvider provider,
NameConverters nameConverters,
SchemaConfiguration schemaConfiguration,
boolean includeForeignKeys) |
static DDLTable[] |
readSchema(DatabaseProvider provider,
NameConverters nameConverters,
SchemaConfiguration schemaConfiguration)
Currently doesn't account for:
setUnique
|
static DDLTable[] |
readSchema(DatabaseProvider provider,
NameConverters nameConverters,
SchemaConfiguration schemaConfiguration,
boolean includeForeignKeys) |
static DDLAction[] |
sortTopologically(DDLAction[] actions) |
public static DDLTable[] readSchema(DatabaseProvider provider, NameConverters nameConverters, SchemaConfiguration schemaConfiguration) throws SQLException
SQLExceptionpublic static DDLTable[] readSchema(DatabaseProvider provider, NameConverters nameConverters, SchemaConfiguration schemaConfiguration, boolean includeForeignKeys) throws SQLException
SQLExceptionpublic static DDLTable[] readSchema(Connection connection, DatabaseProvider provider, NameConverters nameConverters, SchemaConfiguration schemaConfiguration, boolean includeForeignKeys) throws SQLException
SQLExceptionpublic static DDLAction[] diffSchema(TypeManager typeManager, DDLTable[] fromArray, DDLTable[] ontoArray, boolean caseSensitive)
from and
onto with a bias toward from.
Thus, if a table is present in from but not
onto, a CREATE TABLE
statement will be generated.Copyright © 2007–2021 Atlassian. All rights reserved.