public class SQLSchemaMigrator extends Object implements Closeable
| Constructor and Description |
|---|
SQLSchemaMigrator() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the JDBC connection
|
SQLSchemaMigrator |
configure(Connection connection)
Configure the schema migrator with a JDBC connection
|
SQLSchemaMigrator |
graph(MindmapsGraph graph)
Set a graph from which to get information
|
Collection<Var> |
migrate() |
SQLSchemaMigrator |
migrate(Loader loader)
Migrate the entire schema into the given loader.
|
public SQLSchemaMigrator configure(Connection connection)
connection - the connection containing schema to be migratedpublic SQLSchemaMigrator graph(MindmapsGraph graph)
graph - a Mindmaps graphpublic Collection<Var> migrate()
public SQLSchemaMigrator migrate(Loader loader)
loader - Loader to migrate into.public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2016. All rights reserved.