Package io.kestra.plugin.jdbc.postgresql
Class CopyOut
- java.lang.Object
-
- io.kestra.core.models.tasks.Task
-
- io.kestra.plugin.jdbc.AbstractJdbcConnection
-
- io.kestra.plugin.jdbc.postgresql.AbstractCopy
-
- io.kestra.plugin.jdbc.postgresql.CopyOut
-
- All Implemented Interfaces:
io.kestra.core.models.tasks.RunnableTask<CopyOut.Output>,PostgresConnectionInterface
@Plugin(examples=@Example(title="Save a tsv from a postgres table",code={"url: jdbc:postgresql://127.0.0.1:56982/","username: postgres","password: pg_passwd","format: CSV","sql: SELECT 1 AS int, \'t\'::bool AS bool UNION SELECT 2 AS int, \'f\'::bool AS bool","header: true","delimiter: \"\t\""})) public class CopyOut extends AbstractCopy implements io.kestra.core.models.tasks.RunnableTask<CopyOut.Output>, PostgresConnectionInterface
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCopyOut.Output-
Nested classes/interfaces inherited from class io.kestra.plugin.jdbc.postgresql.AbstractCopy
AbstractCopy.Format
-
Nested classes/interfaces inherited from class io.kestra.plugin.jdbc.AbstractJdbcConnection
io.kestra.plugin.jdbc.AbstractJdbcConnection.AbstractJdbcConnectionBuilder<C extends io.kestra.plugin.jdbc.AbstractJdbcConnection,B extends io.kestra.plugin.jdbc.AbstractJdbcConnection.AbstractJdbcConnectionBuilder<C,B>>
-
Nested classes/interfaces inherited from class io.kestra.core.models.tasks.Task
io.kestra.core.models.tasks.Task.TaskBuilder<C extends io.kestra.core.models.tasks.Task,B extends io.kestra.core.models.tasks.Task.TaskBuilder<C,B>>
-
Nested classes/interfaces inherited from interface io.kestra.plugin.jdbc.postgresql.PostgresConnectionInterface
PostgresConnectionInterface.SslMode
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringsql-
Fields inherited from class io.kestra.plugin.jdbc.postgresql.AbstractCopy
columns, delimiter, encoding, escape, forceNotNull, forceNull, forceQuote, format, freeze, header, nullString, oids, quote, ssl, sslCert, sslKey, sslKeyPassword, sslMode, sslRootCert, table
-
-
Constructor Summary
Constructors Constructor Description CopyOut()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CopyOut.Outputrun(io.kestra.core.runners.RunContext runContext)-
Methods inherited from class io.kestra.plugin.jdbc.postgresql.AbstractCopy
connectionProperties, query, registerDriver
-
Methods inherited from class io.kestra.plugin.jdbc.AbstractJdbcConnection
canEqual, cleanup, connection, equals, getAutoCommit, getPassword, getUrl, getUsername, hashCode, tempFile, tempFile, toString
-
Methods inherited from class io.kestra.core.models.tasks.Task
findById, findById, getDescription, getDisabled, getId, getRetry, getTimeout, getType, isFlowable
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.kestra.plugin.jdbc.postgresql.PostgresConnectionInterface
getSsl, getSslCert, getSslKey, getSslKeyPassword, getSslMode, getSslRootCert
-
-
-
-
Method Detail
-
run
public CopyOut.Output run(io.kestra.core.runners.RunContext runContext) throws java.lang.Exception
- Specified by:
runin interfaceio.kestra.core.models.tasks.RunnableTask<CopyOut.Output>- Throws:
java.lang.Exception
-
-