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
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 Summary
ConstructorDescriptionDefaultInitializationScriptResource
(String tableName, Collection<String> columns) -
Method Summary
Methods inherited from class org.springframework.core.io.ByteArrayResource
contentLength, equals, exists, getByteArray, getContentAsByteArray, getContentAsString, getDescription, getInputStream, hashCode
Methods inherited from class org.springframework.core.io.AbstractResource
createRelative, getFile, getFileForLastModifiedCheck, getFilename, getURI, getURL, isFile, isOpen, isReadable, lastModified, readableChannel, toString
-
Constructor Details
-
DefaultInitializationScriptResource
-