Package io.debezium.relational.ddl
Interface DdlParser
-
- All Known Implementing Classes:
AbstractDdlParser
public interface DdlParser
A parser interface for DDL statements.- Author:
- Roman Kuchár
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DdlChanges
getDdlChanges()
void
parse(String ddlContent, Tables databaseTables)
Examine the supplied string containing DDL statements, and apply those statements to the specified database table definitions.void
setCurrentDatabase(String databaseName)
void
setCurrentSchema(String schemaName)
Set the name of the current schema.SystemVariables
systemVariables()
String
terminator()
The token used to terminate a DDL statement.
-
-
-
Method Detail
-
parse
void parse(String ddlContent, Tables databaseTables)
Examine the supplied string containing DDL statements, and apply those statements to the specified database table definitions.- Parameters:
ddlContent
- the stream of tokens containing the DDL statements; may not be nulldatabaseTables
- the database's table definitions, which should be used by this method to create, change, or remove tables as defined in the DDL content; may not be null- Throws:
ParsingException
- if there is a problem parsing the supplied content
-
setCurrentDatabase
void setCurrentDatabase(String databaseName)
-
setCurrentSchema
void setCurrentSchema(String schemaName)
Set the name of the current schema.- Parameters:
schemaName
- the name of the current schema; may be null
-
getDdlChanges
DdlChanges getDdlChanges()
-
terminator
String terminator()
The token used to terminate a DDL statement.- Returns:
- the terminating token; never null
-
systemVariables
SystemVariables systemVariables()
-
-