Java Code Examples for io.debezium.jdbc.TemporalPrecisionMode

Following code examples demonstrate how to use io.debezium.jdbc.TemporalPrecisionMode from debezium. These examples are extracted from various highly rated open source projects. You can directly use these code snippets or view their entire linked source code. These snippets are extracted to provide contextual information about how to use this class in the real world. These samples also let you understand some good practices on how to use io.debezium.jdbc.TemporalPrecisionMode and various code implementation of this class.
Example 1
Project : debezium Source File : MySqlSchema.java View Source Code on GitHub

    private static MySqlValueConverters getValueConverters(MySqlConnectorConfig configuration) {

        String timePrecisionModeStr = configuration.getConfig().getString(MySqlConnectorConfig.TIME_PRECISION_MODE);
        TemporalPrecisionMode timePrecisionMode = TemporalPrecisionMode.parse(timePrecisionModeStr);

        DecimalMode decimalMode = configuration.getDecimalMode();

        String bigIntUnsignedHandlingModeStr = configuration.getConfig().getString(MySqlConnectorConfig.BIGINT_UNSIGNED_HANDLING_MODE);
        BigIntUnsignedHandlingMode bigIntUnsignedHandlingMode = BigIntUnsignedHandlingMode.parse(bigIntUnsignedHandlingModeStr);
        BigIntUnsignedMode bigIntUnsignedMode = bigIntUnsignedHandlingMode.asBigIntUnsignedMode();

        return new MySqlValueConverters(decimalMode, timePrecisionMode, bigIntUnsignedMode);
    }