public class SQLMigrator extends Object
| Constructor and Description |
|---|
SQLMigrator(String query,
Connection connection)
Construct a SQL migrator to migrate data from the given DB
|
| Modifier and Type | Method and Description |
|---|---|
java.util.stream.Stream<Map<String,Object>> |
convert()
Migrate the results of the SQL statement with the provided template
|
static void |
main(String[] args) |
public SQLMigrator(String query, Connection connection)
query - SQL query to gather data from databaseconnection - JDBC connection to the SQL databasepublic static void main(String[] args)
public java.util.stream.Stream<Map<String,Object>> convert()
Copyright © 2017 Grakn Labs Ltd. All rights reserved.