Class DefaultInitializationScriptResource

java.lang.Object
org.springframework.core.io.AbstractResource
org.springframework.core.io.ByteArrayResource
org.springframework.cloud.stream.app.pgcopy.sink.DefaultInitializationScriptResource
All Implemented Interfaces:
InputStreamSource, Resource

public class DefaultInitializationScriptResource extends ByteArrayResource
An in-memory script crafted for dropping-creating the table we're working with. All columns are created as VARCHAR(2000).
Author:
Eric Bottard, Thomas Risberg
  • Constructor Details

    • DefaultInitializationScriptResource

      public DefaultInitializationScriptResource(String tableName, Collection<String> columns)