Skip to main content
Common Reference

dbupper.js Filter

The dbupper filter changes the case of the schema name for all schemas to uppercase. The schema information is easily identified in the statement and row based information, and therefore easy to update.

Pre-configured filter namedbupper
JavaScript Filter Filetungsten-replicator/support/filters-javascript/dbupper.js
Property prefixreplicator.filter.dbupper
Stage compatibilitybinlog-to-q
tpm Option compatibilitysvc-extractor-filters, svc-applier-filters
Data compatibilityAny event

Parameters

ParameterTypeDefaultDescription
fromstring(none)Database name to be converted to uppercase

For example, within statement data:

from = d.getDefaultSchema();
if (from != null)
{
to = from.toUpperCase();
d.setDefaultSchema(to);
}