Class 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 class  CopyOut.Output  
      • 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>>
    • Constructor Summary

      Constructors 
      Constructor Description
      CopyOut()  
    • Field Detail

      • sql

        @PluginProperty(dynamic=true)
        protected java.lang.String sql
    • Constructor Detail

      • CopyOut

        public CopyOut()
    • Method Detail

      • run

        public CopyOut.Output run​(io.kestra.core.runners.RunContext runContext)
                           throws java.lang.Exception
        Specified by:
        run in interface io.kestra.core.models.tasks.RunnableTask<CopyOut.Output>
        Throws:
        java.lang.Exception