public class DbSchemaExtractor extends Object
| Constructor and Description |
|---|
DbSchemaExtractor(String connectionUrl,
String user,
String password) |
| Modifier and Type | Method and Description |
|---|---|
List<AvroSchema> |
getAll(AvroConfig avroConfig)
Returns all AvroSchemas that are present in a target DB
|
List<AvroSchema> |
getForSchema(AvroConfig avroConfig,
String dbSchemaName)
Returns all AvroSchemas that are present in given DB schema
|
AvroSchema |
getForTable(AvroConfig avroConfig,
String dbSchemaName,
String tableName)
Returns AvroSchema for a specific table.
|
List<AvroSchema> |
getForTables(AvroConfig avroConfig,
String dbSchemaName,
String... tableNames)
Returns AvroSchemas for each of given tables
Note: when you have a schema with a large amount of tables but are only interested in a few of them,
consider calling getForTable() several times (separately for every table).
|
public List<AvroSchema> getAll(AvroConfig avroConfig)
public List<AvroSchema> getForSchema(AvroConfig avroConfig, String dbSchemaName)
public List<AvroSchema> getForTables(AvroConfig avroConfig, String dbSchemaName, String... tableNames)
public AvroSchema getForTable(AvroConfig avroConfig, String dbSchemaName, String tableName)
Copyright © 2021. All rights reserved.