io.kestra.plugin.jdbc.vectorwise.Query Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plugin-jdbc-vectorwise Show documentation
Show all versions of plugin-jdbc-vectorwise Show documentation
Integrate Vectorwise analytical databases with Kestra's JDBC plugin.
package io.kestra.plugin.jdbc.vectorwise;
import io.kestra.plugin.jdbc.AutoCommitInterface;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;
import io.kestra.core.models.annotations.Example;
import io.kestra.core.models.annotations.Plugin;
import io.kestra.core.models.tasks.RunnableTask;
import io.kestra.core.runners.RunContext;
import io.kestra.plugin.jdbc.AbstractCellConverter;
import io.kestra.plugin.jdbc.AbstractJdbcQuery;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.time.ZoneId;
@SuperBuilder
@ToString
@EqualsAndHashCode
@Getter
@NoArgsConstructor
@Schema(
title = "Query a Vectorwise database."
)
@Plugin(
examples = {
@Example(
title = "Send a sql query to a vectorwise database and fetch a row as outputs",
code = {
"url: jdbc:vectorwise://url:port/base",
"username: admin",
"password: admin_passwd",
"sql: select * from vectorwise_types",
"fetchOne: true",
}
)
}
)
public class Query extends AbstractJdbcQuery implements RunnableTask, AutoCommitInterface {
protected final Boolean autoCommit = true;
@Override
protected AbstractCellConverter getCellConverter(ZoneId zoneId) {
return new VectorwiseCellConverter(zoneId);
}
@Override
public void registerDriver() throws SQLException {
DriverManager.registerDriver(new com.ingres.jdbc.IngresDriver());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy