@FunctionalInterface public interface AppendEventsStatementBuilder
|Modifier and Type||Method and Description|
Build a statement to be used at
PreparedStatement build(Connection connection, EventSchema schema, Class<?> dataType, List<? extends EventMessage<?>> events, Serializer serializer, TimestampWriter timestampWriter) throws SQLException
connection- The connection to the database.
schema- The EventSchema to be used.
dataType- The serialized type of the payload and metadata.
events- The events to be added.
serializer- The serializer for the payload and metadata.
timestampWriter- Writer responsible for writing timestamp in the correct format for the given database.
SQLException- when an exception occurs while creating the prepared statement.
Copyright © 2010–2021. All rights reserved.